Index: ui/ozone/platform/wayland/wayland_window.h |
diff --git a/ui/ozone/platform/wayland/wayland_window.h b/ui/ozone/platform/wayland/wayland_window.h |
index 450df55d05a2d4f4a0a50e895c0597424d0caebe..3ddcfd9247307d418b44c2973833c54c85a07771 100644 |
--- a/ui/ozone/platform/wayland/wayland_window.h |
+++ b/ui/ozone/platform/wayland/wayland_window.h |
@@ -35,6 +35,9 @@ class WaylandWindow : public PlatformWindow, public PlatformEventDispatcher { |
// Set whether this window has pointer focus and should dispatch mouse events. |
void set_pointer_focus(bool focus) { has_pointer_focus_ = focus; } |
+ // Set whether this window has keyboard focus and should dispatch key events. |
+ void set_keyboard_focus(bool focus) { has_keyboard_focus_ = focus; } |
+ |
// PlatformWindow |
void Show() override; |
void Hide() override; |
@@ -77,6 +80,7 @@ class WaylandWindow : public PlatformWindow, public PlatformEventDispatcher { |
gfx::Rect pending_bounds_; |
uint32_t pending_configure_serial_; |
bool has_pointer_focus_ = false; |
+ bool has_keyboard_focus_ = false; |
DISALLOW_COPY_AND_ASSIGN(WaylandWindow); |
}; |