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

Unified Diff: content/browser/web_contents/web_contents_view_aura.h

Issue 944763002: Make Page Visibility API work when the browser window is visible or not Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove the VisibilityNotify event handler Created 5 years, 10 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/browser/web_contents/web_contents_view_aura.h
diff --git a/content/browser/web_contents/web_contents_view_aura.h b/content/browser/web_contents/web_contents_view_aura.h
index 999e535336eee05280ba1acb708d482ec677bc2c..c0fc061f2318d0e38cd581d9fe754a9f8dc0c3b5 100644
--- a/content/browser/web_contents/web_contents_view_aura.h
+++ b/content/browser/web_contents/web_contents_view_aura.h
@@ -186,10 +186,10 @@ class WebContentsViewAura
int OnPerformDrop(const ui::DropTargetEvent& event) override;
// Overridden from aura::WindowObserver:
- void OnWindowVisibilityChanged(aura::Window* window, bool visible) override;
-
+ void OnWindowVisibilityChanged(aura::Window* window, bool visible,
+ bool content_visible) override;
// Update the web contents visiblity.
- void UpdateWebContentsVisibility(bool visible);
+ void UpdateWebContentsVisibility(bool visible, bool content_visible);
scoped_ptr<aura::Window> window_;

Powered by Google App Engine
This is Rietveld 408576698