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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/event_types.h" | 10 #include "base/event_types.h" |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 virtual void OnCursorVisibilityChangedNative(bool show) = 0; | 197 virtual void OnCursorVisibilityChangedNative(bool show) = 0; |
198 | 198 |
199 // Shows the WindowTreeHost. | 199 // Shows the WindowTreeHost. |
200 virtual void ShowImpl() = 0; | 200 virtual void ShowImpl() = 0; |
201 | 201 |
202 // Hides the WindowTreeHost. | 202 // Hides the WindowTreeHost. |
203 virtual void HideImpl() = 0; | 203 virtual void HideImpl() = 0; |
204 | 204 |
205 // Overridden from ui::EventSource: | 205 // Overridden from ui::EventSource: |
206 ui::EventProcessor* GetEventProcessor() override; | 206 ui::EventProcessor* GetEventProcessor() override; |
207 ui::EventDispatchDetails DeliverEventToProcessor(ui::Event* event) override; | |
208 | 207 |
209 private: | 208 private: |
210 friend class test::WindowTreeHostTestApi; | 209 friend class test::WindowTreeHostTestApi; |
211 | 210 |
212 // Moves the cursor to the specified location. This method is internally used | 211 // Moves the cursor to the specified location. This method is internally used |
213 // by MoveCursorTo() and MoveCursorToHostLocation(). | 212 // by MoveCursorTo() and MoveCursorToHostLocation(). |
214 void MoveCursorToInternal(const gfx::Point& root_location, | 213 void MoveCursorToInternal(const gfx::Point& root_location, |
215 const gfx::Point& host_location); | 214 const gfx::Point& host_location); |
216 | 215 |
217 // We don't use a scoped_ptr for |window_| since we need this ptr to be valid | 216 // We don't use a scoped_ptr for |window_| since we need this ptr to be valid |
(...skipping 21 matching lines...) Expand all Loading... |
239 | 238 |
240 // Whether the InputMethod instance is owned by this WindowTreeHost. | 239 // Whether the InputMethod instance is owned by this WindowTreeHost. |
241 bool owned_input_method_; | 240 bool owned_input_method_; |
242 | 241 |
243 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); | 242 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); |
244 }; | 243 }; |
245 | 244 |
246 } // namespace aura | 245 } // namespace aura |
247 | 246 |
248 #endif // UI_AURA_WINDOW_TREE_HOST_H_ | 247 #endif // UI_AURA_WINDOW_TREE_HOST_H_ |
OLD | NEW |