| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 void ConnectViaWindowTreeFactory(); | 113 void ConnectViaWindowTreeFactory(); |
| 114 | 114 |
| 115 // Establishes the connection by way of WindowManagerWindowTreeFactory. | 115 // Establishes the connection by way of WindowManagerWindowTreeFactory. |
| 116 void ConnectAsWindowManager(); | 116 void ConnectAsWindowManager(); |
| 117 | 117 |
| 118 service_manager::Connector* connector() { return connector_; } | 118 service_manager::Connector* connector() { return connector_; } |
| 119 ui::Gpu* gpu() { return gpu_.get(); } | 119 ui::Gpu* gpu() { return gpu_.get(); } |
| 120 CaptureSynchronizer* capture_synchronizer() { | 120 CaptureSynchronizer* capture_synchronizer() { |
| 121 return capture_synchronizer_.get(); | 121 return capture_synchronizer_.get(); |
| 122 } | 122 } |
| 123 FocusSynchronizer* focus_synchronizer() { return focus_synchronizer_.get(); } |
| 123 | 124 |
| 124 bool connected() const { return tree_ != nullptr; } | 125 bool connected() const { return tree_ != nullptr; } |
| 125 ClientSpecificId client_id() const { return client_id_; } | 126 ClientSpecificId client_id() const { return client_id_; } |
| 126 | 127 |
| 127 void SetCanFocus(Window* window, bool can_focus); | 128 void SetCanFocus(Window* window, bool can_focus); |
| 128 void SetCanAcceptDrops(WindowMus* window, bool can_accept_drops); | 129 void SetCanAcceptDrops(WindowMus* window, bool can_accept_drops); |
| 129 void SetEventTargetingPolicy(WindowMus* window, | 130 void SetEventTargetingPolicy(WindowMus* window, |
| 130 ui::mojom::EventTargetingPolicy policy); | 131 ui::mojom::EventTargetingPolicy policy); |
| 131 void SetPredefinedCursor(WindowMus* window, | 132 void SetPredefinedCursor(WindowMus* window, |
| 132 ui::mojom::CursorType old_cursor, | 133 ui::mojom::CursorType old_cursor, |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 bool got_initial_displays_ = false; | 609 bool got_initial_displays_ = false; |
| 609 | 610 |
| 610 base::WeakPtrFactory<WindowTreeClient> weak_factory_; | 611 base::WeakPtrFactory<WindowTreeClient> weak_factory_; |
| 611 | 612 |
| 612 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); | 613 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); |
| 613 }; | 614 }; |
| 614 | 615 |
| 615 } // namespace aura | 616 } // namespace aura |
| 616 | 617 |
| 617 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ | 618 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ |
| OLD | NEW |