| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 service_manager::Connector* connector() { return connector_; } | 106 service_manager::Connector* connector() { return connector_; } |
| 107 ui::Gpu* gpu() { return gpu_.get(); } | 107 ui::Gpu* gpu() { return gpu_.get(); } |
| 108 | 108 |
| 109 bool connected() const { return tree_ != nullptr; } | 109 bool connected() const { return tree_ != nullptr; } |
| 110 ClientSpecificId client_id() const { return client_id_; } | 110 ClientSpecificId client_id() const { return client_id_; } |
| 111 | 111 |
| 112 client::CaptureClient* GetCaptureClient(); | 112 client::CaptureClient* GetCaptureClient(); |
| 113 | 113 |
| 114 void SetCanFocus(Window* window, bool can_focus); | 114 void SetCanFocus(Window* window, bool can_focus); |
| 115 void SetCanAcceptDrops(Id window_id, bool can_accept_drops); | 115 void SetCanAcceptDrops(Id window_id, bool can_accept_drops); |
| 116 void SetCanAcceptEvents(WindowMus* window, bool can_accept_events); | 116 void SetEventTargetingPolicy(WindowMus* window, |
| 117 ui::mojom::EventTargetingPolicy policy); |
| 117 void SetPredefinedCursor(WindowMus* window, | 118 void SetPredefinedCursor(WindowMus* window, |
| 118 ui::mojom::Cursor old_cursor, | 119 ui::mojom::Cursor old_cursor, |
| 119 ui::mojom::Cursor new_cursor); | 120 ui::mojom::Cursor new_cursor); |
| 120 void SetWindowTextInputState(WindowMus* window, | 121 void SetWindowTextInputState(WindowMus* window, |
| 121 mojo::TextInputStatePtr state); | 122 mojo::TextInputStatePtr state); |
| 122 void SetImeVisibility(WindowMus* window, | 123 void SetImeVisibility(WindowMus* window, |
| 123 bool visible, | 124 bool visible, |
| 124 mojo::TextInputStatePtr state); | 125 mojo::TextInputStatePtr state); |
| 125 | 126 |
| 126 // Embeds a new client in |window|. |flags| is a bitmask of the values defined | 127 // Embeds a new client in |window|. |flags| is a bitmask of the values defined |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 std::unique_ptr<ui::Gpu> gpu_; | 546 std::unique_ptr<ui::Gpu> gpu_; |
| 546 std::unique_ptr<MusContextFactory> compositor_context_factory_; | 547 std::unique_ptr<MusContextFactory> compositor_context_factory_; |
| 547 base::WeakPtrFactory<WindowTreeClient> weak_factory_; | 548 base::WeakPtrFactory<WindowTreeClient> weak_factory_; |
| 548 | 549 |
| 549 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); | 550 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); |
| 550 }; | 551 }; |
| 551 | 552 |
| 552 } // namespace aura | 553 } // namespace aura |
| 553 | 554 |
| 554 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ | 555 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ |
| OLD | NEW |