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

Unified Diff: content/browser/android/web_contents_observer_proxy.cc

Issue 2434893003: Hide the page info dialog if the underlying webcontents is hidden. (Closed)
Patch Set: Created 4 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/android/web_contents_observer_proxy.cc
diff --git a/content/browser/android/web_contents_observer_proxy.cc b/content/browser/android/web_contents_observer_proxy.cc
index ca274f8f0dd116f093012d0da0cf7dacb09234b9..e42d6bd0b5c44cb483da5c5711afdae038a83421 100644
--- a/content/browser/android/web_contents_observer_proxy.cc
+++ b/content/browser/android/web_contents_observer_proxy.cc
@@ -294,6 +294,18 @@ void WebContentsObserverProxy::DidFirstVisuallyNonEmptyPaint() {
Java_WebContentsObserverProxy_didFirstVisuallyNonEmptyPaint(env, obj);
}
+void WebContentsObserverProxy::WasShown() {
+ JNIEnv* env = AttachCurrentThread();
+ ScopedJavaLocalRef<jobject> obj(java_observer_);
+ Java_WebContentsObserverProxy_wasShown(env, obj);
+}
+
+void WebContentsObserverProxy::WasHidden() {
+ JNIEnv* env = AttachCurrentThread();
+ ScopedJavaLocalRef<jobject> obj(java_observer_);
+ Java_WebContentsObserverProxy_wasHidden(env, obj);
+}
+
void WebContentsObserverProxy::DidStartNavigationToPendingEntry(
const GURL& url,
ReloadType reload_type) {

Powered by Google App Engine
This is Rietveld 408576698