IndexedDBFactory now ForceCloses databases.
[chromium-blink-merge.git] / content / browser / renderer_host / input / synthetic_gesture_target_aura.h
blob43e1fc2ac20cffd19becde2c85f5f0097905ebb0
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"
12 namespace aura {
13 class WindowTreeHostDelegate;
14 class Window;
16 namespace client {
17 class ScreenPositionClient;
19 } // namespace aura
21 namespace content {
23 class InputEvent;
25 // SyntheticGestureTarget implementation for aura
26 class SyntheticGestureTargetAura : public SyntheticGestureTargetBase {
27 public:
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
46 OVERRIDE;
48 virtual int GetTouchSlopInDips() const OVERRIDE;
50 private:
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_