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

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

Issue 2655873003: Remove PlatformEvent it is no longer used. (Closed)
Patch Set: Remove PlatformEvent it is no longer used. Created 3 years, 10 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 e92bcffb1bba1b5adefa51ce29bced36e2b77783..43835e101996ef7663ebffdff93773d29e538cbd 100644
--- a/third_party/WebKit/Source/core/input/EventHandlerTest.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandlerTest.cpp
@@ -290,7 +290,7 @@ TEST_F(EventHandlerTest, sendContextMenuEventWithHover) {
WebMouseEvent mouseDownEvent(
WebMouseEvent::MouseDown, WebFloatPoint(0, 0), WebFloatPoint(100, 200),
WebPointerProperties::Button::Right, 1,
- PlatformEvent::Modifiers::RightButtonDown, TimeTicks::Now().InSeconds());
+ WebInputEvent::Modifiers::RightButtonDown, TimeTicks::Now().InSeconds());
mouseDownEvent.setFrameScale(1);
EXPECT_EQ(
WebInputEventResult::HandledApplication,
@@ -405,14 +405,14 @@ TEST_F(EventHandlerTest, dragEndInNewDrag) {
WebMouseEvent mouseDownEvent(
WebInputEvent::MouseDown, WebFloatPoint(50, 50), WebFloatPoint(50, 50),
WebPointerProperties::Button::Left, 1,
- PlatformEvent::Modifiers::LeftButtonDown, TimeTicks::Now().InSeconds());
+ WebInputEvent::Modifiers::LeftButtonDown, TimeTicks::Now().InSeconds());
mouseDownEvent.setFrameScale(1);
document().frame()->eventHandler().handleMousePressEvent(mouseDownEvent);
WebMouseEvent mouseMoveEvent(
WebInputEvent::MouseMove, WebFloatPoint(51, 50), WebFloatPoint(51, 50),
WebPointerProperties::Button::Left, 1,
- PlatformEvent::Modifiers::LeftButtonDown, TimeTicks::Now().InSeconds());
+ WebInputEvent::Modifiers::LeftButtonDown, TimeTicks::Now().InSeconds());
mouseMoveEvent.setFrameScale(1);
document().frame()->eventHandler().handleMouseMoveEvent(
mouseMoveEvent, Vector<WebMouseEvent>());
@@ -425,8 +425,8 @@ TEST_F(EventHandlerTest, dragEndInNewDrag) {
WebMouseEvent mouseUpEvent(
WebInputEvent::MouseUp, WebFloatPoint(100, 50), WebFloatPoint(200, 250),
- WebPointerProperties::Button::Left, 1,
- static_cast<PlatformEvent::Modifiers>(0), TimeTicks::Now().InSeconds());
+ WebPointerProperties::Button::Left, 1, WebInputEvent::NoModifiers,
+ TimeTicks::Now().InSeconds());
mouseUpEvent.setFrameScale(1);
document().frame()->eventHandler().dragSourceEndedAt(mouseUpEvent,
DragOperationNone);
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandler.cpp ('k') | third_party/WebKit/Source/core/input/GestureManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698