org.chromium.chrome.browser.TabState.WebContentsState Java Examples

The following examples show how to use org.chromium.chrome.browser.TabState.WebContentsState. 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: Tab.java    From delion with Apache License 2.0 5 votes vote down vote up
/** Returns an object representing the state of the Tab's WebContents. */
private TabState.WebContentsState getWebContentsState() {
    if (mFrozenContentsState != null) return mFrozenContentsState;

    // Native call returns null when buffer allocation needed to serialize the state failed.
    ByteBuffer buffer = getWebContentsStateAsByteBuffer();
    if (buffer == null) return null;

    TabState.WebContentsState state = new TabState.WebContentsStateNative(buffer);
    state.setVersion(TabState.CONTENTS_STATE_CURRENT_VERSION);
    return state;
}
 
Example #2
Source File: Tab.java    From AndroidChromium with Apache License 2.0 5 votes vote down vote up
/** Returns an object representing the state of the Tab's WebContents. */
private TabState.WebContentsState getWebContentsState() {
    if (mFrozenContentsState != null) return mFrozenContentsState;

    // Native call returns null when buffer allocation needed to serialize the state failed.
    ByteBuffer buffer = getWebContentsStateAsByteBuffer();
    if (buffer == null) return null;

    TabState.WebContentsState state = new TabState.WebContentsStateNative(buffer);
    state.setVersion(TabState.CONTENTS_STATE_CURRENT_VERSION);
    return state;
}
 
Example #3
Source File: Tab.java    From 365browser with Apache License 2.0 5 votes vote down vote up
/** Returns an object representing the state of the Tab's WebContents. */
private TabState.WebContentsState getWebContentsState() {
    if (mFrozenContentsState != null) return mFrozenContentsState;

    // Native call returns null when buffer allocation needed to serialize the state failed.
    ByteBuffer buffer = getWebContentsStateAsByteBuffer();
    if (buffer == null) return null;

    TabState.WebContentsState state = new TabState.WebContentsStateNative(buffer);
    state.setVersion(TabState.CONTENTS_STATE_CURRENT_VERSION);
    return state;
}
 
Example #4
Source File: Tab.java    From delion with Apache License 2.0 4 votes vote down vote up
/** @return WebContentsState representing the state of the WebContents (navigations, etc.) */
public WebContentsState getFrozenContentsState() {
    return mFrozenContentsState;
}
 
Example #5
Source File: Tab.java    From AndroidChromium with Apache License 2.0 4 votes vote down vote up
/** @return WebContentsState representing the state of the WebContents (navigations, etc.) */
public WebContentsState getFrozenContentsState() {
    return mFrozenContentsState;
}
 
Example #6
Source File: Tab.java    From 365browser with Apache License 2.0 4 votes vote down vote up
/** @return WebContentsState representing the state of the WebContents (navigations, etc.) */
public WebContentsState getFrozenContentsState() {
    return mFrozenContentsState;
}