Index: ui/base/gestures/gesture_types.h |
diff --git a/ui/base/gestures/gesture_types.h b/ui/base/gestures/gesture_types.h |
index 48dae701f134e6f2d18a95bdd0fd6e2b62176d0c..caab89240435bd50e87f28f2a232cfd5234661e6 100644 |
--- a/ui/base/gestures/gesture_types.h |
+++ b/ui/base/gestures/gesture_types.h |
@@ -12,6 +12,7 @@ |
namespace ui { |
+class GestureEvent; |
class TouchEvent; |
struct UI_EXPORT GestureEventDetails { |
@@ -115,25 +116,6 @@ struct UI_EXPORT GestureEventDetails { |
gfx::Rect bounding_box_; |
}; |
-// An abstract type to represent gesture-events. |
-class UI_EXPORT GestureEvent { |
- public: |
- virtual ~GestureEvent() {} |
- |
- // A gesture event can have multiple touches. This function should return the |
- // lowest ID of the touches in this gesture. |
- virtual int GetLowestTouchId() const = 0; |
- |
- // A helper function used in several (all) derived classes. |
- // Returns lowest set bit, or -1 if no bits are set. |
- static int LowestBit(unsigned int bitfield) { |
- int i = -1; |
- // Find the index of the least significant 1 bit |
- while (bitfield && (!((1 << ++i) & bitfield))); |
- return i; |
- } |
-}; |
- |
// An abstract type for consumers of gesture-events created by the |
// gesture-recognizer. |
class UI_EXPORT GestureConsumer { |