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

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

Issue 11858007: Splits SmoothGestureController from RenderWidgetHostImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adds missing ifdef for aura Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e81bc5d33226ef64f8a05145bf8840b26825aec6..76fc7f36afbeefef14392eeabfe9344ddb5c4153 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -70,7 +70,7 @@ class MockRenderWidgetHost;
class OverscrollController;
class RenderWidgetHostDelegate;
class RenderWidgetHostViewPort;
-class SmoothScrollGesture;
+class SmoothScrollGestureController;
class TouchEventQueue;
struct EditCommand;
@@ -582,8 +582,8 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
void OnInputEventAck(WebKit::WebInputEvent::Type event_type,
InputEventAckState ack_result);
void OnBeginSmoothScroll(
- int gesture_id,
- const ViewHostMsg_BeginSmoothScroll_Params &params);
+ const ViewHostMsg_BeginSmoothScroll_Params& params,
+ bool* smooth_scroll_started);
void OnSelectRangeAck();
void OnMsgMoveCaretAck();
virtual void OnFocus();
@@ -664,9 +664,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.
@@ -860,12 +857,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_;
scoped_ptr<TouchEventQueue> touch_event_queue_;
scoped_ptr<GestureEventFilter> gesture_event_filter_;
scoped_ptr<OverscrollController> overscroll_controller_;
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698