| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_ |
| 7 | 7 |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" | 9 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" |
| 10 #include "content/common/input/synthetic_gesture_params.h" | 10 #include "content/common/input/synthetic_gesture_params.h" |
| 11 | 11 |
| 12 namespace aura { | 12 namespace aura { |
| 13 class RootWindowHostDelegate; | 13 class RootWindowHostDelegate; |
| 14 class Window; |
| 15 |
| 16 namespace client { |
| 17 class ScreenPositionClient; |
| 14 } | 18 } |
| 19 } // namespace aura |
| 15 | 20 |
| 16 namespace content { | 21 namespace content { |
| 17 | 22 |
| 18 class InputEvent; | 23 class InputEvent; |
| 19 | 24 |
| 20 // SyntheticGestureTarget implementation for aura | 25 // SyntheticGestureTarget implementation for aura |
| 21 class SyntheticGestureTargetAura : public SyntheticGestureTargetBase { | 26 class SyntheticGestureTargetAura : public SyntheticGestureTargetBase { |
| 22 public: | 27 public: |
| 23 explicit SyntheticGestureTargetAura(RenderWidgetHostImpl* host); | 28 explicit SyntheticGestureTargetAura(RenderWidgetHostImpl* host); |
| 24 | 29 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 36 // SyntheticGestureTarget: | 41 // SyntheticGestureTarget: |
| 37 virtual SyntheticGestureParams::GestureSourceType | 42 virtual SyntheticGestureParams::GestureSourceType |
| 38 GetDefaultSyntheticGestureSourceType() const OVERRIDE; | 43 GetDefaultSyntheticGestureSourceType() const OVERRIDE; |
| 39 virtual bool SupportsSyntheticGestureSourceType( | 44 virtual bool SupportsSyntheticGestureSourceType( |
| 40 SyntheticGestureParams::GestureSourceType gesture_source_type) const | 45 SyntheticGestureParams::GestureSourceType gesture_source_type) const |
| 41 OVERRIDE; | 46 OVERRIDE; |
| 42 | 47 |
| 43 virtual int GetTouchSlopInDips() const OVERRIDE; | 48 virtual int GetTouchSlopInDips() const OVERRIDE; |
| 44 | 49 |
| 45 private: | 50 private: |
| 51 aura::Window* GetWindow() const; |
| 46 aura::RootWindowHostDelegate* GetRootWindowHostDelegate() const; | 52 aura::RootWindowHostDelegate* GetRootWindowHostDelegate() const; |
| 53 aura::client::ScreenPositionClient* GetScreenPositionClient() const; |
| 47 | 54 |
| 48 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetAura); | 55 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetAura); |
| 49 }; | 56 }; |
| 50 | 57 |
| 51 } // namespace content | 58 } // namespace content |
| 52 | 59 |
| 53 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_ | 60 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_AURA_H_ |
| OLD | NEW |