- add sources.
[platform/framework/web/crosswalk.git] / src / content / browser / renderer_host / input / synthetic_gesture_target.h
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_
7
8 #include "base/time/time.h"
9 #include "content/browser/renderer_host/input/synthetic_gesture_new.h"
10 #include "content/common/content_export.h"
11 #include "content/common/input/synthetic_gesture_params.h"
12
13 namespace content {
14
15 class InputEvent;
16
17 // Interface between the synthetic gesture controller and the RWHV.
18 class CONTENT_EXPORT SyntheticGestureTarget {
19  public:
20   SyntheticGestureTarget() {}
21   virtual ~SyntheticGestureTarget() {}
22
23   virtual void QueueInputEventToPlatform(const InputEvent& event) = 0;
24
25   virtual void OnSyntheticGestureCompleted(
26       SyntheticGestureNew::Result result) = 0;
27
28   virtual base::TimeDelta GetSyntheticGestureUpdateRate() const = 0;
29
30   virtual SyntheticGestureParams::GestureSourceType
31       GetDefaultSyntheticGestureSourceType() const = 0;
32   virtual bool SupportsSyntheticGestureSourceType(
33       SyntheticGestureParams::GestureSourceType gesture_source_type) const = 0;
34 };
35
36 }  // namespace content
37
38 #endif  // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_