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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 static void ConvertPointToTarget(const Window* source, | 210 static void ConvertPointToTarget(const Window* source, |
211 const Window* target, | 211 const Window* target, |
212 gfx::Point* point); | 212 gfx::Point* point); |
213 static void ConvertRectToTarget(const Window* source, | 213 static void ConvertRectToTarget(const Window* source, |
214 const Window* target, | 214 const Window* target, |
215 gfx::Rect* rect); | 215 gfx::Rect* rect); |
216 | 216 |
217 // Moves the cursor to the specified location relative to the window. | 217 // Moves the cursor to the specified location relative to the window. |
218 virtual void MoveCursorTo(const gfx::Point& point_in_window); | 218 virtual void MoveCursorTo(const gfx::Point& point_in_window); |
219 | 219 |
220 // Returns the cursor for the specified point, in window coordinates. | |
221 gfx::NativeCursor GetCursor(const gfx::Point& point) const; | |
222 | |
223 // Sets an 'event filter' for the window. An 'event filter' for a Window is | 220 // Sets an 'event filter' for the window. An 'event filter' for a Window is |
224 // a pre-target event handler, where the window owns the handler. A window | 221 // a pre-target event handler, where the window owns the handler. A window |
225 // can have only one such event filter. Setting a new filter removes and | 222 // can have only one such event filter. Setting a new filter removes and |
226 // destroys any previously installed filter. | 223 // destroys any previously installed filter. |
227 void SetEventFilter(ui::EventHandler* event_filter); | 224 void SetEventFilter(ui::EventHandler* event_filter); |
228 | 225 |
229 // Add/remove observer. | 226 // Add/remove observer. |
230 void AddObserver(WindowObserver* observer); | 227 void AddObserver(WindowObserver* observer); |
231 void RemoveObserver(WindowObserver* observer); | 228 void RemoveObserver(WindowObserver* observer); |
232 bool HasObserver(WindowObserver* observer); | 229 bool HasObserver(WindowObserver* observer); |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 }; | 539 }; |
543 | 540 |
544 std::map<const void*, Value> prop_map_; | 541 std::map<const void*, Value> prop_map_; |
545 | 542 |
546 DISALLOW_COPY_AND_ASSIGN(Window); | 543 DISALLOW_COPY_AND_ASSIGN(Window); |
547 }; | 544 }; |
548 | 545 |
549 } // namespace aura | 546 } // namespace aura |
550 | 547 |
551 #endif // UI_AURA_WINDOW_H_ | 548 #endif // UI_AURA_WINDOW_H_ |
OLD | NEW |