summaryrefslogtreecommitdiffstats
path: root/views/view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/view.cc')
-rw-r--r--views/view.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/views/view.cc b/views/view.cc
index 0280aef..820f3ec 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -264,6 +264,11 @@ void View::SetFocusable(bool focusable) {
focusable_ = focusable;
}
+FocusManager* View::GetFocusManager() {
+ Widget* widget = GetWidget();
+ return widget ? widget->GetFocusManager() : NULL;
+}
+
bool View::HasFocus() {
FocusManager* focus_manager = GetFocusManager();
if (focus_manager)