org.chromium.chrome.browser.contextualsearch.ContextualSearchManagementDelegate Java Examples
The following examples show how to use
org.chromium.chrome.browser.contextualsearch.ContextualSearchManagementDelegate.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CompositorViewHolder.java From delion with Apache License 2.0 | 6 votes |
/** * Sets the appropriate objects this class should represent. * @param tabModelSelector The {@link TabModelSelector} this View should hold and * represent. * @param tabCreatorManager The {@link TabCreatorManager} for this view. * @param tabContentManager The {@link TabContentManager} for the tabs. * @param androidContentContainer The {@link ViewGroup} the {@link LayoutManager} should bind * Android content to. * @param contextualSearchManager A {@link ContextualSearchManagementDelegate} instance. * @param readerModeManager A {@link ReaderModeManagerDelegate} instance. */ public void onFinishNativeInitialization(TabModelSelector tabModelSelector, TabCreatorManager tabCreatorManager, TabContentManager tabContentManager, ViewGroup androidContentContainer, ContextualSearchManagementDelegate contextualSearchManager, ReaderModeManagerDelegate readerModeManager) { assert mLayoutManager != null; mLayoutManager.init(tabModelSelector, tabCreatorManager, tabContentManager, androidContentContainer, contextualSearchManager, readerModeManager, mCompositorView.getResourceManager().getDynamicResourceLoader()); mTabModelSelector = tabModelSelector; tabModelSelector.addObserver(new EmptyTabModelSelectorObserver() { @Override public void onChange() { onContentChanged(); } @Override public void onNewTabCreated(Tab tab) { initializeTab(tab); } }); onContentChanged(); }
Example #2
Source File: LayoutManagerDocumentTabSwitcher.java From delion with Apache License 2.0 | 6 votes |
@Override public void init(TabModelSelector selector, TabCreatorManager creator, TabContentManager content, ViewGroup androidContentContainer, ContextualSearchManagementDelegate contextualSearchDelegate, ReaderModeManagerDelegate readerModeManagerDelegate, DynamicResourceLoader dynamicResourceLoader) { super.init(selector, creator, content, androidContentContainer, contextualSearchDelegate, readerModeManagerDelegate, dynamicResourceLoader); mTitleCache = mHost.getTitleCache(); TabModelSelector documentTabSelector = ChromeApplication.getDocumentTabModelSelector(); mOverviewListLayout.setTabModelSelector(documentTabSelector, content); mOverviewLayout.setTabModelSelector(documentTabSelector, content); // TODO(changwan): do we really need this? startShowing(getDefaultLayout(), false); }
Example #3
Source File: LayoutManagerChromePhone.java From delion with Apache License 2.0 | 5 votes |
@Override public void init(TabModelSelector selector, TabCreatorManager creator, TabContentManager content, ViewGroup androidContentContainer, ContextualSearchManagementDelegate contextualSearchDelegate, ReaderModeManagerDelegate readerModeDelegate, DynamicResourceLoader dynamicResourceLoader) { // Initialize Layouts mSimpleAnimationLayout.setTabModelSelector(selector, content); super.init(selector, creator, content, androidContentContainer, contextualSearchDelegate, readerModeDelegate, dynamicResourceLoader); }
Example #4
Source File: LayoutManager.java From delion with Apache License 2.0 | 5 votes |
/** * Initializes the {@link LayoutManager}. Must be called before using this object. * @param selector A {@link TabModelSelector} instance. * @param creator A {@link TabCreatorManager} instance. * @param content A {@link TabContentManager} instance. * @param androidContentContainer A {@link ViewGroup} for Android views to be bound to. * @param contextualSearchDelegate A {@link ContextualSearchDelegate} instance. * @param readerModeDelegate A {@link ReaderModeManagerDelegate} instance. * @param dynamicResourceLoader A {@link DynamicResourceLoader} instance. */ public void init(TabModelSelector selector, TabCreatorManager creator, TabContentManager content, ViewGroup androidContentContainer, ContextualSearchManagementDelegate contextualSearchDelegate, ReaderModeManagerDelegate readerModeDelegate, DynamicResourceLoader dynamicResourceLoader) { mTabModelSelector = selector; mContentContainer = androidContentContainer; if (mNextActiveLayout != null) startShowing(mNextActiveLayout, true); updateLayoutForTabModelSelector(); }
Example #5
Source File: ContextualSearchPanel.java From delion with Apache License 2.0 | 5 votes |
/** * Sets the {@code ContextualSearchManagementDelegate} associated with this panel. * @param delegate The {@code ContextualSearchManagementDelegate}. */ public void setManagementDelegate(ContextualSearchManagementDelegate delegate) { if (mManagementDelegate != delegate) { mManagementDelegate = delegate; if (delegate != null) { setChromeActivity(mManagementDelegate.getChromeActivity()); } } }
Example #6
Source File: CustomTabLayoutManager.java From delion with Apache License 2.0 | 5 votes |
@Override public void init(TabModelSelector selector, TabCreatorManager creator, TabContentManager content, ViewGroup androidContentContainer, ContextualSearchManagementDelegate contextualSearchDelegate, ReaderModeManagerDelegate readerModeDelegate, DynamicResourceLoader dynamicResourceLoader) { super.init(selector, creator, content, androidContentContainer, contextualSearchDelegate, readerModeDelegate, dynamicResourceLoader); for (TabModel model : selector.getModels()) model.addObserver(mTabModelObserver); }
Example #7
Source File: CompositorViewHolder.java From AndroidChromium with Apache License 2.0 | 5 votes |
/** * Sets the appropriate objects this class should represent. * @param tabModelSelector The {@link TabModelSelector} this View should hold and * represent. * @param tabCreatorManager The {@link TabCreatorManager} for this view. * @param tabContentManager The {@link TabContentManager} for the tabs. * @param androidContentContainer The {@link ViewGroup} the {@link LayoutManager} should bind * Android content to. * @param contextualSearchManager A {@link ContextualSearchManagementDelegate} instance. * @param readerModeManager A {@link ReaderModeManagerDelegate} instance. */ public void onFinishNativeInitialization(TabModelSelector tabModelSelector, TabCreatorManager tabCreatorManager, TabContentManager tabContentManager, ViewGroup androidContentContainer, ContextualSearchManagementDelegate contextualSearchManager, ReaderModeManagerDelegate readerModeManager) { assert mLayoutManager != null; mLayoutManager.init(tabModelSelector, tabCreatorManager, tabContentManager, androidContentContainer, contextualSearchManager, readerModeManager, mCompositorView.getResourceManager().getDynamicResourceLoader()); mTabModelSelector = tabModelSelector; tabModelSelector.addObserver(new EmptyTabModelSelectorObserver() { @Override public void onChange() { onContentChanged(); } @Override public void onNewTabCreated(Tab tab) { initializeTab(tab); } }); mLayerTitleCache.setTabModelSelector(mTabModelSelector); onContentChanged(); }
Example #8
Source File: LayoutManagerChromePhone.java From AndroidChromium with Apache License 2.0 | 5 votes |
@Override public void init(TabModelSelector selector, TabCreatorManager creator, TabContentManager content, ViewGroup androidContentContainer, ContextualSearchManagementDelegate contextualSearchDelegate, ReaderModeManagerDelegate readerModeDelegate, DynamicResourceLoader dynamicResourceLoader) { // Initialize Layouts mSimpleAnimationLayout.setTabModelSelector(selector, content); super.init(selector, creator, content, androidContentContainer, contextualSearchDelegate, readerModeDelegate, dynamicResourceLoader); }
Example #9
Source File: LayoutManager.java From AndroidChromium with Apache License 2.0 | 5 votes |
/** * Initializes the {@link LayoutManager}. Must be called before using this object. * @param selector A {@link TabModelSelector} instance. * @param creator A {@link TabCreatorManager} instance. * @param content A {@link TabContentManager} instance. * @param androidContentContainer A {@link ViewGroup} for Android views to be bound to. * @param contextualSearchDelegate A {@link ContextualSearchDelegate} instance. * @param readerModeDelegate A {@link ReaderModeManagerDelegate} instance. * @param dynamicResourceLoader A {@link DynamicResourceLoader} instance. */ public void init(TabModelSelector selector, TabCreatorManager creator, TabContentManager content, ViewGroup androidContentContainer, ContextualSearchManagementDelegate contextualSearchDelegate, ReaderModeManagerDelegate readerModeDelegate, DynamicResourceLoader dynamicResourceLoader) { mTabModelSelector = selector; mContentContainer = androidContentContainer; if (mNextActiveLayout != null) startShowing(mNextActiveLayout, true); updateLayoutForTabModelSelector(); }
Example #10
Source File: ContextualSearchPanel.java From AndroidChromium with Apache License 2.0 | 5 votes |
/** * Sets the {@code ContextualSearchManagementDelegate} associated with this panel. * @param delegate The {@code ContextualSearchManagementDelegate}. */ public void setManagementDelegate(ContextualSearchManagementDelegate delegate) { if (mManagementDelegate != delegate) { mManagementDelegate = delegate; if (delegate != null) { setChromeActivity(mManagementDelegate.getChromeActivity()); } } }
Example #11
Source File: CustomTabLayoutManager.java From AndroidChromium with Apache License 2.0 | 5 votes |
@Override public void init(TabModelSelector selector, TabCreatorManager creator, TabContentManager content, ViewGroup androidContentContainer, ContextualSearchManagementDelegate contextualSearchDelegate, ReaderModeManagerDelegate readerModeDelegate, DynamicResourceLoader dynamicResourceLoader) { super.init(selector, creator, content, androidContentContainer, contextualSearchDelegate, readerModeDelegate, dynamicResourceLoader); for (TabModel model : selector.getModels()) model.addObserver(mTabModelObserver); }
Example #12
Source File: CompositorViewHolder.java From 365browser with Apache License 2.0 | 5 votes |
/** * Sets the appropriate objects this class should represent. * @param tabModelSelector The {@link TabModelSelector} this View should hold and * represent. * @param tabCreatorManager The {@link TabCreatorManager} for this view. * @param tabContentManager The {@link TabContentManager} for the tabs. * @param androidContentContainer The {@link ViewGroup} the {@link LayoutManager} should bind * Android content to. * @param contextualSearchManager A {@link ContextualSearchManagementDelegate} instance. * @param readerModeManager A {@link ReaderModeManagerDelegate} instance. */ public void onFinishNativeInitialization(TabModelSelector tabModelSelector, TabCreatorManager tabCreatorManager, TabContentManager tabContentManager, ViewGroup androidContentContainer, ContextualSearchManagementDelegate contextualSearchManager, ReaderModeManagerDelegate readerModeManager) { assert mLayoutManager != null; mLayoutManager.init(tabModelSelector, tabCreatorManager, tabContentManager, androidContentContainer, contextualSearchManager, readerModeManager, mCompositorView.getResourceManager().getDynamicResourceLoader()); attachToTabModelSelector(tabModelSelector); onContentChanged(); }
Example #13
Source File: LayoutManagerChromePhone.java From 365browser with Apache License 2.0 | 5 votes |
@Override public void init(TabModelSelector selector, TabCreatorManager creator, TabContentManager content, ViewGroup androidContentContainer, ContextualSearchManagementDelegate contextualSearchDelegate, ReaderModeManagerDelegate readerModeDelegate, DynamicResourceLoader dynamicResourceLoader) { // Initialize Layouts mSimpleAnimationLayout.setTabModelSelector(selector, content); super.init(selector, creator, content, androidContentContainer, contextualSearchDelegate, readerModeDelegate, dynamicResourceLoader); }
Example #14
Source File: LayoutManager.java From 365browser with Apache License 2.0 | 5 votes |
/** * Initializes the {@link LayoutManager}. Must be called before using this object. * @param selector A {@link TabModelSelector} instance. * @param creator A {@link TabCreatorManager} instance. * @param content A {@link TabContentManager} instance. * @param androidContentContainer A {@link ViewGroup} for Android views to be bound to. * @param contextualSearchDelegate A {@link ContextualSearchDelegate} instance. * @param readerModeDelegate A {@link ReaderModeManagerDelegate} instance. * @param dynamicResourceLoader A {@link DynamicResourceLoader} instance. */ public void init(TabModelSelector selector, TabCreatorManager creator, TabContentManager content, ViewGroup androidContentContainer, ContextualSearchManagementDelegate contextualSearchDelegate, ReaderModeManagerDelegate readerModeDelegate, DynamicResourceLoader dynamicResourceLoader) { mTabModelSelector = selector; mContentContainer = androidContentContainer; if (mNextActiveLayout != null) startShowing(mNextActiveLayout, true); updateLayoutForTabModelSelector(); }
Example #15
Source File: ContextualSearchPanel.java From 365browser with Apache License 2.0 | 5 votes |
/** * Sets the {@code ContextualSearchManagementDelegate} associated with this panel. * @param delegate The {@code ContextualSearchManagementDelegate}. */ public void setManagementDelegate(ContextualSearchManagementDelegate delegate) { if (mManagementDelegate != delegate) { mManagementDelegate = delegate; if (delegate != null) { setChromeActivity(mManagementDelegate.getChromeActivity()); } } }
Example #16
Source File: CustomTabLayoutManager.java From 365browser with Apache License 2.0 | 5 votes |
@Override public void init(TabModelSelector selector, TabCreatorManager creator, TabContentManager content, ViewGroup androidContentContainer, ContextualSearchManagementDelegate contextualSearchDelegate, ReaderModeManagerDelegate readerModeDelegate, DynamicResourceLoader dynamicResourceLoader) { super.init(selector, creator, content, androidContentContainer, contextualSearchDelegate, readerModeDelegate, dynamicResourceLoader); for (TabModel model : selector.getModels()) model.addObserver(mTabModelObserver); }