| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_ |
| 7 | 7 |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 #include "content/browser/renderer_host/input/synthetic_gesture_new.h" | 9 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" |
| 10 #include "content/common/content_export.h" | |
| 11 #include "content/common/input/synthetic_gesture_params.h" | 10 #include "content/common/input/synthetic_gesture_params.h" |
| 12 | 11 |
| 13 namespace content { | 12 namespace content { |
| 14 | 13 |
| 15 class InputEvent; | 14 class InputEvent; |
| 16 | 15 |
| 17 // Interface between the synthetic gesture controller and the RWHV. | 16 // SyntheticGestureTarget implementation for aura |
| 18 class CONTENT_EXPORT SyntheticGestureTarget { | 17 class SyntheticGestureTargetAura : public SyntheticGestureTargetBase { |
| 19 public: | 18 public: |
| 20 SyntheticGestureTarget() {} | 19 explicit SyntheticGestureTargetAura(RenderWidgetHostImpl* host); |
| 21 virtual ~SyntheticGestureTarget() {} | |
| 22 | 20 |
| 23 virtual void QueueInputEventToPlatform(const InputEvent& event) = 0; | 21 // SyntheticGestureTargetBase: |
| 22 virtual void QueueWebTouchEventToPlatform( |
| 23 const blink::WebTouchEvent& web_touch, |
| 24 const ui::LatencyInfo& latency_info) OVERRIDE; |
| 24 | 25 |
| 25 virtual void OnSyntheticGestureCompleted( | 26 // SyntheticGestureTarget: |
| 26 SyntheticGestureNew::Result result) = 0; | 27 virtual SyntheticGestureParams::GestureSourceType |
| 28 GetDefaultSyntheticGestureSourceType() const OVERRIDE; |
| 29 virtual bool SupportsSyntheticGestureSourceType( |
| 30 SyntheticGestureParams::GestureSourceType gesture_source_type) const |
| 31 OVERRIDE; |
| 27 | 32 |
| 28 virtual base::TimeDelta GetSyntheticGestureUpdateRate() const = 0; | 33 private: |
| 29 | 34 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetAura); |
| 30 virtual SyntheticGestureParams::GestureSourceType | |
| 31 GetDefaultSyntheticGestureSourceType() const = 0; | |
| 32 virtual bool SupportsSyntheticGestureSourceType( | |
| 33 SyntheticGestureParams::GestureSourceType gesture_source_type) const = 0; | |
| 34 }; | 35 }; |
| 35 | 36 |
| 36 } // namespace content | 37 } // namespace content |
| 37 | 38 |
| 38 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_ | 39 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_ |
| OLD | NEW |