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

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: addressing comments Created 4 years, 7 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 e67fc30d38417aa139d25eeab2d84c7e4051ff2e..403e870c549b395dd556a05472a950de18b79ba9 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1312,6 +1312,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
@@ -1341,6 +1343,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