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

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, 11 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 07385275214487ba6a20e3a88b079696ab80abe5..3acf650277481c5d4616a9b0633c124c5facb910 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.
@@ -1224,9 +1224,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