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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 // Converts |point| from |source|'s coordinates to |target|'s. If |source| is | 211 // Converts |point| from |source|'s coordinates to |target|'s. If |source| is |
212 // NULL, the function returns without modifying |point|. |target| cannot be | 212 // NULL, the function returns without modifying |point|. |target| cannot be |
213 // NULL. | 213 // NULL. |
214 static void ConvertPointToTarget(const Window* source, | 214 static void ConvertPointToTarget(const Window* source, |
215 const Window* target, | 215 const Window* target, |
216 gfx::Point* point); | 216 gfx::Point* point); |
217 static void ConvertRectToTarget(const Window* source, | 217 static void ConvertRectToTarget(const Window* source, |
218 const Window* target, | 218 const Window* target, |
219 gfx::Rect* rect); | 219 gfx::Rect* rect); |
220 | 220 |
221 // Returns the focused text input client within this window. | |
222 // This function does not look at child windows. | |
223 ui::TextInputClient* GetFocusedTextInputClient(); | |
224 | |
225 // Moves the cursor to the specified location relative to the window. | 221 // Moves the cursor to the specified location relative to the window. |
226 void MoveCursorTo(const gfx::Point& point_in_window); | 222 void MoveCursorTo(const gfx::Point& point_in_window); |
227 | 223 |
228 // Returns the cursor for the specified point, in window coordinates. | 224 // Returns the cursor for the specified point, in window coordinates. |
229 gfx::NativeCursor GetCursor(const gfx::Point& point) const; | 225 gfx::NativeCursor GetCursor(const gfx::Point& point) const; |
230 | 226 |
231 // Add/remove observer. | 227 // Add/remove observer. |
232 void AddObserver(WindowObserver* observer); | 228 void AddObserver(WindowObserver* observer); |
233 void RemoveObserver(WindowObserver* observer); | 229 void RemoveObserver(WindowObserver* observer); |
234 bool HasObserver(const WindowObserver* observer) const; | 230 bool HasObserver(const WindowObserver* observer) const; |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 }; | 540 }; |
545 | 541 |
546 std::map<const void*, Value> prop_map_; | 542 std::map<const void*, Value> prop_map_; |
547 | 543 |
548 DISALLOW_COPY_AND_ASSIGN(Window); | 544 DISALLOW_COPY_AND_ASSIGN(Window); |
549 }; | 545 }; |
550 | 546 |
551 } // namespace aura | 547 } // namespace aura |
552 | 548 |
553 #endif // UI_AURA_WINDOW_H_ | 549 #endif // UI_AURA_WINDOW_H_ |
OLD | NEW |