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.
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_
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"
17 // Interface between the synthetic gesture controller and the RWHV.
18 class CONTENT_EXPORT SyntheticGestureTarget {
20 SyntheticGestureTarget() {}
21 virtual ~SyntheticGestureTarget() {}
23 virtual void QueueInputEventToPlatform(const InputEvent& event) = 0;
25 virtual void OnSyntheticGestureCompleted(
26 SyntheticGestureNew::Result result) = 0;
28 virtual base::TimeDelta GetSyntheticGestureUpdateRate() const = 0;
30 virtual SyntheticGestureParams::GestureSourceType
31 GetDefaultSyntheticGestureSourceType() const = 0;
32 virtual bool SupportsSyntheticGestureSourceType(
33 SyntheticGestureParams::GestureSourceType gesture_source_type) const = 0;
36 } // namespace content
38 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_