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

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

Issue 11793003: Relands: Telemetry: hooks "chrome.gpuBenchmarking.smoothScrollBy" with java on android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moves functionality out of content/port Created 7 years, 7 months 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_BASIC_MOUSE_WHEEL_SMOOTH_SCROLL_GESTURE_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BASIC_MOUSE_WHEEL_SMOOTH_SCROLL_GESTURE_
6 #define CONTENT_BROWSER_RENDERER_HOST_BASIC_MOUSE_WHEEL_SMOOTH_SCROLL_GESTURE_ 6 #define CONTENT_BROWSER_RENDERER_HOST_BASIC_MOUSE_WHEEL_SMOOTH_SCROLL_GESTURE_
7 7
8 #include "base/time.h" 8 #include "base/time.h"
9 #include "content/browser/renderer_host/smooth_scroll_calculator.h"
9 #include "content/port/browser/smooth_scroll_gesture.h" 10 #include "content/port/browser/smooth_scroll_gesture.h"
10 11
11 namespace content { 12 namespace content {
12 13
13 class RenderWidgetHost; 14 class RenderWidgetHost;
14 15
15 class BasicMouseWheelSmoothScrollGesture : public SmoothScrollGesture { 16 class BasicMouseWheelSmoothScrollGesture : public SmoothScrollGesture {
16 public: 17 public:
17 BasicMouseWheelSmoothScrollGesture(bool scroll_down, int pixels_to_scroll, 18 BasicMouseWheelSmoothScrollGesture(bool scroll_down, int pixels_to_scroll,
18 int mouse_event_x, int mouse_event_y); 19 int mouse_event_x, int mouse_event_y);
19 20
20 virtual bool ForwardInputEvents(base::TimeTicks now, 21 virtual bool ForwardInputEvents(base::TimeTicks now,
21 RenderWidgetHost* host) OVERRIDE; 22 RenderWidgetHost* host) OVERRIDE;
22 private: 23 private:
23 virtual ~BasicMouseWheelSmoothScrollGesture(); 24 virtual ~BasicMouseWheelSmoothScrollGesture();
24 25
26 SmoothScrollCalculator smooth_scroll_calculator_;
27
25 bool scroll_down_; 28 bool scroll_down_;
26 int pixels_scrolled_; 29 int pixels_scrolled_;
27 int pixels_to_scroll_; 30 int pixels_to_scroll_;
28 int mouse_event_x_; 31 int mouse_event_x_;
29 int mouse_event_y_; 32 int mouse_event_y_;
30 base::TimeTicks last_tick_time_;
31 }; 33 };
32 34
33 } // namespace content 35 } // namespace content
34 36
35 #endif 37 #endif // CONTENT_BROWSER_RENDERER_HOST_BASIC_MOUSE_WHEEL_SMOOTH_SCROLL_GESTURE_
sadrul 2013/05/08 14:54:35 two spaces before // (here and in the rest of the
bulach 2013/05/08 15:19:25 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698