| 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_BASE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_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.h" | 9 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 GetDefaultSyntheticGestureSourceType() const OVERRIDE; | 49 GetDefaultSyntheticGestureSourceType() const OVERRIDE; |
| 50 | 50 |
| 51 virtual base::TimeDelta PointerAssumedStoppedTime() const OVERRIDE; | 51 virtual base::TimeDelta PointerAssumedStoppedTime() const OVERRIDE; |
| 52 | 52 |
| 53 virtual int GetTouchSlopInDips() const OVERRIDE; | 53 virtual int GetTouchSlopInDips() const OVERRIDE; |
| 54 | 54 |
| 55 protected: | 55 protected: |
| 56 RenderWidgetHostImpl* render_widget_host() const { return host_; } | 56 RenderWidgetHostImpl* render_widget_host() const { return host_; } |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 bool PointIsWithinContents(int x, int y) const; |
| 60 |
| 59 RenderWidgetHostImpl* host_; | 61 RenderWidgetHostImpl* host_; |
| 60 | 62 |
| 61 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetBase); | 63 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetBase); |
| 62 }; | 64 }; |
| 63 | 65 |
| 64 } // namespace content | 66 } // namespace content |
| 65 | 67 |
| 66 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_ | 68 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_ |
| OLD | NEW |