OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ASH_SHELL_PORT_H_ | 5 #ifndef ASH_SHELL_PORT_H_ |
6 #define ASH_SHELL_PORT_H_ | 6 #define ASH_SHELL_PORT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 113 |
114 // Sets work area insets of the display containing |window|, pings observers. | 114 // Sets work area insets of the display containing |window|, pings observers. |
115 virtual void SetDisplayWorkAreaInsets(WmWindow* window, | 115 virtual void SetDisplayWorkAreaInsets(WmWindow* window, |
116 const gfx::Insets& insets) = 0; | 116 const gfx::Insets& insets) = 0; |
117 | 117 |
118 // Returns true if a system-modal dialog window is currently open. | 118 // Returns true if a system-modal dialog window is currently open. |
119 bool IsSystemModalWindowOpen(); | 119 bool IsSystemModalWindowOpen(); |
120 | 120 |
121 // Creates a modal background (a partially-opaque fullscreen window) on all | 121 // Creates a modal background (a partially-opaque fullscreen window) on all |
122 // displays for |window|. | 122 // displays for |window|. |
123 void CreateModalBackground(WmWindow* window); | 123 void CreateModalBackground(aura::Window* window); |
124 | 124 |
125 // Called when a modal window is removed. It will activate another modal | 125 // Called when a modal window is removed. It will activate another modal |
126 // window if any, or remove modal screens on all displays. | 126 // window if any, or remove modal screens on all displays. |
127 void OnModalWindowRemoved(WmWindow* removed); | 127 void OnModalWindowRemoved(aura::Window* removed); |
128 | 128 |
129 // For testing only: set simulation that a modal window is open | 129 // For testing only: set simulation that a modal window is open |
130 void SimulateModalWindowOpenForTesting(bool modal_window_open) { | 130 void SimulateModalWindowOpenForTesting(bool modal_window_open) { |
131 simulate_modal_window_open_for_testing_ = modal_window_open; | 131 simulate_modal_window_open_for_testing_ = modal_window_open; |
132 } | 132 } |
133 | 133 |
134 // See aura::client::CursorClient for details on these. | 134 // See aura::client::CursorClient for details on these. |
135 virtual void LockCursor() = 0; | 135 virtual void LockCursor() = 0; |
136 virtual void UnlockCursor() = 0; | 136 virtual void UnlockCursor() = 0; |
137 virtual bool IsMouseEventsEnabled() = 0; | 137 virtual bool IsMouseEventsEnabled() = 0; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 static ShellPort* instance_; | 238 static ShellPort* instance_; |
239 | 239 |
240 base::ObserverList<LockStateObserver> lock_state_observers_; | 240 base::ObserverList<LockStateObserver> lock_state_observers_; |
241 | 241 |
242 bool simulate_modal_window_open_for_testing_ = false; | 242 bool simulate_modal_window_open_for_testing_ = false; |
243 }; | 243 }; |
244 | 244 |
245 } // namespace ash | 245 } // namespace ash |
246 | 246 |
247 #endif // ASH_SHELL_PORT_H_ | 247 #endif // ASH_SHELL_PORT_H_ |
OLD | NEW |