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

Unified Diff: sky/engine/web/WebInputEventConversion.h

Issue 870073003: Remove mouse events from Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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: sky/engine/web/WebInputEventConversion.h
diff --git a/sky/engine/web/WebInputEventConversion.h b/sky/engine/web/WebInputEventConversion.h
index 22d29a368f2bed1897d84bde7554eee609e2a07e..4fb1a2076adf0703e7edb6c533d22f519da4992a 100644
--- a/sky/engine/web/WebInputEventConversion.h
+++ b/sky/engine/web/WebInputEventConversion.h
@@ -33,39 +33,23 @@
#include "sky/engine/platform/PlatformGestureEvent.h"
#include "sky/engine/platform/PlatformKeyboardEvent.h"
-#include "sky/engine/platform/PlatformMouseEvent.h"
#include "sky/engine/platform/PlatformTouchEvent.h"
-#include "sky/engine/platform/PlatformWheelEvent.h"
#include "sky/engine/public/platform/WebInputEvent.h"
namespace blink {
class GestureEvent;
class KeyboardEvent;
-class MouseEvent;
class RenderObject;
class TouchEvent;
-class WebMouseEvent;
-class WebMouseWheelEvent;
class WebKeyboardEvent;
class WebTouchEvent;
class WebGestureEvent;
-class WheelEvent;
class Widget;
// These classes are used to convert from WebInputEvent subclasses to
// corresponding WebCore events.
-class PlatformMouseEventBuilder : public PlatformMouseEvent {
-public:
- PlatformMouseEventBuilder(Widget*, const WebMouseEvent&);
-};
-
-class PlatformWheelEventBuilder : public PlatformWheelEvent {
-public:
- PlatformWheelEventBuilder(Widget*, const WebMouseWheelEvent&);
-};
-
class PlatformGestureEventBuilder : public PlatformGestureEvent {
public:
PlatformGestureEventBuilder(Widget*, const WebGestureEvent&);
@@ -90,29 +74,6 @@ public:
PlatformTouchEventBuilder(Widget*, const WebTouchEvent&);
};
-class WebMouseEventBuilder : public WebMouseEvent {
-public:
- // Converts a MouseEvent to a corresponding WebMouseEvent.
- // NOTE: This is only implemented for mousemove, mouseover, mouseout,
- // mousedown and mouseup. If the event mapping fails, the event type will
- // be set to Undefined.
- WebMouseEventBuilder(const Widget*, const RenderObject*, const MouseEvent&);
- WebMouseEventBuilder(const Widget*, const RenderObject*, const TouchEvent&);
-
- // Converts a PlatformMouseEvent to a corresponding WebMouseEvent.
- // NOTE: This is only implemented for mousepressed, mousereleased, and
- // mousemoved. If the event mapping fails, the event type will be set to
- // Undefined.
- WebMouseEventBuilder(const Widget*, const PlatformMouseEvent&);
-};
-
-// Converts a WheelEvent to a corresponding WebMouseWheelEvent.
-// If the event mapping fails, the event type will be set to Undefined.
-class WebMouseWheelEventBuilder : public WebMouseWheelEvent {
-public:
- WebMouseWheelEventBuilder(const Widget*, const RenderObject*, const WheelEvent&);
-};
-
// Converts a KeyboardEvent or PlatformKeyboardEvent to a
// corresponding WebKeyboardEvent.
// NOTE: For KeyboardEvent, this is only implemented for keydown,

Powered by Google App Engine
This is Rietveld 408576698