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 COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_ | 5 #ifndef COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_ |
6 #define COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_ | 6 #define COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 } | 75 } |
76 | 76 |
77 // Checks if |modal_window| is a visible modal window that blocks current | 77 // Checks if |modal_window| is a visible modal window that blocks current |
78 // capture window and if that's the case, releases the capture. | 78 // capture window and if that's the case, releases the capture. |
79 void ReleaseCaptureBlockedByModalWindow(const ServerWindow* modal_window); | 79 void ReleaseCaptureBlockedByModalWindow(const ServerWindow* modal_window); |
80 | 80 |
81 // Checks if the current capture window is blocked by any visible modal window | 81 // Checks if the current capture window is blocked by any visible modal window |
82 // and if that's the case, releases the capture. | 82 // and if that's the case, releases the capture. |
83 void ReleaseCaptureBlockedByAnyModalWindow(); | 83 void ReleaseCaptureBlockedByAnyModalWindow(); |
84 | 84 |
| 85 bool SetSystemModalWindow(ServerWindow* window); |
| 86 ServerWindow* system_modal_window() { |
| 87 return event_dispatcher_.system_modal_window(); |
| 88 } |
| 89 const ServerWindow* system_modal_window() const { |
| 90 return event_dispatcher_.system_modal_window(); |
| 91 } |
| 92 |
85 // Returns true if this is the WindowManager of the active user. | 93 // Returns true if this is the WindowManager of the active user. |
86 bool IsActive() const; | 94 bool IsActive() const; |
87 | 95 |
88 // TODO(sky): EventDispatcher is really an implementation detail and should | 96 // TODO(sky): EventDispatcher is really an implementation detail and should |
89 // not be exposed. | 97 // not be exposed. |
90 EventDispatcher* event_dispatcher() { return &event_dispatcher_; } | 98 EventDispatcher* event_dispatcher() { return &event_dispatcher_; } |
91 | 99 |
92 void Activate(const gfx::Point& mouse_location_on_screen); | 100 void Activate(const gfx::Point& mouse_location_on_screen); |
93 void Deactivate(); | 101 void Deactivate(); |
94 | 102 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 196 |
189 EventDispatcher event_dispatcher_; | 197 EventDispatcher event_dispatcher_; |
190 | 198 |
191 DISALLOW_COPY_AND_ASSIGN(WindowManagerState); | 199 DISALLOW_COPY_AND_ASSIGN(WindowManagerState); |
192 }; | 200 }; |
193 | 201 |
194 } // namespace ws | 202 } // namespace ws |
195 } // namespace mus | 203 } // namespace mus |
196 | 204 |
197 #endif // COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_ | 205 #endif // COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_ |
OLD | NEW |