Index: Source/web/WebInputEventConversion.h |
diff --git a/Source/web/WebInputEventConversion.h b/Source/web/WebInputEventConversion.h |
index ef3c1874bcb9b5b0ab44c882f9958feb0d691957..e1d2300db3b004e5df6ddd07b883205e3a415214 100644 |
--- a/Source/web/WebInputEventConversion.h |
+++ b/Source/web/WebInputEventConversion.h |
@@ -37,6 +37,7 @@ |
#include "platform/PlatformTouchEvent.h" |
#include "platform/PlatformWheelEvent.h" |
#include "public/web/WebInputEvent.h" |
+#include "wtf/Allocator.h" |
namespace blink { |
@@ -57,21 +58,25 @@ class Widget; |
// corresponding WebCore events. |
class PlatformMouseEventBuilder : public PlatformMouseEvent { |
+ DISALLOW_ALLOCATION(); |
public: |
PlatformMouseEventBuilder(Widget*, const WebMouseEvent&); |
}; |
class PlatformWheelEventBuilder : public PlatformWheelEvent { |
+ DISALLOW_ALLOCATION(); |
public: |
PlatformWheelEventBuilder(Widget*, const WebMouseWheelEvent&); |
}; |
class PlatformGestureEventBuilder : public PlatformGestureEvent { |
+ DISALLOW_ALLOCATION(); |
public: |
PlatformGestureEventBuilder(Widget*, const WebGestureEvent&); |
}; |
class PlatformKeyboardEventBuilder : public PlatformKeyboardEvent { |
+ DISALLOW_ALLOCATION(); |
public: |
PlatformKeyboardEventBuilder(const WebKeyboardEvent&); |
void setKeyType(Type); |
@@ -80,17 +85,20 @@ public: |
// Converts a WebTouchPoint to a PlatformTouchPoint. |
class PlatformTouchPointBuilder : public PlatformTouchPoint { |
+ DISALLOW_ALLOCATION(); |
public: |
PlatformTouchPointBuilder(Widget*, const WebTouchPoint&); |
}; |
// Converts a WebTouchEvent to a PlatformTouchEvent. |
class PlatformTouchEventBuilder : public PlatformTouchEvent { |
+ DISALLOW_ALLOCATION(); |
public: |
PlatformTouchEventBuilder(Widget*, const WebTouchEvent&); |
}; |
class WebMouseEventBuilder : public WebMouseEvent { |
+ WTF_MAKE_FAST_ALLOCATED(WebMouseEventBuilder); |
public: |
// Converts a MouseEvent to a corresponding WebMouseEvent. |
// NOTE: This is only implemented for mousemove, mouseover, mouseout, |
@@ -103,6 +111,7 @@ public: |
// Converts a WheelEvent to a corresponding WebMouseWheelEvent. |
// If the event mapping fails, the event type will be set to Undefined. |
class WebMouseWheelEventBuilder : public WebMouseWheelEvent { |
+ WTF_MAKE_FAST_ALLOCATED(WebMouseWheelEventBuilder); |
public: |
WebMouseWheelEventBuilder(const Widget*, const LayoutObject*, const WheelEvent&); |
}; |
@@ -113,6 +122,7 @@ public: |
// keyup, and keypress. If the event mapping fails, the event type will be set |
// to Undefined. |
class WebKeyboardEventBuilder : public WebKeyboardEvent { |
+ WTF_MAKE_FAST_ALLOCATED(WebKeyboardEventBuilder); |
public: |
WebKeyboardEventBuilder(const KeyboardEvent&); |
}; |
@@ -121,6 +131,7 @@ public: |
// NOTE: WebTouchEvents have a cap on the number of WebTouchPoints. Any points |
// exceeding that cap will be dropped. |
class WebTouchEventBuilder : public WebTouchEvent { |
+ DISALLOW_ALLOCATION(); |
public: |
WebTouchEventBuilder(const LayoutObject*, const TouchEvent&); |
}; |
@@ -128,6 +139,7 @@ public: |
// Converts GestureEvent to a corresponding WebGestureEvent. |
// NOTE: If event mapping fails, the type will be set to Undefined. |
class WebGestureEventBuilder : public WebGestureEvent { |
+ DISALLOW_ALLOCATION(); |
public: |
WebGestureEventBuilder(const LayoutObject*, const GestureEvent&); |
}; |