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

Unified Diff: third_party/WebKit/Source/core/events/WheelEvent.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/WheelEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/WheelEvent.cpp b/third_party/WebKit/Source/core/events/WheelEvent.cpp
index 5f39f8bfb960bda18dac5f9524af0b953c5fcc15..3597836380a3f2bdc40dc050ad6562400254ad34 100644
--- a/third_party/WebKit/Source/core/events/WheelEvent.cpp
+++ b/third_party/WebKit/Source/core/events/WheelEvent.cpp
@@ -24,7 +24,6 @@
#include "core/events/WheelEvent.h"
#include "core/clipboard/DataTransfer.h"
-#include "platform/PlatformMouseEvent.h"
namespace blink {
@@ -73,12 +72,13 @@ WheelEvent::WheelEvent(const WebMouseWheelEvent& event, AbstractView* view)
true,
event.isCancelable(),
view,
- PlatformMouseEvent::RealOrIndistinguishable,
+ event,
+ event.clickCount,
// TODO(zino): Should support canvas hit region because the
// wheel event is a kind of mouse event. Please see
// http://crbug.com/594075
String(),
- event),
+ nullptr),
m_wheelDelta(event.wheelTicksX * TickMultiplier,
event.wheelTicksY * TickMultiplier),
m_deltaX(-event.deltaXInRootFrame()),

Powered by Google App Engine
This is Rietveld 408576698