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_H_ | 5 #ifndef UI_AURA_WINDOW_H_ |
6 #define UI_AURA_WINDOW_H_ | 6 #define UI_AURA_WINDOW_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 namespace gfx { | 32 namespace gfx { |
33 class Display; | 33 class Display; |
34 class Transform; | 34 class Transform; |
35 class Vector2d; | 35 class Vector2d; |
36 } | 36 } |
37 | 37 |
38 namespace ui { | 38 namespace ui { |
39 class EventHandler; | 39 class EventHandler; |
40 class Layer; | 40 class Layer; |
| 41 class TextInputClient; |
41 class Texture; | 42 class Texture; |
42 } | 43 } |
43 | 44 |
44 namespace aura { | 45 namespace aura { |
45 | 46 |
46 class LayoutManager; | 47 class LayoutManager; |
47 class WindowDelegate; | 48 class WindowDelegate; |
48 class WindowObserver; | 49 class WindowObserver; |
49 class WindowTreeHost; | 50 class WindowTreeHost; |
50 | 51 |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 // Converts |point| from |source|'s coordinates to |target|'s. If |source| is | 212 // Converts |point| from |source|'s coordinates to |target|'s. If |source| is |
212 // NULL, the function returns without modifying |point|. |target| cannot be | 213 // NULL, the function returns without modifying |point|. |target| cannot be |
213 // NULL. | 214 // NULL. |
214 static void ConvertPointToTarget(const Window* source, | 215 static void ConvertPointToTarget(const Window* source, |
215 const Window* target, | 216 const Window* target, |
216 gfx::Point* point); | 217 gfx::Point* point); |
217 static void ConvertRectToTarget(const Window* source, | 218 static void ConvertRectToTarget(const Window* source, |
218 const Window* target, | 219 const Window* target, |
219 gfx::Rect* rect); | 220 gfx::Rect* rect); |
220 | 221 |
| 222 // Returns the focused text input client within this window. |
| 223 // This function does not look at child windows. |
| 224 ui::TextInputClient* GetFocusedTextInputClient(); |
| 225 |
221 // Moves the cursor to the specified location relative to the window. | 226 // Moves the cursor to the specified location relative to the window. |
222 void MoveCursorTo(const gfx::Point& point_in_window); | 227 void MoveCursorTo(const gfx::Point& point_in_window); |
223 | 228 |
224 // Returns the cursor for the specified point, in window coordinates. | 229 // Returns the cursor for the specified point, in window coordinates. |
225 gfx::NativeCursor GetCursor(const gfx::Point& point) const; | 230 gfx::NativeCursor GetCursor(const gfx::Point& point) const; |
226 | 231 |
227 // Add/remove observer. | 232 // Add/remove observer. |
228 void AddObserver(WindowObserver* observer); | 233 void AddObserver(WindowObserver* observer); |
229 void RemoveObserver(WindowObserver* observer); | 234 void RemoveObserver(WindowObserver* observer); |
230 bool HasObserver(const WindowObserver* observer) const; | 235 bool HasObserver(const WindowObserver* observer) const; |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 }; | 546 }; |
542 | 547 |
543 std::map<const void*, Value> prop_map_; | 548 std::map<const void*, Value> prop_map_; |
544 | 549 |
545 DISALLOW_COPY_AND_ASSIGN(Window); | 550 DISALLOW_COPY_AND_ASSIGN(Window); |
546 }; | 551 }; |
547 | 552 |
548 } // namespace aura | 553 } // namespace aura |
549 | 554 |
550 #endif // UI_AURA_WINDOW_H_ | 555 #endif // UI_AURA_WINDOW_H_ |
OLD | NEW |