Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Unified Diff: content/browser/web_contents/web_contents_android.cc

Issue 690083005: [Android] Expose WebContents IsLoading methods to java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_android.cc
diff --git a/content/browser/web_contents/web_contents_android.cc b/content/browser/web_contents/web_contents_android.cc
index 906ec99a07580e080f2036594f15247fc0b4f798..85490c178b8f4f45d1fc57fc6319399a99f8e3ec 100644
--- a/content/browser/web_contents/web_contents_android.cc
+++ b/content/browser/web_contents/web_contents_android.cc
@@ -99,6 +99,15 @@ ScopedJavaLocalRef<jstring> WebContentsAndroid::GetVisibleURL(
env, web_contents_->GetVisibleURL().spec());
}
+bool WebContentsAndroid::IsLoading(JNIEnv* env, jobject obj) const {
+ return web_contents_->IsLoading();
+}
+
+bool WebContentsAndroid::IsLoadingToDifferentDocument(JNIEnv* env,
+ jobject obj) const {
+ return web_contents_->IsLoadingToDifferentDocument();
+}
+
void WebContentsAndroid::Stop(JNIEnv* env, jobject obj) {
web_contents_->Stop();
}

Powered by Google App Engine
This is Rietveld 408576698