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

Unified Diff: content/renderer/render_view_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: WebView->WebFrame Created 4 years, 6 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_view_impl.h
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h
index 10d9ebe4ead69633007cd75d57d3fdb87564f89f..3d607c6de54b00bcb22455f28e5d3c141790b910 100644
--- a/content/renderer/render_view_impl.h
+++ b/content/renderer/render_view_impl.h
@@ -45,7 +45,6 @@
#include "content/renderer/render_widget_owner_delegate.h"
#include "content/renderer/stats_collection_observer.h"
#include "ipc/ipc_platform_file.h"
-#include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
#include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
#include "third_party/WebKit/public/web/WebAXObject.h"
#include "third_party/WebKit/public/web/WebConsoleMessage.h"
@@ -428,7 +427,6 @@ class CONTENT_EXPORT RenderViewImpl
bool ShouldDisplayScrollbars(int width, int height) const override;
int GetEnabledBindings() const override;
bool GetContentStateImmediately() const override;
- blink::WebPageVisibilityState GetVisibilityState() const override;
void DidStartLoading() override;
void DidStopLoading() override;
void Repaint(const gfx::Size& size) override;
@@ -460,9 +458,6 @@ class CONTENT_EXPORT RenderViewImpl
void Close() override;
void OnResize(const ResizeParams& params) override;
void OnSetFocus(bool enable) override;
- void OnWasHidden() override;
- void OnWasShown(bool needs_repainting,
- const ui::LatencyInfo& latency_info) override;
GURL GetURLForGraphicsContext3D() override;
void OnImeSetComposition(
const base::string16& text,
@@ -685,6 +680,8 @@ class CONTENT_EXPORT RenderViewImpl
// Page message handlers -----------------------------------------------------
void OnUpdateWindowScreenRect(gfx::Rect window_screen_rect);
void OnSetZoomLevel(PageMsg_SetZoomLevel_Command command, double zoom_level);
+ void OnPageWasHidden();
+ void OnPageWasShown();
// Adding a new message handler? Please add it in alphabetical order above
// and put it in the same position in the .cc file.

Powered by Google App Engine
This is Rietveld 408576698