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

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

Issue 2782893002: WebMouseEvent coordinates are now fractional & private (Closed)
Patch Set: Fixed compile failures. Created 3 years, 9 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/WebViewTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebViewTest.cpp b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
index 7a229f3c9a29299a7b7e9ae5f6b2f48c1776aa80..4c6428f1d60420c3a747fa2a3b0d5273f0773ede 100644
--- a/third_party/WebKit/Source/web/tests/WebViewTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
@@ -2526,8 +2526,8 @@ TEST_P(WebViewTest, BlinkCaretOnClosingContextMenu) {
WebInputEvent::TimeStampForTesting);
mouseEvent.button = WebMouseEvent::Button::Right;
- mouseEvent.x = 1;
- mouseEvent.y = 1;
+ mouseEvent.position.x = 1;
+ mouseEvent.position.y = 1;
mouseEvent.clickCount = 1;
webView->handleInputEvent(WebCoalescedInputEvent(mouseEvent));
runPendingTasks();
@@ -3573,8 +3573,8 @@ TEST_P(WebViewTest, FirstUserGestureObservedMouseEvent) {
WebMouseEvent mouseEvent(WebInputEvent::MouseDown, WebInputEvent::NoModifiers,
WebInputEvent::TimeStampForTesting);
mouseEvent.button = WebMouseEvent::Button::Left;
- mouseEvent.x = 1;
- mouseEvent.y = 1;
+ mouseEvent.position.x = 1;
+ mouseEvent.position.y = 1;
mouseEvent.clickCount = 1;
webView->handleInputEvent(WebCoalescedInputEvent(mouseEvent));
mouseEvent.setType(WebInputEvent::MouseUp);

Powered by Google App Engine
This is Rietveld 408576698