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

Unified Diff: content/public/renderer/render_frame.h

Issue 1991273003: Fire visibilityChange event on out-of-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/public/renderer/render_frame.h
diff --git a/content/public/renderer/render_frame.h b/content/public/renderer/render_frame.h
index 06fb03655f2569bb01379bc94a3d634897ca22ba..c2f2e251767afe31cfbf925958e26629161b92f3 100644
--- a/content/public/renderer/render_frame.h
+++ b/content/public/renderer/render_frame.h
@@ -15,6 +15,7 @@
#include "content/public/common/console_message_level.h"
#include "ipc/ipc_listener.h"
#include "ipc/ipc_sender.h"
+#include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
#include "third_party/WebKit/public/web/WebNavigationPolicy.h"
class GURL;
@@ -203,6 +204,9 @@ class CONTENT_EXPORT RenderFrame : public IPC::Listener,
// Whether or not this frame is currently pasting.
virtual bool IsPasting() const = 0;
+ // Returns the current visibility of the WebView.
dcheng 2016/05/24 20:38:24 Frame?
lfg 2016/05/24 23:33:50 Done.
+ virtual blink::WebPageVisibilityState GetVisibilityState() const = 0;
+
protected:
~RenderFrame() override {}

Powered by Google App Engine
This is Rietveld 408576698