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

Unified Diff: third_party/WebKit/Source/core/input/EventHandlerTest.cpp

Issue 2227563003: Refactoring button field and its type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix new instances Created 4 years, 4 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 4aeb733cf6d257517374c2d4757d0dc3f30b73f9..ceef2be019e2cb1bdf7a2614319767e08b243576 100644
--- a/third_party/WebKit/Source/core/input/EventHandlerTest.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandlerTest.cpp
@@ -74,7 +74,7 @@ TEST_F(EventHandlerTest, dragSelectionAfterScroll)
PlatformMouseEvent mouseDownEvent(
IntPoint(0, 0),
IntPoint(100, 200),
- LeftButton,
+ WebPointerProperties::Button::Left,
PlatformEvent::MousePressed,
1,
PlatformEvent::Modifiers::LeftButtonDown,
@@ -84,7 +84,7 @@ TEST_F(EventHandlerTest, dragSelectionAfterScroll)
PlatformMouseEvent mouseMoveEvent(
IntPoint(100, 50),
IntPoint(200, 250),
- LeftButton,
+ WebPointerProperties::Button::Left,
PlatformEvent::MouseMoved,
1,
PlatformEvent::Modifiers::LeftButtonDown,
@@ -97,7 +97,7 @@ TEST_F(EventHandlerTest, dragSelectionAfterScroll)
PlatformMouseEvent mouseUpEvent(
IntPoint(100, 50),
IntPoint(200, 250),
- LeftButton,
+ WebPointerProperties::Button::Left,
PlatformEvent::MouseReleased,
1,
static_cast<PlatformEvent::Modifiers>(0),
@@ -184,7 +184,7 @@ TEST_F(EventHandlerTest, draggedInlinePositionTest)
PlatformMouseEvent mouseDownEvent(
IntPoint(262, 29),
IntPoint(329, 67),
- LeftButton,
+ WebPointerProperties::Button::Left,
PlatformEvent::MousePressed,
1,
PlatformEvent::Modifiers::LeftButtonDown,
@@ -194,7 +194,7 @@ TEST_F(EventHandlerTest, draggedInlinePositionTest)
PlatformMouseEvent mouseMoveEvent(
IntPoint(618, 298),
IntPoint(685, 436),
- LeftButton,
+ WebPointerProperties::Button::Left,
PlatformEvent::MouseMoved,
1,
PlatformEvent::Modifiers::LeftButtonDown,
@@ -220,7 +220,7 @@ TEST_F(EventHandlerTest, draggedSVGImagePositionTest)
PlatformMouseEvent mouseDownEvent(
IntPoint(145, 144),
IntPoint(212, 282),
- LeftButton,
+ WebPointerProperties::Button::Left,
PlatformEvent::MousePressed,
1,
PlatformEvent::Modifiers::LeftButtonDown,
@@ -230,7 +230,7 @@ TEST_F(EventHandlerTest, draggedSVGImagePositionTest)
PlatformMouseEvent mouseMoveEvent(
IntPoint(618, 298),
IntPoint(685, 436),
- LeftButton,
+ WebPointerProperties::Button::Left,
PlatformEvent::MouseMoved,
1,
PlatformEvent::Modifiers::LeftButtonDown,
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandler.cpp ('k') | third_party/WebKit/Source/core/input/GestureManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698