OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_ | 5 #ifndef COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_ |
6 #define COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_ | 6 #define COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 void DestroyFocusController(); | 90 void DestroyFocusController(); |
91 | 91 |
92 void UpdateTextInputState(ServerWindow* window, | 92 void UpdateTextInputState(ServerWindow* window, |
93 const ui::TextInputState& state); | 93 const ui::TextInputState& state); |
94 void SetImeVisibility(ServerWindow* window, bool visible); | 94 void SetImeVisibility(ServerWindow* window, bool visible); |
95 | 95 |
96 // WindowTreeHost: | 96 // WindowTreeHost: |
97 void SetSize(mojo::SizePtr size) override; | 97 void SetSize(mojo::SizePtr size) override; |
98 void SetTitle(const mojo::String& title) override; | 98 void SetTitle(const mojo::String& title) override; |
99 void AddAccelerator(uint32_t id, | 99 void AddAccelerator(uint32_t id, |
100 mojom::EventMatcherPtr event_matcher) override; | 100 mojom::EventMatcherPtr event_matcher, |
| 101 const AddAcceleratorCallback& callback) override; |
101 void RemoveAccelerator(uint32_t id) override; | 102 void RemoveAccelerator(uint32_t id) override; |
102 void AddActivationParent(uint32_t window_id) override; | 103 void AddActivationParent(uint32_t window_id) override; |
103 void RemoveActivationParent(uint32_t window_id) override; | 104 void RemoveActivationParent(uint32_t window_id) override; |
104 void ActivateNextWindow() override; | 105 void ActivateNextWindow() override; |
105 void SetUnderlaySurfaceOffsetAndExtendedHitArea( | 106 void SetUnderlaySurfaceOffsetAndExtendedHitArea( |
106 Id window_id, | 107 Id window_id, |
107 int32_t x_offset, | 108 int32_t x_offset, |
108 int32_t y_offset, | 109 int32_t y_offset, |
109 mojo::InsetsPtr hit_area) override; | 110 mojo::InsetsPtr hit_area) override; |
110 | 111 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 std::queue<mojom::EventPtr> event_queue_; | 168 std::queue<mojom::EventPtr> event_queue_; |
168 base::OneShotTimer event_ack_timer_; | 169 base::OneShotTimer event_ack_timer_; |
169 | 170 |
170 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostImpl); | 171 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostImpl); |
171 }; | 172 }; |
172 | 173 |
173 } // namespace ws | 174 } // namespace ws |
174 } // namespace mus | 175 } // namespace mus |
175 | 176 |
176 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_ | 177 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_ |
OLD | NEW |