OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WINDOW_TREE_HOST_H_ | 5 #ifndef UI_AURA_WINDOW_TREE_HOST_H_ |
6 #define UI_AURA_WINDOW_TREE_HOST_H_ | 6 #define UI_AURA_WINDOW_TREE_HOST_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 // can make sure the correct InputMethod instance processes the key event no | 150 // can make sure the correct InputMethod instance processes the key event no |
151 // matter which WindowTreeHost is the target for event. Please refer to the | 151 // matter which WindowTreeHost is the target for event. Please refer to the |
152 // test: ExtendedDesktopTest.KeyEventsOnLockScreen. | 152 // test: ExtendedDesktopTest.KeyEventsOnLockScreen. |
153 // | 153 // |
154 // TODO(shuchen): remove this method after above reasons become invalid. | 154 // TODO(shuchen): remove this method after above reasons become invalid. |
155 // A possible solution is to make sure DrmWindowHost can find the correct | 155 // A possible solution is to make sure DrmWindowHost can find the correct |
156 // WindowTreeHost to dispatch events. | 156 // WindowTreeHost to dispatch events. |
157 void SetSharedInputMethod(ui::InputMethod* input_method); | 157 void SetSharedInputMethod(ui::InputMethod* input_method); |
158 | 158 |
159 // Overridden from ui::internal::InputMethodDelegate: | 159 // Overridden from ui::internal::InputMethodDelegate: |
160 ui::EventDispatchDetails DispatchKeyEventPostIME(ui::KeyEvent* event) final; | 160 ui::EventDispatchDetails DispatchKeyEventPostIME( |
| 161 ui::KeyEvent* event) override; |
161 | 162 |
162 // Returns the EventSource responsible for dispatching events to the window | 163 // Returns the EventSource responsible for dispatching events to the window |
163 // tree. | 164 // tree. |
164 virtual ui::EventSource* GetEventSource() = 0; | 165 virtual ui::EventSource* GetEventSource() = 0; |
165 | 166 |
166 // Returns the accelerated widget. | 167 // Returns the accelerated widget. |
167 virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0; | 168 virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0; |
168 | 169 |
169 // Shows the WindowTreeHost. | 170 // Shows the WindowTreeHost. |
170 void Show(); | 171 void Show(); |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 bool owned_input_method_; | 266 bool owned_input_method_; |
266 | 267 |
267 gfx::Insets output_surface_padding_in_pixels_; | 268 gfx::Insets output_surface_padding_in_pixels_; |
268 | 269 |
269 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); | 270 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); |
270 }; | 271 }; |
271 | 272 |
272 } // namespace aura | 273 } // namespace aura |
273 | 274 |
274 #endif // UI_AURA_WINDOW_TREE_HOST_H_ | 275 #endif // UI_AURA_WINDOW_TREE_HOST_H_ |
OLD | NEW |