Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(460)

Side by Side Diff: content/browser/renderer_host/smooth_scroll_gesture_android.h

Issue 11415227: Telemtry: hooks "chrome.gpuBenchmarking.smoothScrollBy" with java on android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove inline virtual dtor Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 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.
4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_SMOOTH_GESTURE_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_SMOOTH_GESTURE_ANDROID_H_
7
8 #include "base/android/jni_android.h"
9 #include "base/time.h"
10 #include "content/port/browser/smooth_scroll_gesture.h"
11
12 namespace content {
13
14 class ContentViewCore;
15 class RenderWidgetHost;
16
17 class SmoothScrollGestureAndroid : public SmoothScrollGesture {
18 public:
19 SmoothScrollGestureAndroid(
20 int pixels_to_scroll,
21 RenderWidgetHost* rwh,
22 base::android::ScopedJavaLocalRef<jobject> java_scroller);
23
24 // Called by the java side once the TimeAnimator ticks.
25 double Tick(JNIEnv* env, jobject obj);
26 bool HasFinished(JNIEnv* env, jobject obj);
27
28 // SmoothScrollGesture
29 virtual bool ForwardInputEvents(base::TimeTicks now,
30 RenderWidgetHost* host) OVERRIDE;
31
32 private:
33 virtual ~SmoothScrollGestureAndroid();
34
35 int pixels_scrolled_;
36 bool has_started_;
37
38 int pixels_to_scroll_;
39 RenderWidgetHost* rwh_;
40 base::android::ScopedJavaGlobalRef<jobject> java_scroller_;
41
42 DISALLOW_COPY_AND_ASSIGN(SmoothScrollGestureAndroid);
43 };
44
45 } // namespace content
46
47 #endif // CONTENT_BROWSER_RENDERER_HOST_SMOOTH_GESTURE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698