OLD | NEW |
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 SERVICES_UI_WS_WINDOW_SERVER_H_ | 5 #ifndef SERVICES_UI_WS_WINDOW_SERVER_H_ |
6 #define SERVICES_UI_WS_WINDOW_SERVER_H_ | 6 #define SERVICES_UI_WS_WINDOW_SERVER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 WindowManagerWindowTreeFactorySet* window_manager_window_tree_factory_set() { | 135 WindowManagerWindowTreeFactorySet* window_manager_window_tree_factory_set() { |
136 return &window_manager_window_tree_factory_set_; | 136 return &window_manager_window_tree_factory_set_; |
137 } | 137 } |
138 | 138 |
139 // Sets focus to |window|. Returns true if |window| already has focus, or | 139 // Sets focus to |window|. Returns true if |window| already has focus, or |
140 // focus was successfully changed. Returns |false| if |window| is not a valid | 140 // focus was successfully changed. Returns |false| if |window| is not a valid |
141 // window to receive focus. | 141 // window to receive focus. |
142 bool SetFocusedWindow(ServerWindow* window); | 142 bool SetFocusedWindow(ServerWindow* window); |
143 ServerWindow* GetFocusedWindow(); | 143 ServerWindow* GetFocusedWindow(); |
144 | 144 |
145 bool IsActiveUserInHighContrastMode() const; | |
146 void SetHighContrastMode(const UserId& user, bool enabled); | 145 void SetHighContrastMode(const UserId& user, bool enabled); |
147 | 146 |
148 // Returns a change id for the window manager that is associated with | 147 // Returns a change id for the window manager that is associated with |
149 // |source| and |client_change_id|. When the window manager replies | 148 // |source| and |client_change_id|. When the window manager replies |
150 // WindowManagerChangeCompleted() is called to obtain the original source | 149 // WindowManagerChangeCompleted() is called to obtain the original source |
151 // and client supplied change_id that initiated the called. | 150 // and client supplied change_id that initiated the called. |
152 uint32_t GenerateWindowManagerChangeId(WindowTree* source, | 151 uint32_t GenerateWindowManagerChangeId(WindowTree* source, |
153 uint32_t client_change_id); | 152 uint32_t client_change_id); |
154 | 153 |
155 // Called when a response from the window manager is obtained. Calls to | 154 // Called when a response from the window manager is obtained. Calls to |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 // State for rendering into a Surface. | 387 // State for rendering into a Surface. |
389 cc::mojom::DisplayCompositorPtr display_compositor_; | 388 cc::mojom::DisplayCompositorPtr display_compositor_; |
390 | 389 |
391 DISALLOW_COPY_AND_ASSIGN(WindowServer); | 390 DISALLOW_COPY_AND_ASSIGN(WindowServer); |
392 }; | 391 }; |
393 | 392 |
394 } // namespace ws | 393 } // namespace ws |
395 } // namespace ui | 394 } // namespace ui |
396 | 395 |
397 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ | 396 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ |
OLD | NEW |