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
;
25 // SyntheticGestureTarget implementation for aura
26 class SyntheticGestureTargetAura
: public SyntheticGestureTargetBase
{
28 explicit SyntheticGestureTargetAura(RenderWidgetHostImpl
* host
);
30 // SyntheticGestureTargetBase:
31 virtual void DispatchWebTouchEventToPlatform(
32 const blink::WebTouchEvent
& web_touch
,
33 const ui::LatencyInfo
& latency_info
) OVERRIDE
;
34 virtual void DispatchWebMouseWheelEventToPlatform(
35 const blink::WebMouseWheelEvent
& web_wheel
,
36 const ui::LatencyInfo
& latency_info
) OVERRIDE
;
37 virtual void DispatchWebMouseEventToPlatform(
38 const blink::WebMouseEvent
& web_mouse
,
39 const ui::LatencyInfo
& latency_info
) OVERRIDE
;
41 // SyntheticGestureTarget:
42 virtual SyntheticGestureParams::GestureSourceType
43 GetDefaultSyntheticGestureSourceType() const OVERRIDE
;
44 virtual bool SupportsSyntheticGestureSourceType(
45 SyntheticGestureParams::GestureSourceType gesture_source_type
) const
48 virtual int GetTouchSlopInDips() const OVERRIDE
;
51 aura::Window
* GetWindow() const;
52 aura::WindowTreeHostDelegate
* GetWindowTreeHostDelegate() const;
53 aura::client::ScreenPositionClient
* GetScreenPositionClient() const;
55 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetAura
);
58 } // namespace content
60 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_