Index: content/public/renderer/render_frame.h |
diff --git a/content/public/renderer/render_frame.h b/content/public/renderer/render_frame.h |
index 25ffdf7be7f49b7d48c8bf62b6d096449fdefea0..8a75dbc6c6ad9ba6384ba66bb3514570a3057a64 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; |
@@ -201,6 +202,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 frame. |
+ virtual blink::WebPageVisibilityState GetVisibilityState() const = 0; |
+ |
protected: |
~RenderFrame() override {} |