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

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: comments 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
« no previous file with comments | « content/browser/site_per_process_browsertest.cc ('k') | content/common/page_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2978fb9e1c1e386f7eec5be92e6fee02b2192435..9a8ed22506d5a62bcc7e16869f1b0f291ec16b9d 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1290,6 +1290,8 @@ void WebContentsImpl::WasShown() {
}
}
+ SendPageMessage(new PageMsg_WasShown(MSG_ROUTING_NONE));
+
last_active_time_ = base::TimeTicks::Now();
// The resize rect might have changed while this was inactive -- send the new
@@ -1319,6 +1321,8 @@ void WebContentsImpl::WasHidden() {
if (view)
view->Hide();
}
+
+ SendPageMessage(new PageMsg_WasHidden(MSG_ROUTING_NONE));
}
FOR_EACH_OBSERVER(WebContentsObserver, observers_, WasHidden());
« no previous file with comments | « content/browser/site_per_process_browsertest.cc ('k') | content/common/page_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698