当前位置: 首页>>代码示例>>Java>>正文


Java NavigationHistory类代码示例

本文整理汇总了Java中org.chromium.content.browser.NavigationHistory的典型用法代码示例。如果您正苦于以下问题:Java NavigationHistory类的具体用法?Java NavigationHistory怎么用?Java NavigationHistory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


NavigationHistory类属于org.chromium.content.browser包,在下文中一共展示了NavigationHistory类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onLoadProgressChanged

import org.chromium.content.browser.NavigationHistory; //导入依赖的package包/类
@SuppressWarnings("unused")
@CalledByNative
protected void onLoadProgressChanged(double progress) {
    super.onLoadProgressChanged(progress);
    if (mWebViewClient != null) {
        if (progress == 0) {
            NavigationHistory history = this.getContentView().getContentViewCore().getNavigationHistory();
            NavigationEntry entry = null;
            int currentIndex = history.getCurrentEntryIndex();
            if (currentIndex > -1) {
                entry = history.getEntryAtIndex(history.getCurrentEntryIndex());
            }
            mWebViewClient.onPageStarted(this, getUrl(), entry != null ? entry.getFavicon() : null);
        } else if (progress == 1.0 ) {
            mWebViewClient.onPageFinished(this, getUrl());
        }
    }

    if (mWebChromeClient != null) {
        mWebChromeClient.onProgressChanged(this, (int) (progress * 100));
    }
}
 
开发者ID:R4md4c,项目名称:cordova-android-chromium,代码行数:23,代码来源:CordovaChromiumView.java

示例2: getDirectedNavigationHistory

import org.chromium.content.browser.NavigationHistory; //导入依赖的package包/类
@Override
public NavigationHistory getDirectedNavigationHistory(boolean isForward, int itemLimit) {
    if (mContentViewCore != null) {
        return mContentViewCore.getDirectedNavigationHistory(isForward, itemLimit);
    } else {
        return new NavigationHistory();
    }
}
 
开发者ID:morristech,项目名称:android-chromium,代码行数:9,代码来源:TabBase.java

示例3: getOriginalUrl

import org.chromium.content.browser.NavigationHistory; //导入依赖的package包/类
public String getOriginalUrl() {
    NavigationHistory history = mContentViewCore.getNavigationHistory();
    int currentIndex = history.getCurrentEntryIndex();
    if (currentIndex >= 0 && currentIndex < history.getEntryCount()) {
        return history.getEntryAtIndex(currentIndex).getOriginalUrl();
    }
    return null;
}
 
开发者ID:mogoweb,项目名称:chromium_webview,代码行数:9,代码来源:AwContents.java

示例4: WebBackForwardListChromium

import org.chromium.content.browser.NavigationHistory; //导入依赖的package包/类
public WebBackForwardListChromium(NavigationHistory nav_history) {
    mCurrentIndex = nav_history.getCurrentEntryIndex();
    mHistoryItemList = new ArrayList<WebHistoryItemChromium>(nav_history.getEntryCount());
    for (int i = 0; i < nav_history.getEntryCount(); ++i) {
        mHistoryItemList.add(
                new WebHistoryItemChromium(nav_history.getEntryAtIndex(i)));
    }
}
 
开发者ID:mogoweb,项目名称:chromium_webview,代码行数:9,代码来源:WebBackForwardListChromium.java

示例5: getNavigationHistory

import org.chromium.content.browser.NavigationHistory; //导入依赖的package包/类
/**
 * @see ContentViewCore#getNavigationHistory()
 */
public NavigationHistory getNavigationHistory() {
    return mContentViewCore.getNavigationHistory();
}
 
开发者ID:mogoweb,项目名称:chromium_webview,代码行数:7,代码来源:AwContents.java


注:本文中的org.chromium.content.browser.NavigationHistory类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。