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

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: Added struct SelectionRange 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
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 b7a528e2104f2a476d8331b6cda2eaa63825b938..1b16e16196c5fd1df7135752d67e50beef93c48d 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -7,6 +7,7 @@
#include <deque>
#include <string>
+#include <utility>
darin (slow to review) 2012/08/06 18:27:41 nit: not needed
Iain Merrick 2012/08/13 13:17:23 Done.
#include <vector>
#include "base/callback.h"
@@ -505,6 +506,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);
@@ -686,6 +688,15 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
// are coalesced by merging deltas in a similar fashion as wheel events.
GestureEventQueue coalesced_gesture_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_select_range_;
darin (slow to review) 2012/08/06 18:27:41 nit: next_selection_range_ <-- type is "Selectio
Iain Merrick 2012/08/13 13:17:23 Done.
+
// The time when an input event was sent to the RenderWidget.
base::TimeTicks input_event_start_time_;

Powered by Google App Engine
This is Rietveld 408576698