| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 // level child is found matching |id|. | 210 // level child is found matching |id|. |
| 211 Window* GetChildById(int id); | 211 Window* GetChildById(int id); |
| 212 const Window* GetChildById(int id) const; | 212 const Window* GetChildById(int id) const; |
| 213 | 213 |
| 214 // Converts |point| from |source|'s coordinates to |target|'s. If |source| is | 214 // Converts |point| from |source|'s coordinates to |target|'s. If |source| is |
| 215 // NULL, the function returns without modifying |point|. |target| cannot be | 215 // NULL, the function returns without modifying |point|. |target| cannot be |
| 216 // NULL. | 216 // NULL. |
| 217 static void ConvertPointToTarget(const Window* source, | 217 static void ConvertPointToTarget(const Window* source, |
| 218 const Window* target, | 218 const Window* target, |
| 219 gfx::Point* point); | 219 gfx::Point* point); |
| 220 static void ConvertPointToTargetF(const Window* source, |
| 221 const Window* target, |
| 222 gfx::PointF* point); |
| 220 static void ConvertRectToTarget(const Window* source, | 223 static void ConvertRectToTarget(const Window* source, |
| 221 const Window* target, | 224 const Window* target, |
| 222 gfx::Rect* rect); | 225 gfx::Rect* rect); |
| 223 | 226 |
| 224 // Moves the cursor to the specified location relative to the window. | 227 // Moves the cursor to the specified location relative to the window. |
| 225 void MoveCursorTo(const gfx::Point& point_in_window); | 228 void MoveCursorTo(const gfx::Point& point_in_window); |
| 226 | 229 |
| 227 // Returns the cursor for the specified point, in window coordinates. | 230 // Returns the cursor for the specified point, in window coordinates. |
| 228 gfx::NativeCursor GetCursor(const gfx::Point& point) const; | 231 gfx::NativeCursor GetCursor(const gfx::Point& point) const; |
| 229 | 232 |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 }; | 524 }; |
| 522 | 525 |
| 523 std::map<const void*, Value> prop_map_; | 526 std::map<const void*, Value> prop_map_; |
| 524 | 527 |
| 525 DISALLOW_COPY_AND_ASSIGN(Window); | 528 DISALLOW_COPY_AND_ASSIGN(Window); |
| 526 }; | 529 }; |
| 527 | 530 |
| 528 } // namespace aura | 531 } // namespace aura |
| 529 | 532 |
| 530 #endif // UI_AURA_WINDOW_H_ | 533 #endif // UI_AURA_WINDOW_H_ |
| OLD | NEW |