Chromium Code Reviews| Index: content/browser/renderer_host/render_widget_host_impl.h |
| diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h |
| index 823208aeb89e5f9608b8873005a8cd3933cf6c8c..c592862138d77130ed94d0b975cbf672ecf2794f 100644 |
| --- a/content/browser/renderer_host/render_widget_host_impl.h |
| +++ b/content/browser/renderer_host/render_widget_host_impl.h |
| @@ -68,7 +68,7 @@ class MockRenderWidgetHost; |
| class OverscrollController; |
| class RenderWidgetHostDelegate; |
| class RenderWidgetHostViewPort; |
| -class SmoothScrollGesture; |
| +class SmoothScrollGestureController; |
| class TouchEventQueue; |
| struct EditCommand; |
| @@ -562,7 +562,7 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
| InputEventAckState ack_result); |
| void OnBeginSmoothScroll( |
| int gesture_id, |
| - const ViewHostMsg_BeginSmoothScroll_Params ¶ms); |
| + const ViewHostMsg_BeginSmoothScroll_Params& params); |
| void OnSelectRangeAck(); |
| void OnMsgMoveCaretAck(); |
| virtual void OnFocus(); |
| @@ -672,9 +672,6 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
| // which may get in recursive loops). |
| void DelayedAutoResized(); |
| - // Called periodically to advance the active scroll gesture after being |
| - // initiated by OnBeginSmoothScroll. |
| - void TickActiveSmoothScrollGesture(); |
| // Our delegate, which wants to know mainly about keyboard events. |
| // It will remain non-NULL until DetachDelegate() is called. |
| @@ -861,12 +858,7 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
| base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| - typedef std::map<int, scoped_refptr<SmoothScrollGesture> > |
| - SmoothScrollGestureMap; |
| - SmoothScrollGestureMap active_smooth_scroll_gestures_; |
| - base::TimeTicks last_smooth_scroll_gestures_tick_time_; |
| - bool tick_active_smooth_scroll_gestures_task_posted_; |
| - |
| + scoped_ptr<SmoothScrollGestureController> smooth_scroll_gesture_controller_; |
|
rjkroege
2013/02/11 22:47:27
The SmoothScrollGestureController is a lot like an
|
| scoped_ptr<TouchEventQueue> touch_event_queue_; |
| scoped_ptr<GestureEventFilter> gesture_event_filter_; |
| scoped_ptr<OverscrollController> overscroll_controller_; |