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

Unified Diff: chrome/browser/android/tab_android.cc

Issue 2628943003: Add metrics for triggering of JS dialogs on Android. (Closed)
Patch Set: Rebase and updated comment Created 3 years, 11 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: chrome/browser/android/tab_android.cc
diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
index 7489cfe3ad26096de68d4ce1f8a1b358224fc89d..421ec3dfe30464342678a851c699dc5254197e65 100644
--- a/chrome/browser/android/tab_android.cc
+++ b/chrome/browser/android/tab_android.cc
@@ -167,6 +167,11 @@ GURL TabAndroid::GetURL() const {
Java_Tab_getUrl(env, weak_java_tab_.get(env))));
}
+bool TabAndroid::IsUserInteractable() const {
+ JNIEnv* env = base::android::AttachCurrentThread();
+ return Java_Tab_isUserInteractable(env, weak_java_tab_.get(env));
+}
+
bool TabAndroid::LoadIfNeeded() {
JNIEnv* env = base::android::AttachCurrentThread();
return Java_Tab_loadIfNeeded(env, weak_java_tab_.get(env));
« no previous file with comments | « chrome/browser/android/tab_android.h ('k') | chrome/browser/ui/android/javascript_app_modal_dialog_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698