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

Unified Diff: third_party/WebKit/Source/web/tests/BrowserControlsTest.cpp

Issue 2621303004: Keep track of coalesced events in main thread event queue (Closed)
Patch Set: Rebase Created 3 years, 11 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: third_party/WebKit/Source/web/tests/BrowserControlsTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/BrowserControlsTest.cpp b/third_party/WebKit/Source/web/tests/BrowserControlsTest.cpp
index 1e81b49e7ade90b031c3d7dfb5d81b8481c8bbfd..e0e5ba0376c079e7b8203c4bc00524151f832203 100644
--- a/third_party/WebKit/Source/web/tests/BrowserControlsTest.cpp
+++ b/third_party/WebKit/Source/web/tests/BrowserControlsTest.cpp
@@ -98,9 +98,9 @@ class BrowserControlsTest : public testing::Test {
WebString::fromUTF8(fileName.c_str()));
}
- WebGestureEvent generateEvent(WebInputEvent::Type type,
- int deltaX = 0,
- int deltaY = 0) {
+ WebCoalescedInputEvent generateEvent(WebInputEvent::Type type,
+ int deltaX = 0,
+ int deltaY = 0) {
WebGestureEvent event(type, WebInputEvent::NoModifiers,
WebInputEvent::TimeStampForTesting);
event.sourceDevice = WebGestureDeviceTouchscreen;
@@ -110,7 +110,7 @@ class BrowserControlsTest : public testing::Test {
event.data.scrollUpdate.deltaX = deltaX;
event.data.scrollUpdate.deltaY = deltaY;
}
- return event;
+ return WebCoalescedInputEvent(event);
}
void verticalScroll(float deltaY) {
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | third_party/WebKit/Source/web/tests/ImeOnFocusTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698