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

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

Issue 924833003: [Android WebView] Synthesize a fake page loading event on page source modification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed android_aosp & rebased 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
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..1c32a9b7f2ca117ac744e0d8b1cec784180c875a 100644
--- a/content/browser/web_contents/web_contents_android.cc
+++ b/content/browser/web_contents/web_contents_android.cc
@@ -480,4 +480,11 @@ void WebContentsAndroid::AddMessageToDevToolsConsole(JNIEnv* env,
ConvertJavaStringToUTF8(env, message)));
}
+jboolean WebContentsAndroid::HasPageScriptAccessedInitialDocument(
Ted C 2015/02/23 21:04:08 Exposing this is a layering violation of sorts. W
Charlie Reis 2015/02/23 21:28:04 Actually, why do we need to expose this? In deskt
mnaganov (inactive) 2015/02/23 22:17:55 This is to avoid generating premature / superfluou
mnaganov (inactive) 2015/02/24 11:28:42 I agree, this isn't good, but as I have noted in m
+ JNIEnv* env,
+ jobject jobj) {
+ return static_cast<content::WebContentsImpl*>(web_contents_)->
+ HasAccessedInitialDocument();
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698