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

Unified Diff: content/renderer/render_widget.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 | « content/renderer/gpu/gpu_benchmarking_extension.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index cb06e66678415e17ee789ec4d081bb66382839d3..23ecd6608598195a115fbbae18c6d97a78cf100e 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -180,7 +180,7 @@ class CONTENT_EXPORT RenderWidget
// performance characteristics as a user-initiated scroll. Returns an ID of
// the scroll gesture. |mouse_event_x| and |mouse_event_y| are expected to be
// in local DIP coordinates.
- void BeginSmoothScroll(bool scroll_down,
+ bool BeginSmoothScroll(bool scroll_down,
const SmoothScrollCompletionCallback& callback,
int pixels_to_scroll,
int mouse_event_x,
@@ -309,7 +309,7 @@ class CONTENT_EXPORT RenderWidget
const gfx::Size& page_size,
const gfx::Size& desired_size);
void OnRepaint(const gfx::Size& size_to_paint);
- void OnSmoothScrollCompleted(int gesture_id);
+ void OnSmoothScrollCompleted();
void OnSetTextDirection(WebKit::WebTextDirection direction);
void OnGetFPS();
void OnScreenInfoChanged(const WebKit::WebScreenInfo& screen_info);
@@ -680,10 +680,7 @@ class CONTENT_EXPORT RenderWidget
bool throttle_input_events_;
// State associated with the BeginSmoothScroll synthetic scrolling function.
- int next_smooth_scroll_gesture_id_;
- typedef std::map<int, SmoothScrollCompletionCallback>
- PendingSmoothScrollGestureMap;
- PendingSmoothScrollGestureMap pending_smooth_scroll_gestures_;
+ SmoothScrollCompletionCallback pending_smooth_scroll_gesture_;
// Specified whether the compositor will run in its own thread.
bool is_threaded_compositing_enabled_;
« no previous file with comments | « content/renderer/gpu/gpu_benchmarking_extension.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698