blob: 7163f379a2bcdab079a23fde1d59e4e97de14562 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// 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(GestureConsumer* raw_input_consumer,
GestureEvent* event) = 0;
virtual void DispatchCancelTouchEvent(GestureConsumer* raw_input_consumer,
TouchEvent* event) = 0;
};
} // namespace ui
#endif // UI_EVENTS_GESTURES_GESTURE_TYPES_H_
|