| Index: content/browser/renderer_host/input/synthetic_gesture_target_aura.h
|
| diff --git a/content/browser/renderer_host/input/synthetic_gesture_target.h b/content/browser/renderer_host/input/synthetic_gesture_target_aura.h
|
| similarity index 55%
|
| copy from content/browser/renderer_host/input/synthetic_gesture_target.h
|
| copy to content/browser/renderer_host/input/synthetic_gesture_target_aura.h
|
| index 06449435a9a7ecdd1a695c99b20a2e0b48a05c9a..a0c12d660f5f2dc472923aa01ce8969ba31315a6 100644
|
| --- a/content/browser/renderer_host/input/synthetic_gesture_target.h
|
| +++ b/content/browser/renderer_host/input/synthetic_gesture_target_aura.h
|
| @@ -2,37 +2,38 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_
|
| -#define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_
|
| +#ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_
|
| +#define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_
|
|
|
| #include "base/time/time.h"
|
| -#include "content/browser/renderer_host/input/synthetic_gesture_new.h"
|
| -#include "content/common/content_export.h"
|
| +#include "content/browser/renderer_host/input/synthetic_gesture_target_base.h"
|
| #include "content/common/input/synthetic_gesture_params.h"
|
|
|
| namespace content {
|
|
|
| class InputEvent;
|
|
|
| -// Interface between the synthetic gesture controller and the RWHV.
|
| -class CONTENT_EXPORT SyntheticGestureTarget {
|
| +// SyntheticGestureTarget implementation for aura
|
| +class SyntheticGestureTargetAura : public SyntheticGestureTargetBase {
|
| public:
|
| - SyntheticGestureTarget() {}
|
| - virtual ~SyntheticGestureTarget() {}
|
| + explicit SyntheticGestureTargetAura(RenderWidgetHostImpl* host);
|
|
|
| - virtual void QueueInputEventToPlatform(const InputEvent& event) = 0;
|
| -
|
| - virtual void OnSyntheticGestureCompleted(
|
| - SyntheticGestureNew::Result result) = 0;
|
| -
|
| - virtual base::TimeDelta GetSyntheticGestureUpdateRate() const = 0;
|
| + // SyntheticGestureTargetBase:
|
| + virtual void QueueWebTouchEventToPlatform(
|
| + const WebKit::WebTouchEvent& web_touch,
|
| + const ui::LatencyInfo& latency_info) OVERRIDE;
|
|
|
| + // SyntheticGestureTarget:
|
| virtual SyntheticGestureParams::GestureSourceType
|
| - GetDefaultSyntheticGestureSourceType() const = 0;
|
| + GetDefaultSyntheticGestureSourceType() const OVERRIDE;
|
| virtual bool SupportsSyntheticGestureSourceType(
|
| - SyntheticGestureParams::GestureSourceType gesture_source_type) const = 0;
|
| + SyntheticGestureParams::GestureSourceType gesture_source_type) const
|
| + OVERRIDE;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetAura);
|
| };
|
|
|
| } // namespace content
|
|
|
| -#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_
|
| +#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_
|
|
|