| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 Window* GetChildById(int id); | 206 Window* GetChildById(int id); |
| 207 const Window* GetChildById(int id) const; | 207 const Window* GetChildById(int id) const; |
| 208 | 208 |
| 209 // Converts |point| from |source|'s coordinates to |target|'s. If |source| is | 209 // Converts |point| from |source|'s coordinates to |target|'s. If |source| is |
| 210 // NULL, the function returns without modifying |point|. |target| cannot be | 210 // NULL, the function returns without modifying |point|. |target| cannot be |
| 211 // NULL. | 211 // NULL. |
| 212 static void ConvertPointToWindow(const Window* source, | 212 static void ConvertPointToWindow(const Window* source, |
| 213 const Window* target, | 213 const Window* target, |
| 214 gfx::Point* point); | 214 gfx::Point* point); |
| 215 | 215 |
| 216 // Moves the cursor to the specified location relative to the window. |
| 217 virtual void MoveCursorTo(const gfx::Point& point_in_window); |
| 218 |
| 216 // Returns the cursor for the specified point, in window coordinates. | 219 // Returns the cursor for the specified point, in window coordinates. |
| 217 gfx::NativeCursor GetCursor(const gfx::Point& point) const; | 220 gfx::NativeCursor GetCursor(const gfx::Point& point) const; |
| 218 | 221 |
| 219 // Window takes ownership of the EventFilter. | 222 // Window takes ownership of the EventFilter. |
| 220 void SetEventFilter(EventFilter* event_filter); | 223 void SetEventFilter(EventFilter* event_filter); |
| 221 EventFilter* event_filter() { return event_filter_.get(); } | 224 EventFilter* event_filter() { return event_filter_.get(); } |
| 222 | 225 |
| 223 // Add/remove observer. | 226 // Add/remove observer. |
| 224 void AddObserver(WindowObserver* observer); | 227 void AddObserver(WindowObserver* observer); |
| 225 void RemoveObserver(WindowObserver* observer); | 228 void RemoveObserver(WindowObserver* observer); |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 }; | 473 }; |
| 471 | 474 |
| 472 std::map<const void*, Value> prop_map_; | 475 std::map<const void*, Value> prop_map_; |
| 473 | 476 |
| 474 DISALLOW_COPY_AND_ASSIGN(Window); | 477 DISALLOW_COPY_AND_ASSIGN(Window); |
| 475 }; | 478 }; |
| 476 | 479 |
| 477 } // namespace aura | 480 } // namespace aura |
| 478 | 481 |
| 479 #endif // UI_AURA_WINDOW_H_ | 482 #endif // UI_AURA_WINDOW_H_ |
| OLD | NEW |