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