本文整理汇总了Java中org.chromium.content.browser.ContentViewStatics类的典型用法代码示例。如果您正苦于以下问题:Java ContentViewStatics类的具体用法?Java ContentViewStatics怎么用?Java ContentViewStatics使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ContentViewStatics类属于org.chromium.content.browser包,在下文中一共展示了ContentViewStatics类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: startTimers
import org.chromium.content.browser.ContentViewStatics; //导入依赖的package包/类
private void startTimers() {
if (mSuspendRunnable != null) {
mHandler.removeCallbacks(mSuspendRunnable);
mSuspendRunnable = null;
} else if (mWebKitTimersAreSuspended) {
ContentViewStatics.setWebKitSharedTimersSuspended(false);
mWebKitTimersAreSuspended = false;
}
}
示例2: getStatics
import org.chromium.content.browser.ContentViewStatics; //导入依赖的package包/类
@Override
public Statics getStatics() {
synchronized (mLock) {
if (mStaticMethods == null) {
// TODO: Optimization potential: most these methods only need the native library
// loaded and initialized, not the entire browser process started.
// See also http://b/7009882
ensureChromiumStartedLocked(true);
mStaticMethods = new WebViewFactoryProvider.Statics() {
@Override
public String findAddress(String addr) {
return ContentViewStatics.findAddress(addr);
}
@Override
public void setPlatformNotificationsEnabled(boolean enable) {
// noop
}
@Override
public String getDefaultUserAgent(Context context) {
return AwSettings.getDefaultUserAgent();
}
@Override
public void setWebContentsDebuggingEnabled(boolean enable) {
// Web Contents debugging is always enabled on debug builds.
WebViewChromiumFactoryProvider.this.
setWebContentsDebuggingEnabled(enable);
}
};
}
}
return mStaticMethods;
}
示例3: pauseTimers
import org.chromium.content.browser.ContentViewStatics; //导入依赖的package包/类
/**
* @see android.webkit.WebView#pauseTimers()
*/
public void pauseTimers() {
ContentViewStatics.setWebKitSharedTimersSuspended(true);
}
示例4: resumeTimers
import org.chromium.content.browser.ContentViewStatics; //导入依赖的package包/类
/**
* @see android.webkit.WebView#resumeTimers()
*/
public void resumeTimers() {
ContentViewStatics.setWebKitSharedTimersSuspended(false);
}
示例5: pauseTimers
import org.chromium.content.browser.ContentViewStatics; //导入依赖的package包/类
public void pauseTimers() {
ContentViewStatics.setWebKitSharedTimersSuspended(true);
}
示例6: resumeTimers
import org.chromium.content.browser.ContentViewStatics; //导入依赖的package包/类
public void resumeTimers() {
ContentViewStatics.setWebKitSharedTimersSuspended(false);
}