| 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 UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ | 5 #ifndef UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ |
| 6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ | 6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 } | 35 } |
| 36 | 36 |
| 37 namespace gfx { | 37 namespace gfx { |
| 38 class Insets; | 38 class Insets; |
| 39 } | 39 } |
| 40 | 40 |
| 41 namespace service_manager { | 41 namespace service_manager { |
| 42 class Connector; | 42 class Connector; |
| 43 } | 43 } |
| 44 | 44 |
| 45 namespace ui { |
| 46 class Gpu; |
| 47 } |
| 48 |
| 45 namespace aura { | 49 namespace aura { |
| 46 class CaptureSynchronizer; | 50 class CaptureSynchronizer; |
| 47 class DragDropControllerMus; | 51 class DragDropControllerMus; |
| 48 class FocusSynchronizer; | 52 class FocusSynchronizer; |
| 49 class InFlightBoundsChange; | 53 class InFlightBoundsChange; |
| 50 class InFlightChange; | 54 class InFlightChange; |
| 51 class InFlightFocusChange; | 55 class InFlightFocusChange; |
| 52 class InFlightPropertyChange; | 56 class InFlightPropertyChange; |
| 53 class InFlightVisibleChange; | 57 class InFlightVisibleChange; |
| 58 class MusContextFactory; |
| 54 class WindowMus; | 59 class WindowMus; |
| 55 class WindowPortMus; | 60 class WindowPortMus; |
| 56 struct WindowPortPropertyData; | 61 struct WindowPortPropertyData; |
| 57 class WindowTreeClientDelegate; | 62 class WindowTreeClientDelegate; |
| 58 class WindowTreeClientPrivate; | 63 class WindowTreeClientPrivate; |
| 59 class WindowTreeClientObserver; | 64 class WindowTreeClientObserver; |
| 60 class WindowTreeHostMus; | 65 class WindowTreeHostMus; |
| 61 | 66 |
| 62 namespace client { | 67 namespace client { |
| 63 class CaptureClient; | 68 class CaptureClient; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 80 public FocusSynchronizerDelegate, | 85 public FocusSynchronizerDelegate, |
| 81 public DragDropControllerHost, | 86 public DragDropControllerHost, |
| 82 public WindowManagerClient, | 87 public WindowManagerClient, |
| 83 public WindowTreeHostMusDelegate, | 88 public WindowTreeHostMusDelegate, |
| 84 public client::TransientWindowClientObserver { | 89 public client::TransientWindowClientObserver { |
| 85 public: | 90 public: |
| 86 explicit WindowTreeClient( | 91 explicit WindowTreeClient( |
| 87 service_manager::Connector* connector, | 92 service_manager::Connector* connector, |
| 88 WindowTreeClientDelegate* delegate, | 93 WindowTreeClientDelegate* delegate, |
| 89 WindowManagerDelegate* window_manager_delegate = nullptr, | 94 WindowManagerDelegate* window_manager_delegate = nullptr, |
| 90 ui::mojom::WindowTreeClientRequest request = nullptr); | 95 ui::mojom::WindowTreeClientRequest request = nullptr, |
| 96 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner = nullptr); |
| 91 ~WindowTreeClient() override; | 97 ~WindowTreeClient() override; |
| 92 | 98 |
| 93 // Establishes the connection by way of the WindowTreeFactory. | 99 // Establishes the connection by way of the WindowTreeFactory. |
| 94 void ConnectViaWindowTreeFactory(); | 100 void ConnectViaWindowTreeFactory(); |
| 95 | 101 |
| 96 // Establishes the connection by way of WindowManagerWindowTreeFactory. | 102 // Establishes the connection by way of WindowManagerWindowTreeFactory. |
| 97 void ConnectAsWindowManager(); | 103 void ConnectAsWindowManager(); |
| 98 | 104 |
| 99 service_manager::Connector* connector() { return connector_; } | 105 service_manager::Connector* connector() { return connector_; } |
| 106 ui::Gpu* gpu() { return gpu_.get(); } |
| 100 | 107 |
| 101 bool connected() const { return tree_ != nullptr; } | 108 bool connected() const { return tree_ != nullptr; } |
| 102 ClientSpecificId client_id() const { return client_id_; } | 109 ClientSpecificId client_id() const { return client_id_; } |
| 103 | 110 |
| 104 client::CaptureClient* GetCaptureClient(); | 111 client::CaptureClient* GetCaptureClient(); |
| 105 | 112 |
| 106 void SetCanFocus(Window* window, bool can_focus); | 113 void SetCanFocus(Window* window, bool can_focus); |
| 107 void SetCanAcceptDrops(Id window_id, bool can_accept_drops); | 114 void SetCanAcceptDrops(Id window_id, bool can_accept_drops); |
| 108 void SetCanAcceptEvents(Id window_id, bool can_accept_events); | 115 void SetCanAcceptEvents(Id window_id, bool can_accept_events); |
| 109 void SetPredefinedCursor(WindowMus* window, | 116 void SetPredefinedCursor(WindowMus* window, |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 // Callback executed when a move loop initiated by PerformWindowMove() is | 523 // Callback executed when a move loop initiated by PerformWindowMove() is |
| 517 // completed. | 524 // completed. |
| 518 base::Callback<void(bool)> on_current_move_finished_; | 525 base::Callback<void(bool)> on_current_move_finished_; |
| 519 | 526 |
| 520 // The current change id for the window manager. | 527 // The current change id for the window manager. |
| 521 uint32_t current_wm_move_loop_change_ = 0u; | 528 uint32_t current_wm_move_loop_change_ = 0u; |
| 522 Id current_wm_move_loop_window_id_ = 0u; | 529 Id current_wm_move_loop_window_id_ = 0u; |
| 523 | 530 |
| 524 std::unique_ptr<DragDropControllerMus> drag_drop_controller_; | 531 std::unique_ptr<DragDropControllerMus> drag_drop_controller_; |
| 525 | 532 |
| 533 std::unique_ptr<ui::Gpu> gpu_; |
| 534 std::unique_ptr<MusContextFactory> compositor_context_factory_; |
| 526 base::WeakPtrFactory<WindowTreeClient> weak_factory_; | 535 base::WeakPtrFactory<WindowTreeClient> weak_factory_; |
| 527 | 536 |
| 528 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); | 537 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); |
| 529 }; | 538 }; |
| 530 | 539 |
| 531 } // namespace aura | 540 } // namespace aura |
| 532 | 541 |
| 533 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ | 542 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ |
| OLD | NEW |