Bug 793083 - Add more custom views to the LayoutInflater factory r=sriram
authorMark Finkle <mfinkle@mozilla.com>
Wed, 26 Sep 2012 08:24:34 -0400
changeset 108243 67be22778e307f379a647d237445c6891365271b
parent 108242 c6dab1c5387cd4867720cd06b5397b7855e6d118
child 108244 d0f31c494c68dd809752cede0ffbc2b931cee392
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewerssriram
bugs793083
milestone18.0a1
Bug 793083 - Add more custom views to the LayoutInflater factory r=sriram
mobile/android/base/GeckoViewsFactory.java
--- a/mobile/android/base/GeckoViewsFactory.java
+++ b/mobile/android/base/GeckoViewsFactory.java
@@ -35,16 +35,20 @@ public final class GeckoViewsFactory imp
 
             if (TextUtils.isEmpty(viewName))
                 return null;
         
             Log.i(LOGTAG, "Creating custom Gecko view: " + viewName);
 
             if (TextUtils.equals(viewName, "AboutHomePromoBox"))
                 return new AboutHomePromoBox(context, attrs);
+            else if (TextUtils.equals(viewName, "AboutHomeContent"))
+                return new AboutHomeContent(context, attrs);
+            else if (TextUtils.equals(viewName, "AboutHomeContent$TopSitesGridView"))
+                return new AboutHomeContent.TopSitesGridView(context, attrs);
             else if (TextUtils.equals(viewName, "AboutHomeSection"))
                 return new AboutHomeSection(context, attrs);
             else if (TextUtils.equals(viewName, "AwesomeBarTabs"))
                 return new AwesomeBarTabs(context, attrs);
             else if (TextUtils.equals(viewName, "BrowserToolbarBackground"))
                 return new BrowserToolbarBackground(context, attrs);
             else if (TextUtils.equals(viewName, "FormAssistPopup"))
                 return new FormAssistPopup(context, attrs);
@@ -60,14 +64,14 @@ public final class GeckoViewsFactory imp
                 return new TabsPanel(context, attrs);
             else if (TextUtils.equals(viewName, "TabsPanelButton"))
                 return new TabsPanelButton(context, attrs);
             else if (TextUtils.equals(viewName, "TextSelectionHandle"))
                 return new TextSelectionHandle(context, attrs);
             else if (TextUtils.equals(viewName, "gfx.LayerView"))
                 return new LayerView(context, attrs);
             else
-                Log.e(LOGTAG, "Error: unknown custom view: " + viewName);
+                Log.d(LOGTAG, "Warning: unknown custom view: " + viewName);
         }
 
         return null;
     }
 }