Index: content/renderer/render_frame_impl.h |
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h |
index a2675f253887269433cd67a2c3de5d07fae84b53..59057e45326cad71746d650bc582626d57faabbd 100644 |
--- a/content/renderer/render_frame_impl.h |
+++ b/content/renderer/render_frame_impl.h |
@@ -43,6 +43,7 @@ |
#include "third_party/WebKit/public/platform/WebFocusType.h" |
#include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h" |
#include "third_party/WebKit/public/platform/WebMediaPlayer.h" |
+#include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
#include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClient.h" |
#include "third_party/WebKit/public/web/WebAXObject.h" |
#include "third_party/WebKit/public/web/WebDataSource.h" |
@@ -615,6 +616,7 @@ class CONTENT_EXPORT RenderFrameImpl |
const blink::WebSecurityOrigin& security_origin, |
blink::WebSetSinkIdCallbacks* web_callbacks) override; |
blink::ServiceRegistry* serviceRegistry() override; |
+ blink::WebPageVisibilityState visibilityState() const override; |
// WebFrameSerializerClient implementation: |
void didSerializeDataForFrame( |
@@ -669,6 +671,9 @@ class CONTENT_EXPORT RenderFrameImpl |
void PepperFocusChanged(PepperPluginInstanceImpl* instance, bool focused); |
#endif // ENABLE_PLUGINS |
+ // Returns the current visibility of the WebView. |
+ blink::WebPageVisibilityState GetVisibilityState() const override; |
kenrb
2016/05/24 20:25:18
This should be into the RenderFrame implementation
lfg
2016/05/24 23:33:50
Done.
|
+ |
protected: |
explicit RenderFrameImpl(const CreateParams& params); |