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

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

Issue 10837330: Add a completion callback to gpuBenchmarking.beginSmoothScroll (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: virtual and todo note Created 8 years, 4 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 0c6842a96aa85050ac2bee14bf9932265c0a750f..4be288c649e3281cb899b9136231d68f855f3a9d 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -6,6 +6,7 @@
#define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
#include <deque>
+#include <map>
#include <string>
#include <vector>
@@ -511,7 +512,9 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
void OnMsgUpdateIsDelayed();
void OnMsgInputEventAck(WebKit::WebInputEvent::Type event_type,
bool processed);
- void OnMsgBeginSmoothScroll(bool scroll_down, bool scroll_far);
+ void OnMsgBeginSmoothScroll(int gesture_id,
+ bool scroll_down,
+ bool scroll_far);
void OnMsgSelectRangeAck();
virtual void OnMsgFocus();
virtual void OnMsgBlur();
@@ -787,7 +790,9 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
- scoped_ptr<SmoothScrollGesture> active_smooth_scroll_gesture_;
+ typedef std::map<int, scoped_refptr<SmoothScrollGesture> >
+ SmoothScrollGestureMap;
+ SmoothScrollGestureMap active_smooth_scroll_gestures_;
scoped_ptr<GestureEventFilter> gesture_event_filter_;
« 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