| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_TOUCH_SMOOTH_GESTURE_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TOUCH_SMOOTH_GESTURE_ANDROID_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_TOUCH_SMOOTH_GESTURE_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_TOUCH_SMOOTH_GESTURE_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
| 9 #include "base/time.h" | 9 #include "base/time/time.h" |
| 10 #include "content/browser/renderer_host/smooth_scroll_calculator.h" | 10 #include "content/browser/renderer_host/smooth_scroll_calculator.h" |
| 11 #include "content/port/browser/smooth_scroll_gesture.h" | 11 #include "content/port/browser/smooth_scroll_gesture.h" |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 | 14 |
| 15 class ContentViewCore; | 15 class ContentViewCore; |
| 16 class RenderWidgetHost; | 16 class RenderWidgetHost; |
| 17 | 17 |
| 18 class TouchSmoothScrollGestureAndroid : public SmoothScrollGesture { | 18 class TouchSmoothScrollGestureAndroid : public SmoothScrollGesture { |
| 19 public: | 19 public: |
| (...skipping 23 matching lines...) Expand all Loading... |
| 43 int pixels_to_scroll_; | 43 int pixels_to_scroll_; |
| 44 RenderWidgetHost* rwh_; | 44 RenderWidgetHost* rwh_; |
| 45 base::android::ScopedJavaGlobalRef<jobject> java_scroller_; | 45 base::android::ScopedJavaGlobalRef<jobject> java_scroller_; |
| 46 | 46 |
| 47 DISALLOW_COPY_AND_ASSIGN(TouchSmoothScrollGestureAndroid); | 47 DISALLOW_COPY_AND_ASSIGN(TouchSmoothScrollGestureAndroid); |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 } // namespace content | 50 } // namespace content |
| 51 | 51 |
| 52 #endif // CONTENT_BROWSER_RENDERER_HOST_TOUCH_SMOOTH_GESTURE_ANDROID_H_ | 52 #endif // CONTENT_BROWSER_RENDERER_HOST_TOUCH_SMOOTH_GESTURE_ANDROID_H_ |
| OLD | NEW |