Пример #1
0
 @Override
 protected void updateSceneLayer(
     Rect viewport,
     Rect contentViewport,
     LayerTitleCache layerTitleCache,
     TabContentManager tabContentManager,
     ResourceManager resourceManager,
     ChromeFullscreenManager fullscreenManager) {
   super.updateSceneLayer(
       viewport,
       contentViewport,
       layerTitleCache,
       tabContentManager,
       resourceManager,
       fullscreenManager);
   assert mSceneLayer != null;
   mSceneLayer.pushLayers(
       getContext(),
       viewport,
       contentViewport,
       this,
       layerTitleCache,
       tabContentManager,
       resourceManager);
 }
 /**
  * @param context The current Android context.
  * @param updateHost The {@link LayoutUpdateHost} view for this layout.
  * @param renderHost The {@link LayoutRenderHost} view for this layout.
  * @param eventFilter The {@link EventFilter} that is needed for this view.
  */
 public ContextualSearchLayout(
     Context context,
     LayoutUpdateHost updateHost,
     LayoutRenderHost renderHost,
     EventFilter eventFilter,
     ContextualSearchPanel panel) {
   super(context, updateHost, renderHost, eventFilter, panel);
   mTabListSceneLayer = new TabListSceneLayer();
   // TODO(changwan): use SceneOverlayTree's setContentTree() instead once we refactor
   // ContextualSearchSupportedLayout into LayoutHelper.
   mTabListSceneLayer.setContentTree(super.getSceneLayer());
 }