Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_DISPLAY_H_ | 5 #ifndef COMPONENTS_MUS_WS_DISPLAY_H_ |
| 6 #define COMPONENTS_MUS_WS_DISPLAY_H_ | 6 #define COMPONENTS_MUS_WS_DISPLAY_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 113 return const_cast<WindowManagerState*>( | 113 return const_cast<WindowManagerState*>( |
| 114 const_cast<const Display*>(this)->GetWindowManagerStateForUser( | 114 const_cast<const Display*>(this)->GetWindowManagerStateForUser( |
| 115 user_id)); | 115 user_id)); |
| 116 } | 116 } |
| 117 const WindowManagerState* GetWindowManagerStateForUser( | 117 const WindowManagerState* GetWindowManagerStateForUser( |
| 118 const UserId& user_id) const; | 118 const UserId& user_id) const; |
| 119 size_t num_window_manger_states() const { | 119 size_t num_window_manger_states() const { |
| 120 return window_manager_state_map_.size(); | 120 return window_manager_state_map_.size(); |
| 121 } | 121 } |
| 122 | 122 |
| 123 void SetCapture(ServerWindow* window, bool in_nonclient_area); | 123 bool SetCapture(ServerWindow* window, bool in_nonclient_area); |
| 124 void ReleaseCaptureForModalWindow(ServerWindow* window); | |
|
sky
2016/03/08 17:07:53
It isn't particularly clear what this does from th
mohsen
2016/03/09 08:26:48
Done. Also, renamed the function as I needed to ad
| |
| 124 | 125 |
| 125 void SetFocusedWindow(ServerWindow* window); | 126 void SetFocusedWindow(ServerWindow* window); |
| 126 ServerWindow* GetFocusedWindow(); | 127 ServerWindow* GetFocusedWindow(); |
| 127 void DestroyFocusController(); | 128 void DestroyFocusController(); |
| 128 FocusController* focus_controller() { return focus_controller_.get(); } | 129 FocusController* focus_controller() { return focus_controller_.get(); } |
| 129 | 130 |
| 130 void AddActivationParent(ServerWindow* window); | 131 void AddActivationParent(ServerWindow* window); |
| 131 void RemoveActivationParent(ServerWindow* window); | 132 void RemoveActivationParent(ServerWindow* window); |
| 132 | 133 |
| 133 void UpdateTextInputState(ServerWindow* window, | 134 void UpdateTextInputState(ServerWindow* window, |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 279 | 280 |
| 280 WindowManagerStateMap window_manager_state_map_; | 281 WindowManagerStateMap window_manager_state_map_; |
| 281 | 282 |
| 282 DISALLOW_COPY_AND_ASSIGN(Display); | 283 DISALLOW_COPY_AND_ASSIGN(Display); |
| 283 }; | 284 }; |
| 284 | 285 |
| 285 } // namespace ws | 286 } // namespace ws |
| 286 } // namespace mus | 287 } // namespace mus |
| 287 | 288 |
| 288 #endif // COMPONENTS_MUS_WS_DISPLAY_H_ | 289 #endif // COMPONENTS_MUS_WS_DISPLAY_H_ |
| OLD | NEW |