summaryrefslogtreecommitdiffstats
path: root/ui/aura/window.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/aura/window.h')
-rw-r--r--ui/aura/window.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/aura/window.h b/ui/aura/window.h
index 9820b29..2e13521 100644
--- a/ui/aura/window.h
+++ b/ui/aura/window.h
@@ -182,12 +182,16 @@ class AURA_EXPORT Window : public ui::LayerDelegate {
void Focus();
void Blur();
+ // Returns true if the Window is currently the focused window.
+ bool HasFocus() const;
+
// Returns true if the Window can be focused.
virtual bool CanFocus() const;
// Returns the FocusManager for the Window, which may be attached to a parent
// Window. Can return NULL if the Window has no FocusManager.
virtual internal::FocusManager* GetFocusManager();
+ virtual const internal::FocusManager* GetFocusManager() const;
// The Window does not own this object.
void set_user_data(void* user_data) { user_data_ = user_data; }