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

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

Issue 1712103002: ozone/platform/wayland: Implement pointer handling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 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.gypi ('k') | ui/ozone/platform/wayland/wayland_display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/wayland/wayland_display.h
diff --git a/ui/ozone/platform/wayland/wayland_display.h b/ui/ozone/platform/wayland/wayland_display.h
index bfdf5d12e3484b2f16676d9b7eda7c3bbbdac5d7..eb72c9ccf075e2be2452da465fd775317b32030f 100644
--- a/ui/ozone/platform/wayland/wayland_display.h
+++ b/ui/ozone/platform/wayland/wayland_display.h
@@ -11,6 +11,7 @@
#include "ui/events/platform/platform_event_source.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/ozone/platform/wayland/wayland_object.h"
+#include "ui/ozone/platform/wayland/wayland_pointer.h"
namespace ui {
@@ -39,6 +40,7 @@ class WaylandDisplay : public PlatformEventSource,
private:
void Flush();
+ void DispatchUiEvent(Event* event);
// PlatformEventSource
void OnDispatcherListChanged() override;
@@ -55,6 +57,10 @@ class WaylandDisplay : public PlatformEventSource,
uint32_t version);
static void GlobalRemove(void* data, wl_registry* registry, uint32_t name);
+ // wl_seat_listener
+ static void Capabilities(void* data, wl_seat* seat, uint32_t capabilities);
+ static void Name(void* data, wl_seat* seat, const char* name);
+
// xdg_shell_listener
static void Ping(void* data, xdg_shell* shell, uint32_t serial);
@@ -63,9 +69,12 @@ class WaylandDisplay : public PlatformEventSource,
wl::Object<wl_display> display_;
wl::Object<wl_registry> registry_;
wl::Object<wl_compositor> compositor_;
+ wl::Object<wl_seat> seat_;
wl::Object<wl_shm> shm_;
wl::Object<xdg_shell> shell_;
+ scoped_ptr<WaylandPointer> pointer_;
+
bool scheduled_flush_ = false;
bool watching_ = false;
base::MessagePumpLibevent::FileDescriptorWatcher controller_;
« no previous file with comments | « ui/ozone/platform/wayland/wayland.gypi ('k') | ui/ozone/platform/wayland/wayland_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698