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

Side by Side Diff: content/renderer/input/input_handler_proxy.h

Issue 1251323002: Plumb smooth scrolling in Chromium compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
OLDNEW
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_RENDERER_INPUT_INPUT_HANDLER_PROXY_H_ 5 #ifndef CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_H_
6 #define CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_H_ 6 #define CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/containers/hash_tables.h" 9 #include "base/containers/hash_tables.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // blink::WebGestureCurveTarget implementation. 56 // blink::WebGestureCurveTarget implementation.
57 virtual bool scrollBy(const blink::WebFloatSize& offset, 57 virtual bool scrollBy(const blink::WebFloatSize& offset,
58 const blink::WebFloatSize& velocity); 58 const blink::WebFloatSize& velocity);
59 59
60 bool gesture_scroll_on_impl_thread_for_testing() const { 60 bool gesture_scroll_on_impl_thread_for_testing() const {
61 return gesture_scroll_on_impl_thread_; 61 return gesture_scroll_on_impl_thread_;
62 } 62 }
63 63
64 private: 64 private:
65 // Helper function for creating the right kind of animation curve.
66 blink::WebGestureCurve* CreateAnimationCurve(
67 const blink::WebGestureEvent& gesture_event);
65 // Helper functions for handling more complicated input events. 68 // Helper functions for handling more complicated input events.
66 EventDisposition HandleMouseWheel( 69 EventDisposition HandleMouseWheel(
67 const blink::WebMouseWheelEvent& event); 70 const blink::WebMouseWheelEvent& event);
68 EventDisposition HandleGestureScrollBegin( 71 EventDisposition HandleGestureScrollBegin(
69 const blink::WebGestureEvent& event); 72 const blink::WebGestureEvent& event);
70 EventDisposition HandleGestureScrollUpdate( 73 EventDisposition HandleGestureScrollUpdate(
71 const blink::WebGestureEvent& event); 74 const blink::WebGestureEvent& event);
72 EventDisposition HandleGestureScrollEnd( 75 EventDisposition HandleGestureScrollEnd(
73 const blink::WebGestureEvent& event); 76 const blink::WebGestureEvent& event);
74 EventDisposition HandleGestureFlingStart( 77 EventDisposition HandleGestureFlingStart(
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 bool smooth_scroll_enabled_; 149 bool smooth_scroll_enabled_;
147 150
148 bool uma_latency_reporting_enabled_; 151 bool uma_latency_reporting_enabled_;
149 152
150 DISALLOW_COPY_AND_ASSIGN(InputHandlerProxy); 153 DISALLOW_COPY_AND_ASSIGN(InputHandlerProxy);
151 }; 154 };
152 155
153 } // namespace content 156 } // namespace content
154 157
155 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_H_ 158 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698