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( | 160 ui::EventDispatchDetails DispatchKeyEventPostIME(ui::KeyEvent* event) final; |
161 ui::KeyEvent* event) override; | |
162 | 161 |
163 // Returns the EventSource responsible for dispatching events to the window | 162 // Returns the EventSource responsible for dispatching events to the window |
164 // tree. | 163 // tree. |
165 virtual ui::EventSource* GetEventSource() = 0; | 164 virtual ui::EventSource* GetEventSource() = 0; |
166 | 165 |
167 // Returns the accelerated widget. | 166 // Returns the accelerated widget. |
168 virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0; | 167 virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0; |
169 | 168 |
170 // Shows the WindowTreeHost. | 169 // Shows the WindowTreeHost. |
171 void Show(); | 170 void Show(); |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 bool owned_input_method_; | 265 bool owned_input_method_; |
267 | 266 |
268 gfx::Insets output_surface_padding_in_pixels_; | 267 gfx::Insets output_surface_padding_in_pixels_; |
269 | 268 |
270 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); | 269 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); |
271 }; | 270 }; |
272 | 271 |
273 } // namespace aura | 272 } // namespace aura |
274 | 273 |
275 #endif // UI_AURA_WINDOW_TREE_HOST_H_ | 274 #endif // UI_AURA_WINDOW_TREE_HOST_H_ |
OLD | NEW |