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

Unified Diff: ui/events/event.cc

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
Index: ui/events/event.cc
diff --git a/ui/events/event.cc b/ui/events/event.cc
index 32fb97a2594a4dcb477b0203ddb2993e1eec2e03..250def7104d51ff21ddb107cc9968a867ae0fcd9 100644
--- a/ui/events/event.cc
+++ b/ui/events/event.cc
@@ -136,6 +136,9 @@ Event::Event(EventType type, base::TimeDelta time_stamp, int flags)
target_(NULL),
phase_(EP_PREDISPATCH),
result_(ER_UNHANDLED) {
+#if defined(USE_OZONE)
+ window_ = 0;
+#endif
if (type_ < ET_LAST)
name_ = EventTypeName(type_);
}
@@ -152,6 +155,10 @@ Event::Event(const base::NativeEvent& native_event,
target_(NULL),
phase_(EP_PREDISPATCH),
result_(ER_UNHANDLED) {
+#if defined(USE_OZONE)
+ window_ = 0;
+#endif
+
base::TimeDelta delta = EventTimeForNow() - time_stamp_;
if (type_ < ET_LAST)
name_ = EventTypeName(type_);
@@ -180,6 +187,10 @@ Event::Event(const Event& copy)
target_(NULL),
phase_(EP_PREDISPATCH),
result_(ER_UNHANDLED) {
+#if defined(USE_OZONE)
+ window_ = 0;
+#endif
+
if (type_ < ET_LAST)
name_ = EventTypeName(type_);
}

Powered by Google App Engine
This is Rietveld 408576698