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

Unified Diff: third_party/WebKit/Source/core/events/DragEvent.cpp

Issue 2650403006: Remove PlatformMouseEvent and use WebMouseEvent instead (Closed)
Patch Set: 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/events/DragEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/DragEvent.cpp b/third_party/WebKit/Source/core/events/DragEvent.cpp
index 61e44d418bf8515616acf9a33fbe608addc54700..9512e6cd8dceabeb32f05a5d9986f934fc0fdf25 100644
--- a/third_party/WebKit/Source/core/events/DragEvent.cpp
+++ b/third_party/WebKit/Source/core/events/DragEvent.cpp
@@ -10,25 +10,24 @@
namespace blink {
-DragEvent* DragEvent::create(
- const AtomicString& type,
- bool canBubble,
- bool cancelable,
- AbstractView* view,
- int detail,
- int screenX,
- int screenY,
- int windowX,
- int windowY,
- int movementX,
- int movementY,
- PlatformEvent::Modifiers modifiers,
- short button,
- unsigned short buttons,
- EventTarget* relatedTarget,
- TimeTicks platformTimeStamp,
- DataTransfer* dataTransfer,
- PlatformMouseEvent::SyntheticEventType syntheticEventType) {
+DragEvent* DragEvent::create(const AtomicString& type,
+ bool canBubble,
+ bool cancelable,
+ AbstractView* view,
+ int detail,
+ int screenX,
+ int screenY,
+ int windowX,
+ int windowY,
+ int movementX,
+ int movementY,
+ PlatformEvent::Modifiers modifiers,
+ short button,
+ unsigned short buttons,
+ EventTarget* relatedTarget,
+ TimeTicks platformTimeStamp,
+ DataTransfer* dataTransfer,
+ SyntheticEventType syntheticEventType) {
return new DragEvent(type, canBubble, cancelable, view, detail, screenX,
screenY, windowX, windowY, movementX, movementY,
modifiers, button, buttons, relatedTarget,
@@ -57,7 +56,7 @@ DragEvent::DragEvent(const AtomicString& eventType,
EventTarget* relatedTarget,
TimeTicks platformTimeStamp,
DataTransfer* dataTransfer,
- PlatformMouseEvent::SyntheticEventType syntheticEventType)
+ SyntheticEventType syntheticEventType)
: MouseEvent(
eventType,
canBubble,
@@ -78,8 +77,7 @@ DragEvent::DragEvent(const AtomicString& eventType,
syntheticEventType,
// TODO(zino): Should support canvas hit region because the drag event
// is a kind of mouse event. Please see http://crbug.com/594073
- String(),
- nullptr),
+ String()),
m_dataTransfer(dataTransfer)
{}

Powered by Google App Engine
This is Rietveld 408576698