org.chromium.chrome.browser.compositor.bottombar.readermode.ReaderModePanel Java Examples

The following examples show how to use org.chromium.chrome.browser.compositor.bottombar.readermode.ReaderModePanel. 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: ReaderModeManager.java    From delion with Apache License 2.0 4 votes vote down vote up
@Override
public void setReaderModePanel(ReaderModePanel panel) {
    mReaderModePanel = panel;
}
 
Example #5
Source File: ReaderModeManager.java    From delion with Apache License 2.0 4 votes vote down vote up
/**
 * @return The ReaderModePanel for testing.
 */
@VisibleForTesting
public ReaderModePanel getPanelForTesting() {
    return mReaderModePanel;
}
 
Example #6
Source File: ReaderModeManager.java    From AndroidChromium with Apache License 2.0 4 votes vote down vote up
@Override
public void setReaderModePanel(ReaderModePanel panel) {
    mReaderModePanel = panel;
}
 
Example #7
Source File: ReaderModeManager.java    From AndroidChromium with Apache License 2.0 4 votes vote down vote up
/**
 * @return The ReaderModePanel for testing.
 */
@VisibleForTesting
public ReaderModePanel getPanelForTesting() {
    return mReaderModePanel;
}
 
Example #8
Source File: ReaderModeManager.java    From 365browser with Apache License 2.0 4 votes vote down vote up
@Override
public void setReaderModePanel(ReaderModePanel panel) {
    mReaderModePanel = panel;
}
 
Example #9
Source File: ReaderModeManager.java    From 365browser with Apache License 2.0 4 votes vote down vote up
/**
 * @return The ReaderModePanel for testing.
 */
@VisibleForTesting
public ReaderModePanel getPanelForTesting() {
    return mReaderModePanel;
}
 
Example #10
Source File: ReaderModeManagerDelegate.java    From delion with Apache License 2.0 2 votes vote down vote up
/**
 * @param panel The panel to be managed.
 */
void setReaderModePanel(ReaderModePanel panel);
 
Example #11
Source File: ReaderModeManagerDelegate.java    From AndroidChromium with Apache License 2.0 2 votes vote down vote up
/**
 * @param panel The panel to be managed.
 */
void setReaderModePanel(ReaderModePanel panel);
 
Example #12
Source File: ReaderModeManagerDelegate.java    From 365browser with Apache License 2.0 2 votes vote down vote up
/**
 * @param panel The panel to be managed.
 */
void setReaderModePanel(ReaderModePanel panel);