summaryrefslogtreecommitdiffstats
path: root/views/focus/focus_manager_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/focus/focus_manager_gtk.cc')
-rw-r--r--views/focus/focus_manager_gtk.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/views/focus/focus_manager_gtk.cc b/views/focus/focus_manager_gtk.cc
index 3038d93..a52a6d9 100644
--- a/views/focus/focus_manager_gtk.cc
+++ b/views/focus/focus_manager_gtk.cc
@@ -49,4 +49,10 @@ FocusManager* FocusManager::GetFocusManagerForNativeView(
return focus_manager;
}
+// static
+FocusManager* FocusManager::GetFocusManagerForNativeWindow(
+ gfx::NativeWindow native_window) {
+ return GetFocusManagerForNativeView(GTK_WIDGET(native_window));
+}
+
} // namespace views