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 108134 67be22778e307f379a647d237445c6891365271b
parent 108133 c6dab1c5387cd4867720cd06b5397b7855e6d118
child 108135 d0f31c494c68dd809752cede0ffbc2b931cee392
push id23539
push userryanvm@gmail.com
push dateWed, 26 Sep 2012 22:55:55 +0000
treeherderautoland@ec079fd92224 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssriram
bugs793083
milestone18.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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;
     }
 }