| 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 22 matching lines...) Expand all Loading... |
| 33 } | 33 } |
| 34 | 34 |
| 35 namespace ui { | 35 namespace ui { |
| 36 class EventHandler; | 36 class EventHandler; |
| 37 class Layer; | 37 class Layer; |
| 38 class Texture; | 38 class Texture; |
| 39 } | 39 } |
| 40 | 40 |
| 41 namespace aura { | 41 namespace aura { |
| 42 | 42 |
| 43 class FocusManager; | |
| 44 class LayoutManager; | 43 class LayoutManager; |
| 45 class RootWindow; | 44 class RootWindow; |
| 46 class WindowDelegate; | 45 class WindowDelegate; |
| 47 class WindowObserver; | 46 class WindowObserver; |
| 48 | 47 |
| 49 // Defined in window_property.h (which we do not include) | 48 // Defined in window_property.h (which we do not include) |
| 50 template<typename T> | 49 template<typename T> |
| 51 struct WindowProperty; | 50 struct WindowProperty; |
| 52 | 51 |
| 53 // Aura window implementation. Interesting events are sent to the | 52 // Aura window implementation. Interesting events are sent to the |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 | 299 |
| 301 // Returns true if the Window is currently the focused window. | 300 // Returns true if the Window is currently the focused window. |
| 302 bool HasFocus() const; | 301 bool HasFocus() const; |
| 303 | 302 |
| 304 // Returns true if the Window can be focused. | 303 // Returns true if the Window can be focused. |
| 305 virtual bool CanFocus() const; | 304 virtual bool CanFocus() const; |
| 306 | 305 |
| 307 // Returns true if the Window can receive events. | 306 // Returns true if the Window can receive events. |
| 308 virtual bool CanReceiveEvents() const; | 307 virtual bool CanReceiveEvents() const; |
| 309 | 308 |
| 310 // Returns the FocusManager for the Window, which may be attached to a parent | |
| 311 // Window. Can return NULL if the Window has no FocusManager. | |
| 312 virtual FocusManager* GetFocusManager(); | |
| 313 virtual const FocusManager* GetFocusManager() const; | |
| 314 | |
| 315 // Does a capture on the window. This does nothing if the window isn't showing | 309 // Does a capture on the window. This does nothing if the window isn't showing |
| 316 // (VISIBILITY_SHOWN) or isn't contained in a valid window hierarchy. | 310 // (VISIBILITY_SHOWN) or isn't contained in a valid window hierarchy. |
| 317 void SetCapture(); | 311 void SetCapture(); |
| 318 | 312 |
| 319 // Releases a capture. | 313 // Releases a capture. |
| 320 void ReleaseCapture(); | 314 void ReleaseCapture(); |
| 321 | 315 |
| 322 // Returns true if this window has capture. | 316 // Returns true if this window has capture. |
| 323 bool HasCapture(); | 317 bool HasCapture(); |
| 324 | 318 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 }; | 494 }; |
| 501 | 495 |
| 502 std::map<const void*, Value> prop_map_; | 496 std::map<const void*, Value> prop_map_; |
| 503 | 497 |
| 504 DISALLOW_COPY_AND_ASSIGN(Window); | 498 DISALLOW_COPY_AND_ASSIGN(Window); |
| 505 }; | 499 }; |
| 506 | 500 |
| 507 } // namespace aura | 501 } // namespace aura |
| 508 | 502 |
| 509 #endif // UI_AURA_WINDOW_H_ | 503 #endif // UI_AURA_WINDOW_H_ |
| OLD | NEW |