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

Unified Diff: content/shell/renderer/test_runner/EventSender.cpp

Issue 148453012: Chrome requires WebTouchPoint to store WebFloatPoint, instead of WebPoint. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address jdduke's comments. Created 6 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
« no previous file with comments | « content/renderer/render_widget.cc ('k') | content/shell/renderer/test_runner/TestPlugin.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/EventSender.cpp
diff --git a/content/shell/renderer/test_runner/EventSender.cpp b/content/shell/renderer/test_runner/EventSender.cpp
index a81b9edff552a887b05f4d648f907eb687f917e6..3106396a06ded8b290b93545650ab09e2c75cacb 100644
--- a/content/shell/renderer/test_runner/EventSender.cpp
+++ b/content/shell/renderer/test_runner/EventSender.cpp
@@ -990,8 +990,7 @@ void EventSender::addTouchPoint(const CppArgumentList& arguments, CppVariant* re
WebTouchPoint touchPoint;
touchPoint.state = WebTouchPoint::StatePressed;
- touchPoint.position.x = arguments[0].toInt32();
- touchPoint.position.y = arguments[1].toInt32();
+ touchPoint.position = WebFloatPoint(arguments[0].toInt32(), arguments[1].toInt32());
touchPoint.screenPosition = touchPoint.position;
if (arguments.size() > 2) {
@@ -1060,8 +1059,7 @@ void EventSender::updateTouchPoint(const CppArgumentList& arguments, CppVariant*
WebTouchPoint* touchPoint = &touchPoints[index];
touchPoint->state = WebTouchPoint::StateMoved;
- touchPoint->position.x = arguments[1].toInt32();
- touchPoint->position.y = arguments[2].toInt32();
+ touchPoint->position = WebFloatPoint(arguments[1].toInt32(), arguments[2].toInt32());
touchPoint->screenPosition = touchPoint->position;
}
« no previous file with comments | « content/renderer/render_widget.cc ('k') | content/shell/renderer/test_runner/TestPlugin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698