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

Unified Diff: third_party/WebKit/Source/web/WebInputEventConversion.h

Issue 2586133003: Remove PlatformWheelEvent and use WebMouseWheelEvent instead (Closed)
Patch Set: Adjust function name 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/web/WebInputEventConversion.h
diff --git a/third_party/WebKit/Source/web/WebInputEventConversion.h b/third_party/WebKit/Source/web/WebInputEventConversion.h
index 495f6edcbd306bd8d3ec109e4f8da3f8dec48058..8aeb4c859fc17613bef6f65d1167fbf9ea33c525 100644
--- a/third_party/WebKit/Source/web/WebInputEventConversion.h
+++ b/third_party/WebKit/Source/web/WebInputEventConversion.h
@@ -33,7 +33,6 @@
#include "platform/PlatformMouseEvent.h"
#include "platform/PlatformTouchEvent.h"
-#include "platform/PlatformWheelEvent.h"
#include "platform/scroll/ScrollTypes.h"
#include "public/platform/WebInputEvent.h"
#include "public/platform/WebMouseWheelEvent.h"
@@ -51,7 +50,6 @@ class WebGestureEvent;
class WebMouseEvent;
class WebKeyboardEvent;
class WebTouchEvent;
-class WheelEvent;
class Widget;
// These classes are used to convert from WebInputEvent subclasses to
@@ -63,12 +61,6 @@ class WEB_EXPORT PlatformMouseEventBuilder
PlatformMouseEventBuilder(Widget*, const WebMouseEvent&);
};
-class WEB_EXPORT PlatformWheelEventBuilder
- : NON_EXPORTED_BASE(public PlatformWheelEvent) {
- public:
- PlatformWheelEventBuilder(Widget*, const WebMouseWheelEvent&);
-};
-
// Converts a WebTouchPoint to a PlatformTouchPoint.
class WEB_EXPORT PlatformTouchPointBuilder
: NON_EXPORTED_BASE(public PlatformTouchPoint) {
@@ -94,14 +86,6 @@ class WEB_EXPORT WebMouseEventBuilder
WebMouseEventBuilder(const Widget*, const LayoutItem, const TouchEvent&);
};
-// Converts a WheelEvent to a corresponding WebMouseWheelEvent.
-// If the event mapping fails, the event type will be set to Undefined.
-class WEB_EXPORT WebMouseWheelEventBuilder
- : NON_EXPORTED_BASE(public WebMouseWheelEvent) {
- public:
- WebMouseWheelEventBuilder(const Widget*, const LayoutItem, const WheelEvent&);
-};
-
// Converts a KeyboardEvent to a corresponding WebKeyboardEvent.
// NOTE: For KeyboardEvent, this is only implemented for keydown,
// keyup, and keypress. If the event mapping fails, the event type will be set
@@ -125,6 +109,8 @@ class WEB_EXPORT WebTouchEventBuilder
// and translation.
WEB_EXPORT WebGestureEvent TransformWebGestureEvent(Widget*,
const WebGestureEvent&);
+WEB_EXPORT WebMouseWheelEvent
+TransformWebMouseWheelEvent(Widget*, const WebMouseWheelEvent&);
Vector<PlatformMouseEvent> WEB_EXPORT
createPlatformMouseEventVector(Widget*,
« no previous file with comments | « third_party/WebKit/Source/web/PageWidgetDelegate.cpp ('k') | third_party/WebKit/Source/web/WebInputEventConversion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698