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

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

Issue 1991273003: Fire visibilityChange event on out-of-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android test+naming Created 4 years, 6 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_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index bfdda50f69c982a5208572a106e7b34157cfed2d..9f89d3b443310d6f16c6c9b70ecf359c903d2c19 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1311,6 +1311,8 @@ void WebContentsImpl::WasShown() {
}
}
+ SendPageMessage(new PageMsg_WasShown(MSG_ROUTING_NONE));
Charlie Reis 2016/06/06 23:15:09 Is the order of this method important? It looks a
lfg 2016/06/08 20:00:22 The order is not important right now (and I don't
+
last_active_time_ = base::TimeTicks::Now();
// The resize rect might have changed while this was inactive -- send the new
@@ -1340,6 +1342,8 @@ void WebContentsImpl::WasHidden() {
if (view)
view->Hide();
}
+
+ SendPageMessage(new PageMsg_WasHidden(MSG_ROUTING_NONE));
}
FOR_EACH_OBSERVER(WebContentsObserver, observers_, WasHidden());

Powered by Google App Engine
This is Rietveld 408576698