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

Unified Diff: ui/base/gestures/gesture_types.h

Issue 10824247: Remove GestureEvent interface, and rename GestureEventImpl to GestureEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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
« no previous file with comments | « ui/base/event.cc ('k') | ui/views/events/event_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « ui/base/event.cc ('k') | ui/views/events/event_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698