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

Unified Diff: ui/events/event.h

Issue 262163003: [Ozone] Proper cursor support for multi-monitor configurations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 7 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/aura/window_tree_host_ozone.cc ('k') | ui/events/event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event.h
diff --git a/ui/events/event.h b/ui/events/event.h
index ebcdd50aeeec0fe47a52de7e53db39331d9f2009..8d1537756ee36155cd1dbd882dbf49ec18f97b0d 100644
--- a/ui/events/event.h
+++ b/ui/events/event.h
@@ -15,6 +15,7 @@
#include "ui/events/gestures/gesture_types.h"
#include "ui/events/keycodes/keyboard_codes.h"
#include "ui/events/latency_info.h"
+#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/point.h"
#include "ui/gfx/point_conversions.h"
@@ -74,6 +75,11 @@ class EVENTS_EXPORT Event {
// events that are not cancelable.
bool cancelable() const { return cancelable_; }
+#if defined(USE_OZONE)
+ gfx::AcceleratedWidget window() const { return window_; }
dnicoara 2014/05/05 17:37:19 I'm also wondering if this could be moved into one
+ void set_window(gfx::AcceleratedWidget w) { window_ = w; }
+#endif
+
// The following methods return true if the respective keys were pressed at
// the time the event was created.
bool IsShiftDown() const { return (flags_ & EF_SHIFT_DOWN) != 0; }
@@ -229,6 +235,9 @@ class EVENTS_EXPORT Event {
EventTarget* target_;
EventPhase phase_;
EventResult result_;
+#if defined(USE_OZONE)
+ gfx::AcceleratedWidget window_;
+#endif
};
class EVENTS_EXPORT CancelModeEvent : public Event {
« no previous file with comments | « ui/aura/window_tree_host_ozone.cc ('k') | ui/events/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698