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

Unified Diff: third_party/WebKit/Source/core/page/DragController.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/page/DragController.cpp
diff --git a/third_party/WebKit/Source/core/page/DragController.cpp b/third_party/WebKit/Source/core/page/DragController.cpp
index c762db63118a2e3aa779234d825e5f63202e1c73..c07fb62a8995ad3fd782b1186f2ea1c5aa6f3885 100644
--- a/third_party/WebKit/Source/core/page/DragController.cpp
+++ b/third_party/WebKit/Source/core/page/DragController.cpp
@@ -125,7 +125,7 @@ static WebMouseEvent createMouseEvent(DragData* dragData) {
WebFloatPoint(dragData->globalPosition().x(),
dragData->globalPosition().y()),
WebPointerProperties::Button::Left, 0,
- static_cast<PlatformEvent::Modifiers>(dragData->modifiers()),
+ static_cast<WebInputEvent::Modifiers>(dragData->modifiers()),
TimeTicks::Now().InSeconds());
// TODO(dtapuska): Really we should chnage DragData to store the viewport
// coordinates and scale.
@@ -1223,9 +1223,9 @@ bool DragController::isCopyKeyDown(DragData* dragData) {
int modifiers = dragData->modifiers();
#if OS(MACOSX)
- return modifiers & PlatformEvent::AltKey;
+ return modifiers & WebInputEvent::AltKey;
#else
- return modifiers & PlatformEvent::CtrlKey;
+ return modifiers & WebInputEvent::ControlKey;
#endif
}

Powered by Google App Engine
This is Rietveld 408576698