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

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

Issue 2539283002: Remove PlatformGestureEvent in favour of using WebGestureEvent (Closed)
Patch Set: Add missing copyright on new file Created 4 years 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 cadbb14bd76c3c4cd8264c927dc5816022da3837..6286f645e2298d635095aaaef3d49ec5218a657b 100644
--- a/third_party/WebKit/Source/web/WebInputEventConversion.h
+++ b/third_party/WebKit/Source/web/WebInputEventConversion.h
@@ -31,11 +31,10 @@
#ifndef WebInputEventConversion_h
#define WebInputEventConversion_h
-#include "platform/PlatformGestureEvent.h"
#include "platform/PlatformMouseEvent.h"
#include "platform/PlatformTouchEvent.h"
#include "platform/PlatformWheelEvent.h"
-#include "public/platform/WebGestureEvent.h"
+#include "platform/scroll/ScrollTypes.h"
#include "public/platform/WebInputEvent.h"
#include "web/WebExport.h"
#include "wtf/Compiler.h"
@@ -43,16 +42,15 @@
namespace blink {
-class GestureEvent;
class KeyboardEvent;
class MouseEvent;
class LayoutItem;
class TouchEvent;
+class WebGestureEvent;
class WebMouseEvent;
class WebMouseWheelEvent;
class WebKeyboardEvent;
class WebTouchEvent;
-class WebGestureEvent;
class WheelEvent;
class Widget;
@@ -71,12 +69,6 @@ class WEB_EXPORT PlatformWheelEventBuilder
PlatformWheelEventBuilder(Widget*, const WebMouseWheelEvent&);
};
-class WEB_EXPORT PlatformGestureEventBuilder
- : NON_EXPORTED_BASE(public PlatformGestureEvent) {
- public:
- PlatformGestureEventBuilder(Widget*, const WebGestureEvent&);
-};
-
// Converts a WebTouchPoint to a PlatformTouchPoint.
class WEB_EXPORT PlatformTouchPointBuilder
: NON_EXPORTED_BASE(public PlatformTouchPoint) {
@@ -129,13 +121,10 @@ class WEB_EXPORT WebTouchEventBuilder
WebTouchEventBuilder(const LayoutItem, const TouchEvent&);
};
-// Converts GestureEvent to a corresponding WebGestureEvent.
-// NOTE: If event mapping fails, the type will be set to Undefined.
-class WEB_EXPORT WebGestureEventBuilder
- : NON_EXPORTED_BASE(public WebGestureEvent) {
- public:
- WebGestureEventBuilder(const LayoutItem, const GestureEvent&);
-};
+// Return a new transformed WebGestureEvent by applying the Widget's scale
+// and translation.
+WEB_EXPORT WebGestureEvent TransformWebGestureEvent(Widget*,
+ const WebGestureEvent&);
Vector<PlatformMouseEvent> WEB_EXPORT
createPlatformMouseEventVector(Widget*,
« no previous file with comments | « third_party/WebKit/Source/web/WebInputEvent.cpp ('k') | third_party/WebKit/Source/web/WebInputEventConversion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698