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

Unified Diff: content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.h

Issue 11416283: Attempt to linearize the scroll deltas created in RenderWidgetHostViewBase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Broke BasicMouseWheelSmoothScrollGesture out into its own file. Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.h
diff --git a/content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.h b/content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.h
new file mode 100644
index 0000000000000000000000000000000000000000..74cfccc12e2f54aee726893aa0fb7a640d245009
--- /dev/null
+++ b/content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_RENDERER_HOST_BASIC_MOUSE_WHEEL_SMOOTH_SCROLL_GESTURE_
+#define CONTENT_BROWSER_RENDERER_HOST_BASIC_MOUSE_WHEEL_SMOOTH_SCROLL_GESTURE_
+
+#include "base/time.h"
+#include "content/port/browser/smooth_scroll_gesture.h"
+
+namespace content {
+
+class RenderWidgetHost;
+
+class BasicMouseWheelSmoothScrollGesture : public SmoothScrollGesture {
+ public:
+ BasicMouseWheelSmoothScrollGesture(bool scroll_down, int pixels_to_scroll,
+ int mouse_event_x, int mouse_event_y);
+
+ virtual bool ForwardInputEvents(base::TimeTicks now,
+ RenderWidgetHost* host) OVERRIDE;
+ private:
+ virtual ~BasicMouseWheelSmoothScrollGesture();
+
+ bool scroll_down_;
+ int pixels_scrolled_;
+ int pixels_to_scroll_;
+ int mouse_event_x_;
+ int mouse_event_y_;
+ base::TimeTicks last_tick_time_;
+};
+
+
piman 2012/12/01 19:04:50 nit: that's a lot of vertical whitespace!
Ian Vollick 2012/12/01 21:28:02 Whoa! I don't know what happened there. Fixed.
+
+} // namespace content
+
+#endif
« no previous file with comments | « no previous file | content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698