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

Unified Diff: ui/wm/core/window_modality_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: 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: ui/wm/core/window_modality_controller.cc
diff --git a/ui/wm/core/window_modality_controller.cc b/ui/wm/core/window_modality_controller.cc
index 1df375b439aff85b6f91fe4560bff9ff80415274..fff112e47d213786d761e704509bb94cd7a38b56 100644
--- a/ui/wm/core/window_modality_controller.cc
+++ b/ui/wm/core/window_modality_controller.cc
@@ -159,7 +159,7 @@ void WindowModalityController::OnWindowPropertyChanged(aura::Window* window,
void WindowModalityController::OnWindowVisibilityChanged(
aura::Window* window,
- bool visible) {
+ bool visible, bool content_visible) {
if (visible && window->GetProperty(aura::client::kModalKey) !=
ui::MODAL_TYPE_NONE) {
ui::GestureRecognizer::Get()->TransferEventsTo(GetTransientParent(window),

Powered by Google App Engine
This is Rietveld 408576698