| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 void ConnectViaWindowTreeFactory(); | 112 void ConnectViaWindowTreeFactory(); |
| 113 | 113 |
| 114 // Establishes the connection by way of WindowManagerWindowTreeFactory. | 114 // Establishes the connection by way of WindowManagerWindowTreeFactory. |
| 115 void ConnectAsWindowManager(); | 115 void ConnectAsWindowManager(); |
| 116 | 116 |
| 117 service_manager::Connector* connector() { return connector_; } | 117 service_manager::Connector* connector() { return connector_; } |
| 118 ui::Gpu* gpu() { return gpu_.get(); } | 118 ui::Gpu* gpu() { return gpu_.get(); } |
| 119 CaptureSynchronizer* capture_synchronizer() { | 119 CaptureSynchronizer* capture_synchronizer() { |
| 120 return capture_synchronizer_.get(); | 120 return capture_synchronizer_.get(); |
| 121 } | 121 } |
| 122 FocusSynchronizer* focus_synchronizer() { return focus_synchronizer_.get(); } |
| 122 | 123 |
| 123 bool connected() const { return tree_ != nullptr; } | 124 bool connected() const { return tree_ != nullptr; } |
| 124 ClientSpecificId client_id() const { return client_id_; } | 125 ClientSpecificId client_id() const { return client_id_; } |
| 125 | 126 |
| 126 void SetCanFocus(Window* window, bool can_focus); | 127 void SetCanFocus(Window* window, bool can_focus); |
| 127 void SetCanAcceptDrops(WindowMus* window, bool can_accept_drops); | 128 void SetCanAcceptDrops(WindowMus* window, bool can_accept_drops); |
| 128 void SetEventTargetingPolicy(WindowMus* window, | 129 void SetEventTargetingPolicy(WindowMus* window, |
| 129 ui::mojom::EventTargetingPolicy policy); | 130 ui::mojom::EventTargetingPolicy policy); |
| 130 void SetPredefinedCursor(WindowMus* window, | 131 void SetPredefinedCursor(WindowMus* window, |
| 131 ui::mojom::Cursor old_cursor, | 132 ui::mojom::Cursor old_cursor, |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 // ContextFactory that was set on Env originally. | 581 // ContextFactory that was set on Env originally. |
| 581 ui::ContextFactory* initial_context_factory_ = nullptr; | 582 ui::ContextFactory* initial_context_factory_ = nullptr; |
| 582 base::WeakPtrFactory<WindowTreeClient> weak_factory_; | 583 base::WeakPtrFactory<WindowTreeClient> weak_factory_; |
| 583 | 584 |
| 584 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); | 585 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); |
| 585 }; | 586 }; |
| 586 | 587 |
| 587 } // namespace aura | 588 } // namespace aura |
| 588 | 589 |
| 589 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ | 590 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ |
| OLD | NEW |