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

Unified Diff: ui/events/test/event_generator.cc

Issue 657603002: ash: ozone: apply transformation to events outside the root window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove DCHECKs from DriWindowManager Created 6 years, 1 month 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/test/event_generator.cc
diff --git a/ui/events/test/event_generator.cc b/ui/events/test/event_generator.cc
index 24b43876c713988a876d3c3fa04005c386a3379a..21038e2445655e8415c435fa2f8de876e1d0aca8 100644
--- a/ui/events/test/event_generator.cc
+++ b/ui/events/test/event_generator.cc
@@ -403,6 +403,7 @@ void EventGenerator::ScrollSequence(const gfx::Point& start,
base::TimeDelta timestamp = Now();
ui::ScrollEvent fling_cancel(ui::ET_SCROLL_FLING_CANCEL,
start,
+ start,
timestamp,
0,
0, 0,
@@ -416,6 +417,7 @@ void EventGenerator::ScrollSequence(const gfx::Point& start,
timestamp += step_delay;
ui::ScrollEvent move(ui::ET_SCROLL,
start,
+ start,
timestamp,
0,
dx, dy,
@@ -426,6 +428,7 @@ void EventGenerator::ScrollSequence(const gfx::Point& start,
ui::ScrollEvent fling_start(ui::ET_SCROLL_FLING_START,
start,
+ start,
timestamp,
0,
x_offset, y_offset,
@@ -442,6 +445,7 @@ void EventGenerator::ScrollSequence(const gfx::Point& start,
base::TimeDelta timestamp = Now();
ui::ScrollEvent fling_cancel(ui::ET_SCROLL_FLING_CANCEL,
start,
+ start,
timestamp,
0,
0, 0,
@@ -453,6 +457,7 @@ void EventGenerator::ScrollSequence(const gfx::Point& start,
timestamp += step_delay;
ui::ScrollEvent scroll(ui::ET_SCROLL,
start,
+ start,
timestamp,
0,
offsets[i].x(), offsets[i].y(),
@@ -463,6 +468,7 @@ void EventGenerator::ScrollSequence(const gfx::Point& start,
ui::ScrollEvent fling_start(ui::ET_SCROLL_FLING_START,
start,
+ start,
timestamp,
0,
offsets[steps - 1].x(), offsets[steps - 1].y(),

Powered by Google App Engine
This is Rietveld 408576698