OLD | NEW |
---|---|
(Empty) | |
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_AURA_H_ | |
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_ | |
7 | |
8 #include "base/time/time.h" | |
9 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" | |
10 #include "content/common/input/synthetic_gesture_params.h" | |
11 | |
12 namespace content { | |
13 | |
14 class InputEvent; | |
15 class RenderWidgetHostViewAura; | |
16 | |
17 // SyntheticGestureTarget implementation for aura | |
18 class SyntheticGestureTargetAura : public SyntheticGestureTargetBase { | |
jdduke (slow)
2013/10/28 15:59:47
Is it necessary for SyntheticGestureTarget{Aura,An
Dominik Grewe
2013/10/28 16:14:31
There is some common functionality: GetSyntheticGe
| |
19 public: | |
20 explicit SyntheticGestureTargetAura(RenderWidgetHostViewAura* render_view); | |
21 | |
22 // SyntheticGestureTargetBase: | |
23 virtual void QueueWebTouchEventToPlatform( | |
24 const WebKit::WebTouchEvent& web_touch, | |
25 const ui::LatencyInfo& latency_info) OVERRIDE; | |
26 | |
27 // SyntheticGestureTarget: | |
28 virtual SyntheticGestureParams::GestureSourceType | |
29 GetDefaultSyntheticGestureSourceType() const OVERRIDE; | |
30 virtual bool SupportsSyntheticGestureSourceType( | |
31 SyntheticGestureParams::GestureSourceType gesture_source_type) const | |
32 OVERRIDE; | |
33 | |
34 private: | |
35 RenderWidgetHostViewAura* render_view_aura() { | |
36 return reinterpret_cast<RenderWidgetHostViewAura*>(render_view()); | |
37 } | |
38 | |
39 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetAura); | |
40 }; | |
41 | |
42 } // namespace content | |
43 | |
44 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_ | |
OLD | NEW |