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 { |