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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 const Window* transient_parent() const { return transient_parent_; } | 208 const Window* transient_parent() const { return transient_parent_; } |
209 | 209 |
210 // Retrieves the first-level child with the specified id, or NULL if no first- | 210 // Retrieves the first-level child with the specified id, or NULL if no first- |
211 // level child is found matching |id|. | 211 // level child is found matching |id|. |
212 Window* GetChildById(int id); | 212 Window* GetChildById(int id); |
213 const Window* GetChildById(int id) const; | 213 const Window* GetChildById(int id) const; |
214 | 214 |
215 // Converts |point| from |source|'s coordinates to |target|'s. If |source| is | 215 // Converts |point| from |source|'s coordinates to |target|'s. If |source| is |
216 // NULL, the function returns without modifying |point|. |target| cannot be | 216 // NULL, the function returns without modifying |point|. |target| cannot be |
217 // NULL. | 217 // NULL. |
218 static void ConvertPointToWindow(const Window* source, | 218 static void ConvertPointToTarget(const Window* source, |
219 const Window* target, | 219 const Window* target, |
220 gfx::Point* point); | 220 gfx::Point* point); |
221 | 221 |
222 // Moves the cursor to the specified location relative to the window. | 222 // Moves the cursor to the specified location relative to the window. |
223 virtual void MoveCursorTo(const gfx::Point& point_in_window); | 223 virtual void MoveCursorTo(const gfx::Point& point_in_window); |
224 | 224 |
225 // Returns the cursor for the specified point, in window coordinates. | 225 // Returns the cursor for the specified point, in window coordinates. |
226 gfx::NativeCursor GetCursor(const gfx::Point& point) const; | 226 gfx::NativeCursor GetCursor(const gfx::Point& point) const; |
227 | 227 |
228 // Window takes ownership of the EventFilter. | 228 // Window takes ownership of the EventFilter. |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 }; | 479 }; |
480 | 480 |
481 std::map<const void*, Value> prop_map_; | 481 std::map<const void*, Value> prop_map_; |
482 | 482 |
483 DISALLOW_COPY_AND_ASSIGN(Window); | 483 DISALLOW_COPY_AND_ASSIGN(Window); |
484 }; | 484 }; |
485 | 485 |
486 } // namespace aura | 486 } // namespace aura |
487 | 487 |
488 #endif // UI_AURA_WINDOW_H_ | 488 #endif // UI_AURA_WINDOW_H_ |
OLD | NEW |