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 COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ | 5 #ifndef COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ |
6 #define COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ | 6 #define COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 const ServerWindow* new_parent, | 114 const ServerWindow* new_parent, |
115 const ServerWindow* old_parent, | 115 const ServerWindow* old_parent, |
116 bool originated_change); | 116 bool originated_change); |
117 void ProcessWindowReorder(const ServerWindow* window, | 117 void ProcessWindowReorder(const ServerWindow* window, |
118 const ServerWindow* relative_window, | 118 const ServerWindow* relative_window, |
119 mojom::OrderDirection direction, | 119 mojom::OrderDirection direction, |
120 bool originated_change); | 120 bool originated_change); |
121 void ProcessWindowDeleted(const WindowId& window, bool originated_change); | 121 void ProcessWindowDeleted(const WindowId& window, bool originated_change); |
122 void ProcessWillChangeWindowVisibility(const ServerWindow* window, | 122 void ProcessWillChangeWindowVisibility(const ServerWindow* window, |
123 bool originated_change); | 123 bool originated_change); |
| 124 void ProcessCursorChanged(const ServerWindow* window, |
| 125 int32_t cursor_id, |
| 126 bool originated_change); |
124 void ProcessFocusChanged(const ServerWindow* old_focused_window, | 127 void ProcessFocusChanged(const ServerWindow* old_focused_window, |
125 const ServerWindow* new_focused_window); | 128 const ServerWindow* new_focused_window); |
126 void ProcessTransientWindowAdded(const ServerWindow* window, | 129 void ProcessTransientWindowAdded(const ServerWindow* window, |
127 const ServerWindow* transient_window, | 130 const ServerWindow* transient_window, |
128 bool originated_change); | 131 bool originated_change); |
129 void ProcessTransientWindowRemoved(const ServerWindow* window, | 132 void ProcessTransientWindowRemoved(const ServerWindow* window, |
130 const ServerWindow* transient_window, | 133 const ServerWindow* transient_window, |
131 bool originated_change); | 134 bool originated_change); |
132 | 135 |
133 private: | 136 private: |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 void AttachSurface(Id window_id, | 232 void AttachSurface(Id window_id, |
230 mojom::SurfaceType type, | 233 mojom::SurfaceType type, |
231 mojo::InterfaceRequest<mojom::Surface> surface, | 234 mojo::InterfaceRequest<mojom::Surface> surface, |
232 mojom::SurfaceClientPtr client) override; | 235 mojom::SurfaceClientPtr client) override; |
233 void Embed(Id transport_window_id, | 236 void Embed(Id transport_window_id, |
234 mojom::WindowTreeClientPtr client, | 237 mojom::WindowTreeClientPtr client, |
235 uint32_t policy_bitmask, | 238 uint32_t policy_bitmask, |
236 const EmbedCallback& callback) override; | 239 const EmbedCallback& callback) override; |
237 void SetFocus(uint32_t window_id) override; | 240 void SetFocus(uint32_t window_id) override; |
238 void SetCanFocus(uint32_t window_id, bool can_focus) override; | 241 void SetCanFocus(uint32_t window_id, bool can_focus) override; |
| 242 void SetPredefinedCursor(uint32_t change_id, |
| 243 uint32_t window_id, |
| 244 mus::mojom::Cursor cursor_id) override; |
239 void SetWindowTextInputState(uint32_t window_id, | 245 void SetWindowTextInputState(uint32_t window_id, |
240 mojo::TextInputStatePtr state) override; | 246 mojo::TextInputStatePtr state) override; |
241 void SetImeVisibility(Id transport_window_id, | 247 void SetImeVisibility(Id transport_window_id, |
242 bool visible, | 248 bool visible, |
243 mojo::TextInputStatePtr state) override; | 249 mojo::TextInputStatePtr state) override; |
244 void OnWindowInputEventAck(uint32_t event_id) override; | 250 void OnWindowInputEventAck(uint32_t event_id) override; |
245 void SetClientArea(Id transport_window_id, mojo::InsetsPtr insets) override; | 251 void SetClientArea(Id transport_window_id, mojo::InsetsPtr insets) override; |
246 void WmResponse(uint32 change_id, bool response) override; | 252 void WmResponse(uint32 change_id, bool response) override; |
247 | 253 |
248 // AccessPolicyDelegate: | 254 // AccessPolicyDelegate: |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 bool is_embed_root_; | 286 bool is_embed_root_; |
281 | 287 |
282 DISALLOW_COPY_AND_ASSIGN(WindowTreeImpl); | 288 DISALLOW_COPY_AND_ASSIGN(WindowTreeImpl); |
283 }; | 289 }; |
284 | 290 |
285 } // namespace ws | 291 } // namespace ws |
286 | 292 |
287 } // namespace mus | 293 } // namespace mus |
288 | 294 |
289 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ | 295 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ |
OLD | NEW |