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

Unified Diff: third_party/WebKit/Source/core/input/EventHandlerTest.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/core/input/EventHandlerTest.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandlerTest.cpp b/third_party/WebKit/Source/core/input/EventHandlerTest.cpp
index f8618151f6be13253f4f4efeefa617b8fe13d3b2..83278a043d3ef8a84b1d5602c9a78023a73c70f8 100644
--- a/third_party/WebKit/Source/core/input/EventHandlerTest.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandlerTest.cpp
@@ -65,7 +65,7 @@ class LongPressEventBuilder : public WebGestureEvent {
class MousePressEventBuilder : public WebMouseEvent {
public:
- MousePressEventBuilder(IntPoint position,
+ MousePressEventBuilder(IntPoint positionParam,
int clickCountParam,
WebMouseEvent::Button buttonParam)
: WebMouseEvent(WebInputEvent::MouseDown,
@@ -73,8 +73,8 @@ class MousePressEventBuilder : public WebMouseEvent {
TimeTicks::Now().InSeconds()) {
clickCount = clickCountParam;
button = buttonParam;
- x = globalX = position.x();
- y = globalY = position.y();
+ position.x = screenPosition.x = positionParam.x();
+ position.y = screenPosition.y = positionParam.y();
m_frameScale = 1;
}
};

Powered by Google App Engine
This is Rietveld 408576698