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

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

Issue 10823077: Throttle SelectRange IPC (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Renamed next_select_range, handled RendererExited 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 b2e500cb705a32927a3b7498889833d5e2379454..f2243554a611959c238f44beb2d996014b70f906 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -505,6 +505,7 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
void OnMsgInputEventAck(WebKit::WebInputEvent::Type event_type,
bool processed);
void OnMsgBeginSmoothScroll(bool scroll_down, bool scroll_far);
+ void OnMsgSelectRangeAck();
virtual void OnMsgFocus();
virtual void OnMsgBlur();
void OnMsgHasTouchEventHandlers(bool has_handlers);
@@ -681,6 +682,15 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
// would be queued) results in very slow scrolling.
WheelEventQueue coalesced_mouse_wheel_events_;
+ // (Similar to |mouse_move_pending_|.) True while waiting for SelectRange_ACK.
+ bool select_range_pending_;
+
+ // (Similar to |next_mouse_move_|.) The next SelectRange to send, if any.
+ struct SelectionRange {
+ gfx::Point start, end;
+ };
+ scoped_ptr<SelectionRange> next_selection_range_;
+
// The time when an input event was sent to the RenderWidget.
base::TimeTicks input_event_start_time_;
« 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