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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 ConnectionSpecificId* connection_id); | 120 ConnectionSpecificId* connection_id); |
121 void DispatchInputEvent(ServerWindow* target, mojom::EventPtr event); | 121 void DispatchInputEvent(ServerWindow* target, mojom::EventPtr event); |
122 | 122 |
123 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id); | 123 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id); |
124 void OnWindowManagerCreatedTopLevelWindow(uint32_t wm_change_id, | 124 void OnWindowManagerCreatedTopLevelWindow(uint32_t wm_change_id, |
125 uint32_t client_change_id, | 125 uint32_t client_change_id, |
126 const ServerWindow* window); | 126 const ServerWindow* window); |
127 | 127 |
128 // Calls through to the client. | 128 // Calls through to the client. |
129 void OnChangeCompleted(uint32_t change_id, bool success); | 129 void OnChangeCompleted(uint32_t change_id, bool success); |
| 130 void OnAccelerator(uint32_t accelerator_id, mojom::EventPtr event); |
130 | 131 |
131 // The following methods are invoked after the corresponding change has been | 132 // The following methods are invoked after the corresponding change has been |
132 // processed. They do the appropriate bookkeeping and update the client as | 133 // processed. They do the appropriate bookkeeping and update the client as |
133 // necessary. | 134 // necessary. |
134 void ProcessWindowBoundsChanged(const ServerWindow* window, | 135 void ProcessWindowBoundsChanged(const ServerWindow* window, |
135 const gfx::Rect& old_bounds, | 136 const gfx::Rect& old_bounds, |
136 const gfx::Rect& new_bounds, | 137 const gfx::Rect& new_bounds, |
137 bool originated_change); | 138 bool originated_change); |
138 void ProcessClientAreaChanged( | 139 void ProcessClientAreaChanged( |
139 const ServerWindow* window, | 140 const ServerWindow* window, |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 void OnWindowInputEventAck(uint32_t event_id) override; | 327 void OnWindowInputEventAck(uint32_t event_id) override; |
327 void SetClientArea( | 328 void SetClientArea( |
328 Id transport_window_id, | 329 Id transport_window_id, |
329 mojo::InsetsPtr insets, | 330 mojo::InsetsPtr insets, |
330 mojo::Array<mojo::RectPtr> transport_additional_client_areas) override; | 331 mojo::Array<mojo::RectPtr> transport_additional_client_areas) override; |
331 void GetWindowManagerClient( | 332 void GetWindowManagerClient( |
332 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) | 333 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) |
333 override; | 334 override; |
334 | 335 |
335 // mojom::WindowManagerClient: | 336 // mojom::WindowManagerClient: |
| 337 void AddAccelerator(uint32_t id, |
| 338 mojom::EventMatcherPtr event_matcher, |
| 339 const AddAcceleratorCallback& callback) override; |
| 340 void RemoveAccelerator(uint32_t id) override; |
336 void WmResponse(uint32_t change_id, bool response) override; | 341 void WmResponse(uint32_t change_id, bool response) override; |
337 void WmRequestClose(Id transport_window_id) override; | 342 void WmRequestClose(Id transport_window_id) override; |
338 void WmSetFrameDecorationValues( | 343 void WmSetFrameDecorationValues( |
339 mojom::FrameDecorationValuesPtr values) override; | 344 mojom::FrameDecorationValuesPtr values) override; |
340 void OnWmCreatedTopLevelWindow(uint32_t change_id, | 345 void OnWmCreatedTopLevelWindow(uint32_t change_id, |
341 Id transport_window_id) override; | 346 Id transport_window_id) override; |
342 | 347 |
343 // AccessPolicyDelegate: | 348 // AccessPolicyDelegate: |
344 bool HasRootForAccessPolicy(const ServerWindow* window) const override; | 349 bool HasRootForAccessPolicy(const ServerWindow* window) const override; |
345 bool IsWindowKnownForAccessPolicy(const ServerWindow* window) const override; | 350 bool IsWindowKnownForAccessPolicy(const ServerWindow* window) const override; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 | 391 |
387 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; | 392 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; |
388 | 393 |
389 DISALLOW_COPY_AND_ASSIGN(WindowTreeImpl); | 394 DISALLOW_COPY_AND_ASSIGN(WindowTreeImpl); |
390 }; | 395 }; |
391 | 396 |
392 } // namespace ws | 397 } // namespace ws |
393 } // namespace mus | 398 } // namespace mus |
394 | 399 |
395 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ | 400 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ |
OLD | NEW |