Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Unified Diff: ui/ozone/platform/wayland/wayland_window.h

Issue 2639053002: [ozone/wayland] Implement basic keyboard handling support (Closed)
Patch Set: addressed kpschoedel's review Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/platform/wayland/wayland_object.cc ('k') | ui/ozone/platform/wayland/wayland_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 23e01ec7dd673838e46168d697763b0fb643a682..fa004a0d3744517dff7e877d77497653c266cb27 100644
--- a/ui/ozone/platform/wayland/wayland_window.h
+++ b/ui/ozone/platform/wayland/wayland_window.h
@@ -36,6 +36,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;
@@ -78,6 +81,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);
};
« no previous file with comments | « ui/ozone/platform/wayland/wayland_object.cc ('k') | ui/ozone/platform/wayland/wayland_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698