blob: c15a2fdca472c318a94067f4de4c344a5f2ffd7d [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_EVENTS_GESTURES_GESTURE_TYPES_H_
#define UI_EVENTS_GESTURES_GESTURE_TYPES_H_
#include "ui/events/events_export.h"
namespace ui {
class GestureEvent;
class TouchEvent;
// An abstract type for consumers of gesture-events created by the
// gesture-recognizer.
class EVENTS_EXPORT GestureConsumer {
public:
virtual ~GestureConsumer() {}
};
// GestureEventHelper creates implementation-specific gesture events and
// can dispatch them.
class EVENTS_EXPORT GestureEventHelper {
public:
virtual ~GestureEventHelper() {
}
// Returns true if this helper can dispatch events to |consumer|.
virtual bool CanDispatchToConsumer(GestureConsumer* consumer) = 0;
virtual void DispatchGestureEvent(GestureEvent* event) = 0;
virtual void DispatchCancelTouchEvent(TouchEvent* event) = 0;
};
} // namespace ui
#endif // UI_EVENTS_GESTURES_GESTURE_TYPES_H_