| 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 SERVICES_UI_WS_WINDOW_TREE_H_ | 5 #ifndef SERVICES_UI_WS_WINDOW_TREE_H_ |
| 6 #define SERVICES_UI_WS_WINDOW_TREE_H_ | 6 #define SERVICES_UI_WS_WINDOW_TREE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 mojom::WindowTreeClientPtr window_tree_client, | 183 mojom::WindowTreeClientPtr window_tree_client, |
| 184 uint32_t flags); | 184 uint32_t flags); |
| 185 void DispatchInputEvent(ServerWindow* target, const ui::Event& event); | 185 void DispatchInputEvent(ServerWindow* target, const ui::Event& event); |
| 186 | 186 |
| 187 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id); | 187 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id); |
| 188 void OnWindowManagerCreatedTopLevelWindow(uint32_t wm_change_id, | 188 void OnWindowManagerCreatedTopLevelWindow(uint32_t wm_change_id, |
| 189 uint32_t client_change_id, | 189 uint32_t client_change_id, |
| 190 const ServerWindow* window); | 190 const ServerWindow* window); |
| 191 void AddActivationParent(const ClientWindowId& window_id); | 191 void AddActivationParent(const ClientWindowId& window_id); |
| 192 | 192 |
| 193 void OnSetWindowBoundsResponse(uint32_t change_id, |
| 194 const gfx::Rect& bounds, |
| 195 const cc::LocalSurfaceId& local_surface_id); |
| 196 |
| 193 // Calls through to the client. | 197 // Calls through to the client. |
| 194 void OnChangeCompleted(uint32_t change_id, bool success); | 198 void OnChangeCompleted(uint32_t change_id, bool success); |
| 195 // |state_to_ack| is the WindowManagerState to call through to when the ack | 199 // |state_to_ack| is the WindowManagerState to call through to when the ack |
| 196 // from the accelerator is received. If |needs_ack| is true an ack is | 200 // from the accelerator is received. If |needs_ack| is true an ack is |
| 197 // required. | 201 // required. |
| 198 void OnAccelerator(uint32_t accelerator_id, | 202 void OnAccelerator(uint32_t accelerator_id, |
| 199 const ui::Event& event, | 203 const ui::Event& event, |
| 200 bool needs_ack); | 204 bool needs_ack); |
| 201 | 205 |
| 202 // Called when a display has been removed. This is only called on the | 206 // Called when a display has been removed. This is only called on the |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 void CancelWindowMove(Id window_id) override; | 474 void CancelWindowMove(Id window_id) override; |
| 471 | 475 |
| 472 // mojom::WindowManagerClient: | 476 // mojom::WindowManagerClient: |
| 473 void AddAccelerators(std::vector<mojom::WmAcceleratorPtr> accelerators, | 477 void AddAccelerators(std::vector<mojom::WmAcceleratorPtr> accelerators, |
| 474 const AddAcceleratorsCallback& callback) override; | 478 const AddAcceleratorsCallback& callback) override; |
| 475 void RemoveAccelerator(uint32_t id) override; | 479 void RemoveAccelerator(uint32_t id) override; |
| 476 void AddActivationParent(Id transport_window_id) override; | 480 void AddActivationParent(Id transport_window_id) override; |
| 477 void RemoveActivationParent(Id transport_window_id) override; | 481 void RemoveActivationParent(Id transport_window_id) override; |
| 478 void ActivateNextWindow() override; | 482 void ActivateNextWindow() override; |
| 479 void SetExtendedHitArea(Id window_id, const gfx::Insets& hit_area) override; | 483 void SetExtendedHitArea(Id window_id, const gfx::Insets& hit_area) override; |
| 484 void WmSetBoundsResponse(uint32_t change_id, |
| 485 const gfx::Rect& bounds, |
| 486 const cc::LocalSurfaceId& local_surface_id) override; |
| 480 void WmResponse(uint32_t change_id, bool response) override; | 487 void WmResponse(uint32_t change_id, bool response) override; |
| 481 void WmRequestClose(Id transport_window_id) override; | 488 void WmRequestClose(Id transport_window_id) override; |
| 482 void WmSetFrameDecorationValues( | 489 void WmSetFrameDecorationValues( |
| 483 mojom::FrameDecorationValuesPtr values) override; | 490 mojom::FrameDecorationValuesPtr values) override; |
| 484 void WmSetNonClientCursor(uint32_t window_id, | 491 void WmSetNonClientCursor(uint32_t window_id, |
| 485 mojom::Cursor cursor_id) override; | 492 mojom::Cursor cursor_id) override; |
| 486 void OnWmCreatedTopLevelWindow(uint32_t change_id, | 493 void OnWmCreatedTopLevelWindow(uint32_t change_id, |
| 487 Id transport_window_id) override; | 494 Id transport_window_id) override; |
| 488 void OnAcceleratorAck( | 495 void OnAcceleratorAck( |
| 489 uint32_t event_id, | 496 uint32_t event_id, |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 waiting_for_top_level_window_info_; | 593 waiting_for_top_level_window_info_; |
| 587 bool embedder_intercepts_events_ = false; | 594 bool embedder_intercepts_events_ = false; |
| 588 | 595 |
| 589 DISALLOW_COPY_AND_ASSIGN(WindowTree); | 596 DISALLOW_COPY_AND_ASSIGN(WindowTree); |
| 590 }; | 597 }; |
| 591 | 598 |
| 592 } // namespace ws | 599 } // namespace ws |
| 593 } // namespace ui | 600 } // namespace ui |
| 594 | 601 |
| 595 #endif // SERVICES_UI_WS_WINDOW_TREE_H_ | 602 #endif // SERVICES_UI_WS_WINDOW_TREE_H_ |
| OLD | NEW |