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

Side by Side Diff: ui/wm/core/transient_window_manager.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: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_WM_CORE_TRANSIENT_WINDOW_MANAGER_H_ 5 #ifndef UI_WM_CORE_TRANSIENT_WINDOW_MANAGER_H_
6 #define UI_WM_CORE_TRANSIENT_WINDOW_MANAGER_H_ 6 #define UI_WM_CORE_TRANSIENT_WINDOW_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // above it. 75 // above it.
76 void RestackTransientDescendants(); 76 void RestackTransientDescendants();
77 77
78 // Update the window's visibility following the transient parent's 78 // Update the window's visibility following the transient parent's
79 // visibility. See |set_parent_controls_visibility(bool)| for more details. 79 // visibility. See |set_parent_controls_visibility(bool)| for more details.
80 void UpdateTransientChildVisibility(bool visible); 80 void UpdateTransientChildVisibility(bool visible);
81 81
82 // WindowObserver: 82 // WindowObserver:
83 void OnWindowParentChanged(aura::Window* window, 83 void OnWindowParentChanged(aura::Window* window,
84 aura::Window* parent) override; 84 aura::Window* parent) override;
85 void OnWindowVisibilityChanged(aura::Window* window, bool visible) override; 85 void OnWindowVisibilityChanged(aura::Window* window, bool visible,
86 bool content_visible) override;
86 void OnWindowStackingChanged(aura::Window* window) override; 87 void OnWindowStackingChanged(aura::Window* window) override;
87 void OnWindowDestroying(aura::Window* window) override; 88 void OnWindowDestroying(aura::Window* window) override;
88 89
89 aura::Window* window_; 90 aura::Window* window_;
90 aura::Window* transient_parent_; 91 aura::Window* transient_parent_;
91 Windows transient_children_; 92 Windows transient_children_;
92 93
93 // If non-null we're actively restacking transient as the result of a 94 // If non-null we're actively restacking transient as the result of a
94 // transient ancestor changing. 95 // transient ancestor changing.
95 aura::Window* stacking_target_; 96 aura::Window* stacking_target_;
96 97
97 bool parent_controls_visibility_; 98 bool parent_controls_visibility_;
98 bool show_on_parent_visible_; 99 bool show_on_parent_visible_;
99 bool ignore_visibility_changed_event_; 100 bool ignore_visibility_changed_event_;
100 101
101 ObserverList<TransientWindowObserver> observers_; 102 ObserverList<TransientWindowObserver> observers_;
102 103
103 DISALLOW_COPY_AND_ASSIGN(TransientWindowManager); 104 DISALLOW_COPY_AND_ASSIGN(TransientWindowManager);
104 }; 105 };
105 106
106 } // namespace wm 107 } // namespace wm
107 108
108 #endif // UI_WM_CORE_TRANSIENT_WINDOW_MANAGER_H_ 109 #endif // UI_WM_CORE_TRANSIENT_WINDOW_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698