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.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; |
| 15 class RenderWidgetHostViewAura; |
16 | 16 |
17 // Interface between the synthetic gesture controller and the RWHV. | 17 // SyntheticGestureTarget implementation for aura |
18 class CONTENT_EXPORT SyntheticGestureTarget { | 18 // FIXME: update this to use SyntheticGestureTargetBase |
| 19 class SyntheticGestureTargetAura : public SyntheticGestureTarget { |
19 public: | 20 public: |
20 virtual void QueueInputEventToPlatform(const InputEvent& event) = 0; | 21 SyntheticGestureTargetAura(RenderWidgetHostViewAura* render_view); |
| 22 |
| 23 virtual void QueueInputEventToPlatform(const InputEvent& event) OVERRIDE; |
21 | 24 |
22 virtual void OnSyntheticGestureCompleted( | 25 virtual void OnSyntheticGestureCompleted( |
23 SyntheticGestureNew::Result result) = 0; | 26 SyntheticGestureNew::Result result) OVERRIDE; |
24 | 27 |
25 virtual base::TimeDelta GetSyntheticGestureUpdateRate() const = 0; | 28 virtual base::TimeDelta GetSyntheticGestureUpdateRate() const OVERRIDE; |
26 | 29 |
27 virtual SyntheticGestureParams::GestureSourceType | 30 virtual SyntheticGestureParams::GestureSourceType |
28 GetDefaultSyntheticGestureSourceType() const = 0; | 31 GetDefaultSyntheticGestureSourceType() const OVERRIDE; |
29 virtual bool SupportsSyntheticGestureSourceType( | 32 virtual bool SupportsSyntheticGestureSourceType( |
30 SyntheticGestureParams::GestureSourceType gesture_source_type) const = 0; | 33 SyntheticGestureParams::GestureSourceType gesture_source_type) const |
| 34 OVERRIDE; |
| 35 |
| 36 private: |
| 37 RenderWidgetHostViewAura* render_view_; |
31 }; | 38 }; |
32 | 39 |
33 } // namespace content | 40 } // namespace content |
34 | 41 |
35 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_H_ | 42 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_ |
OLD | NEW |