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

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

Issue 970883002: [Android WebView] Synthesize a fake page loading event on page source modification (Re-land) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed findbugs warning Created 5 years, 10 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
« no previous file with comments | « content/browser/web_contents/web_contents_android.h ('k') | content/content.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5e2b1284c7f186f55c9b27d8b0cffa4c0642622a..5a89df69f203be45e6a06a4d23745eb3be6a0eba 100644
--- a/content/browser/web_contents/web_contents_android.cc
+++ b/content/browser/web_contents/web_contents_android.cc
@@ -170,6 +170,14 @@ ScopedJavaLocalRef<jstring> WebContentsAndroid::GetURL(JNIEnv* env,
return ConvertUTF8ToJavaString(env, web_contents_->GetURL().spec());
}
+ScopedJavaLocalRef<jstring> WebContentsAndroid::GetLastCommittedURL(
+ JNIEnv* env,
+ jobject) const {
+ return ConvertUTF8ToJavaString(env,
+ web_contents_->GetLastCommittedURL().spec());
+}
+
+
jboolean WebContentsAndroid::IsIncognito(JNIEnv* env, jobject obj) {
return web_contents_->GetBrowserContext()->IsOffTheRecord();
}
@@ -480,4 +488,11 @@ void WebContentsAndroid::AddMessageToDevToolsConsole(JNIEnv* env,
ConvertJavaStringToUTF8(env, message)));
}
+jboolean WebContentsAndroid::HasAccessedInitialDocument(
+ JNIEnv* env,
+ jobject jobj) {
+ return static_cast<content::WebContentsImpl*>(web_contents_)->
+ HasAccessedInitialDocument();
+}
+
} // namespace content
« no previous file with comments | « content/browser/web_contents/web_contents_android.h ('k') | content/content.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698