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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 // purposes of event targeting. | 259 // purposes of event targeting. |
260 Window* GetEventHandlerForPoint(const gfx::Point& local_point); | 260 Window* GetEventHandlerForPoint(const gfx::Point& local_point); |
261 | 261 |
262 // Returns the topmost Window with a delegate containing |local_point|. | 262 // Returns the topmost Window with a delegate containing |local_point|. |
263 Window* GetTopWindowContainingPoint(const gfx::Point& local_point); | 263 Window* GetTopWindowContainingPoint(const gfx::Point& local_point); |
264 | 264 |
265 // Returns this window's toplevel window (the highest-up-the-tree anscestor | 265 // Returns this window's toplevel window (the highest-up-the-tree anscestor |
266 // that has a delegate set). The toplevel window may be |this|. | 266 // that has a delegate set). The toplevel window may be |this|. |
267 Window* GetToplevelWindow(); | 267 Window* GetToplevelWindow(); |
268 | 268 |
269 // Claims or relinquishes the claim to focus. | 269 // Claims focus. |
270 void Focus(); | 270 void Focus(); |
271 void Blur(); | |
272 | 271 |
273 // Returns true if the Window is currently the focused window. | 272 // Returns true if the Window is currently the focused window. |
274 bool HasFocus() const; | 273 bool HasFocus() const; |
275 | 274 |
276 // Returns true if the Window can be focused. | 275 // Returns true if the Window can be focused. |
277 bool CanFocus() const; | 276 bool CanFocus() const; |
278 | 277 |
279 // Returns true if the Window can receive events. | 278 // Returns true if the Window can receive events. |
280 bool CanReceiveEvents() const; | 279 bool CanReceiveEvents() const; |
281 | 280 |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 }; | 544 }; |
546 | 545 |
547 std::map<const void*, Value> prop_map_; | 546 std::map<const void*, Value> prop_map_; |
548 | 547 |
549 DISALLOW_COPY_AND_ASSIGN(Window); | 548 DISALLOW_COPY_AND_ASSIGN(Window); |
550 }; | 549 }; |
551 | 550 |
552 } // namespace aura | 551 } // namespace aura |
553 | 552 |
554 #endif // UI_AURA_WINDOW_H_ | 553 #endif // UI_AURA_WINDOW_H_ |
OLD | NEW |