org.chromium.chrome.browser.compositor.bottombar.contextualsearch.ContextualSearchPanel Java Examples

The following examples show how to use org.chromium.chrome.browser.compositor.bottombar.contextualsearch.ContextualSearchPanel. 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: LayoutManagerDocument.java    From delion with Apache License 2.0 5 votes vote down vote up
/**
 * Creates a {@link LayoutManagerDocument} instance.
 * @param host            A {@link LayoutManagerHost} instance.
 */
public LayoutManagerDocument(LayoutManagerHost host) {
    super(host);
    mContext = host.getContext();
    LayoutRenderHost renderHost = host.getLayoutRenderHost();

    mToolbarOverlay = new ToolbarSceneLayer(mContext, this, renderHost);

    // Build Event Filter Handlers
    mGestureHandler = new GestureHandlerLayoutDelegate(this);
    mToolbarSwipeHandler = new ToolbarSwipeHandler(this);

    // Build Event Filters
    mStaticEdgeEventFilter =
            new EdgeSwipeEventFilter(mContext, this, new StaticEdgeSwipeHandler());

    mOverlayPanelManager = new OverlayPanelManager();

    // Build Layouts
    mStaticLayout = new StaticLayout(
            mContext, this, renderHost, mStaticEdgeEventFilter, mOverlayPanelManager);

    // Contextual Search scene overlay.
    mContextualSearchPanel =
            new ContextualSearchPanel(mContext, this, this, mOverlayPanelManager);

    // Reader Mode scene overlay.
    mReaderModePanel = new ReaderModePanel(mContext, this, this, mOverlayPanelManager, this);

    // Set up layout parameters
    mStaticLayout.setLayoutHandlesTabLifecycles(true);

    setNextLayout(null);
}
 
Example #2
Source File: LayoutManagerDocument.java    From AndroidChromium with Apache License 2.0 5 votes vote down vote up
/**
 * Creates a {@link LayoutManagerDocument} instance.
 * @param host            A {@link LayoutManagerHost} instance.
 */
public LayoutManagerDocument(LayoutManagerHost host) {
    super(host);
    mContext = host.getContext();
    LayoutRenderHost renderHost = host.getLayoutRenderHost();

    mToolbarOverlay = new ToolbarSceneLayer(mContext, this, renderHost);

    // Build Event Filter Handlers
    mGestureHandler = new GestureHandlerLayoutDelegate(this);
    mToolbarSwipeHandler = new ToolbarSwipeHandler(this);

    // Build Event Filters
    mStaticEdgeEventFilter =
            new EdgeSwipeEventFilter(mContext, this, new StaticEdgeSwipeHandler());

    mOverlayPanelManager = new OverlayPanelManager();

    // Build Layouts
    mStaticLayout = new StaticLayout(
            mContext, this, renderHost, mStaticEdgeEventFilter, mOverlayPanelManager);

    // Contextual Search scene overlay.
    mContextualSearchPanel =
            new ContextualSearchPanel(mContext, this, this, mOverlayPanelManager);

    // Reader Mode scene overlay.
    mReaderModePanel = new ReaderModePanel(mContext, this, this, mOverlayPanelManager, this);

    // Set up layout parameters
    mStaticLayout.setLayoutHandlesTabLifecycles(true);

    setNextLayout(null);
}
 
Example #3
Source File: LayoutManagerDocument.java    From 365browser with Apache License 2.0 5 votes vote down vote up
/**
 * Creates a {@link LayoutManagerDocument} instance.
 * @param host            A {@link LayoutManagerHost} instance.
 */
public LayoutManagerDocument(LayoutManagerHost host) {
    super(host);
    mContext = host.getContext();
    LayoutRenderHost renderHost = host.getLayoutRenderHost();

    mToolbarOverlay = new ToolbarSceneLayer(mContext, this, renderHost);

    // Build Event Filter Handlers
    mToolbarSwipeHandler = new ToolbarSwipeHandler(this);

    mOverlayPanelManager = new OverlayPanelManager();

    // Build Layouts
    mStaticLayout = new StaticLayout(mContext, this, renderHost, null, mOverlayPanelManager);

    // Contextual Search scene overlay.
    mContextualSearchPanel = new ContextualSearchPanel(mContext, this, mOverlayPanelManager);

    // Reader Mode scene overlay.
    mReaderModePanel = new ReaderModePanel(mContext, this, mOverlayPanelManager, this);

    // Set up layout parameters
    mStaticLayout.setLayoutHandlesTabLifecycles(true);

    setNextLayout(null);
}
 
Example #4
Source File: ContextualSearchManager.java    From delion with Apache License 2.0 4 votes vote down vote up
@Override
public void setContextualSearchPanel(ContextualSearchPanel panel) {
    mSearchPanel = panel;
    mPolicy.setContextualSearchPanel(panel);
}
 
Example #5
Source File: ContextualSearchManager.java    From delion with Apache License 2.0 4 votes vote down vote up
/**
 * @return The {@link ContextualSearchPanel}, for testing purposes only.
 */
@VisibleForTesting
ContextualSearchPanel getContextualSearchPanel() {
    return mSearchPanel;
}
 
Example #6
Source File: ContextualSearchManager.java    From AndroidChromium with Apache License 2.0 4 votes vote down vote up
@Override
public void setContextualSearchPanel(ContextualSearchPanel panel) {
    mSearchPanel = panel;
    mPolicy.setContextualSearchPanel(panel);
}
 
Example #7
Source File: ContextualSearchManager.java    From AndroidChromium with Apache License 2.0 4 votes vote down vote up
/**
 * @return The {@link ContextualSearchPanel}, for testing purposes only.
 */
@VisibleForTesting
ContextualSearchPanel getContextualSearchPanel() {
    return mSearchPanel;
}
 
Example #8
Source File: ContextualSearchManager.java    From 365browser with Apache License 2.0 4 votes vote down vote up
@Override
public void setContextualSearchPanel(ContextualSearchPanel panel) {
    mSearchPanel = panel;
    mPolicy.setContextualSearchPanel(panel);
}
 
Example #9
Source File: ContextualSearchManager.java    From 365browser with Apache License 2.0 4 votes vote down vote up
/** @return The {@link ContextualSearchPanel}, for testing purposes only. */
@VisibleForTesting
ContextualSearchPanel getContextualSearchPanel() {
    return mSearchPanel;
}
 
Example #10
Source File: ContextualSearchManagementDelegate.java    From delion with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the handle to the ContextualSearchPanel.
 * @param panel The ContextualSearchPanel.
 */
void setContextualSearchPanel(ContextualSearchPanel panel);
 
Example #11
Source File: ContextualSearchPolicy.java    From delion with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the handle to the ContextualSearchPanel.
 * @param panel The ContextualSearchPanel.
 */
public void setContextualSearchPanel(ContextualSearchPanel panel) {
    mSearchPanel = panel;
}
 
Example #12
Source File: ContextualSearchManagementDelegate.java    From AndroidChromium with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the handle to the ContextualSearchPanel.
 * @param panel The ContextualSearchPanel.
 */
void setContextualSearchPanel(ContextualSearchPanel panel);
 
Example #13
Source File: ContextualSearchPolicy.java    From AndroidChromium with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the handle to the ContextualSearchPanel.
 * @param panel The ContextualSearchPanel.
 */
public void setContextualSearchPanel(ContextualSearchPanel panel) {
    mSearchPanel = panel;
}
 
Example #14
Source File: ContextualSearchManagementDelegate.java    From 365browser with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the handle to the ContextualSearchPanel.
 * @param panel The ContextualSearchPanel.
 */
void setContextualSearchPanel(ContextualSearchPanel panel);
 
Example #15
Source File: ContextualSearchPolicy.java    From 365browser with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the handle to the ContextualSearchPanel.
 * @param panel The ContextualSearchPanel.
 */
public void setContextualSearchPanel(ContextualSearchPanel panel) {
    mSearchPanel = panel;
}