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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 bool ContainsPointInRoot(const gfx::Point& point_in_root) const; | 256 bool ContainsPointInRoot(const gfx::Point& point_in_root) const; |
257 | 257 |
258 // Returns true if relative-to-this-Window's-origin |local_point| falls | 258 // Returns true if relative-to-this-Window's-origin |local_point| falls |
259 // within this Window's bounds. | 259 // within this Window's bounds. |
260 bool ContainsPoint(const gfx::Point& local_point) const; | 260 bool ContainsPoint(const gfx::Point& local_point) const; |
261 | 261 |
262 // Returns the Window that most closely encloses |local_point| for the | 262 // Returns the Window that most closely encloses |local_point| for the |
263 // purposes of event targeting. | 263 // purposes of event targeting. |
264 Window* GetEventHandlerForPoint(const gfx::Point& local_point); | 264 Window* GetEventHandlerForPoint(const gfx::Point& local_point); |
265 | 265 |
266 // Returns the topmost Window with a delegate containing |local_point|. | |
267 Window* GetTopWindowContainingPoint(const gfx::Point& local_point); | |
268 | |
269 // Returns this window's toplevel window (the highest-up-the-tree ancestor | 266 // Returns this window's toplevel window (the highest-up-the-tree ancestor |
270 // that has a delegate set). The toplevel window may be |this|. | 267 // that has a delegate set). The toplevel window may be |this|. |
271 Window* GetToplevelWindow(); | 268 Window* GetToplevelWindow(); |
272 | 269 |
273 // Claims focus. | 270 // Claims focus. |
274 void Focus(); | 271 void Focus(); |
275 | 272 |
276 // Returns true if the Window is currently the focused window. | 273 // Returns true if the Window is currently the focused window. |
277 bool HasFocus() const; | 274 bool HasFocus() const; |
278 | 275 |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 gfx::Insets hit_test_bounds_override_inner_; | 486 gfx::Insets hit_test_bounds_override_inner_; |
490 | 487 |
491 base::ObserverList<WindowObserver, true> observers_; | 488 base::ObserverList<WindowObserver, true> observers_; |
492 | 489 |
493 DISALLOW_COPY_AND_ASSIGN(Window); | 490 DISALLOW_COPY_AND_ASSIGN(Window); |
494 }; | 491 }; |
495 | 492 |
496 } // namespace aura | 493 } // namespace aura |
497 | 494 |
498 #endif // UI_AURA_WINDOW_H_ | 495 #endif // UI_AURA_WINDOW_H_ |
OLD | NEW |