Index: content/browser/renderer_host/input/synthetic_gesture_target_aura.h |
diff --git a/content/browser/renderer_host/input/synthetic_gesture_target_aura.h b/content/browser/renderer_host/input/synthetic_gesture_target_aura.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..475eb929bb79faeafdb8c81fcb6932fcb29fb3ee |
--- /dev/null |
+++ b/content/browser/renderer_host/input/synthetic_gesture_target_aura.h |
@@ -0,0 +1,44 @@ |
+// Copyright 2013 The Chromium Authors. All rights reserved. |
+// 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_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_target_base.h" |
+#include "content/common/input/synthetic_gesture_params.h" |
+ |
+namespace content { |
+ |
+class InputEvent; |
+class RenderWidgetHostViewAura; |
+ |
+// SyntheticGestureTarget implementation for aura |
+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
|
+ public: |
+ explicit SyntheticGestureTargetAura(RenderWidgetHostViewAura* render_view); |
+ |
+ // SyntheticGestureTargetBase: |
+ virtual void QueueWebTouchEventToPlatform( |
+ const WebKit::WebTouchEvent& web_touch, |
+ const ui::LatencyInfo& latency_info) OVERRIDE; |
+ |
+ // SyntheticGestureTarget: |
+ virtual SyntheticGestureParams::GestureSourceType |
+ GetDefaultSyntheticGestureSourceType() const OVERRIDE; |
+ virtual bool SupportsSyntheticGestureSourceType( |
+ SyntheticGestureParams::GestureSourceType gesture_source_type) const |
+ OVERRIDE; |
+ |
+ private: |
+ RenderWidgetHostViewAura* render_view_aura() { |
+ return reinterpret_cast<RenderWidgetHostViewAura*>(render_view()); |
+ } |
+ |
+ DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetAura); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_ |