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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 void UpdateTextInputState(ServerWindow* window, | 131 void UpdateTextInputState(ServerWindow* window, |
132 const ui::TextInputState& state); | 132 const ui::TextInputState& state); |
133 void SetImeVisibility(ServerWindow* window, bool visible); | 133 void SetImeVisibility(ServerWindow* window, bool visible); |
134 | 134 |
135 // Called just before |tree| is destroyed. | 135 // Called just before |tree| is destroyed. |
136 void OnWillDestroyTree(WindowTree* tree); | 136 void OnWillDestroyTree(WindowTree* tree); |
137 | 137 |
138 void UpdateNativeCursor(int32_t cursor_id); | 138 void UpdateNativeCursor(int32_t cursor_id); |
139 | 139 |
140 // mojom::WindowTreeHost: | 140 // mojom::WindowTreeHost: |
141 void SetSize(mojo::SizePtr size) override; | 141 void SetSize(const gfx::Size& size) override; |
142 void SetTitle(const mojo::String& title) override; | 142 void SetTitle(const mojo::String& title) override; |
143 | 143 |
144 private: | 144 private: |
145 friend class test::DisplayTestApi; | 145 friend class test::DisplayTestApi; |
146 | 146 |
147 using WindowManagerStateMap = | 147 using WindowManagerStateMap = |
148 std::map<UserId, std::unique_ptr<WindowManagerState>>; | 148 std::map<UserId, std::unique_ptr<WindowManagerState>>; |
149 | 149 |
150 // Inits the necessary state once the display is ready. | 150 // Inits the necessary state once the display is ready. |
151 void InitWindowManagersIfNecessary(); | 151 void InitWindowManagersIfNecessary(); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 | 209 |
210 WindowManagerStateMap window_manager_state_map_; | 210 WindowManagerStateMap window_manager_state_map_; |
211 | 211 |
212 DISALLOW_COPY_AND_ASSIGN(Display); | 212 DISALLOW_COPY_AND_ASSIGN(Display); |
213 }; | 213 }; |
214 | 214 |
215 } // namespace ws | 215 } // namespace ws |
216 } // namespace mus | 216 } // namespace mus |
217 | 217 |
218 #endif // COMPONENTS_MUS_WS_DISPLAY_H_ | 218 #endif // COMPONENTS_MUS_WS_DISPLAY_H_ |
OLD | NEW |