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

Unified Diff: content/renderer/render_frame_impl.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/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);

Powered by Google App Engine
This is Rietveld 408576698