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

Unified Diff: ash/wm/immersive_fullscreen_controller.cc

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: ash/wm/immersive_fullscreen_controller.cc
diff --git a/ash/wm/immersive_fullscreen_controller.cc b/ash/wm/immersive_fullscreen_controller.cc
index 75781d5577ab2c74bc0c5ec36f0ce55488db5f52..ec55104de88c70db0f23dfff0a67258c60a42bd6 100644
--- a/ash/wm/immersive_fullscreen_controller.cc
+++ b/ash/wm/immersive_fullscreen_controller.cc
@@ -143,7 +143,9 @@ class ImmersiveFullscreenController::BubbleManager
void UpdateRevealedLock();
// aura::WindowObserver overrides:
- void OnWindowVisibilityChanged(aura::Window* window, bool visible) override;
+ void OnWindowVisibilityChanged(aura::Window* window,
+ bool visible,
+ bool content_visible) override;
void OnWindowDestroying(aura::Window* window) override;
ImmersiveFullscreenController* controller_;
@@ -223,7 +225,8 @@ void ImmersiveFullscreenController::BubbleManager::UpdateRevealedLock() {
void ImmersiveFullscreenController::BubbleManager::OnWindowVisibilityChanged(
aura::Window*,
- bool visible) {
+ bool visible,
+ bool content_visible) {
UpdateRevealedLock();
}

Powered by Google App Engine
This is Rietveld 408576698