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.
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_
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"
13 class WindowTreeHostDelegate;
17 class ScreenPositionClient;
23 // SyntheticGestureTarget implementation for aura
24 class SyntheticGestureTargetAura : public SyntheticGestureTargetBase {
26 explicit SyntheticGestureTargetAura(RenderWidgetHostImpl* host);
28 // SyntheticGestureTargetBase:
29 virtual void DispatchWebTouchEventToPlatform(
30 const blink::WebTouchEvent& web_touch,
31 const ui::LatencyInfo& latency_info) OVERRIDE;
32 virtual void DispatchWebMouseWheelEventToPlatform(
33 const blink::WebMouseWheelEvent& web_wheel,
34 const ui::LatencyInfo& latency_info) OVERRIDE;
35 virtual void DispatchWebMouseEventToPlatform(
36 const blink::WebMouseEvent& web_mouse,
37 const ui::LatencyInfo& latency_info) OVERRIDE;
39 // SyntheticGestureTarget:
40 virtual SyntheticGestureParams::GestureSourceType
41 GetDefaultSyntheticGestureSourceType() const OVERRIDE;
42 virtual bool SupportsSyntheticGestureSourceType(
43 SyntheticGestureParams::GestureSourceType gesture_source_type) const
46 virtual int GetTouchSlopInDips() const OVERRIDE;
49 aura::Window* GetWindow() const;
50 aura::WindowTreeHostDelegate* GetWindowTreeHostDelegate() const;
51 aura::client::ScreenPositionClient* GetScreenPositionClient() const;
53 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetAura);
56 } // namespace content
58 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_