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