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

Side by Side Diff: content/browser/renderer_host/input/input_router_impl.h

Issue 997283002: Coalesce async touch move events until the ack back from render (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 const ui::LatencyInfo& latency_info); 118 const ui::LatencyInfo& latency_info);
119 119
120 // Returns true if |input_event| was successfully sent to the renderer 120 // Returns true if |input_event| was successfully sent to the renderer
121 // as an async IPC Message. 121 // as an async IPC Message.
122 bool OfferToRenderer(const blink::WebInputEvent& input_event, 122 bool OfferToRenderer(const blink::WebInputEvent& input_event,
123 const ui::LatencyInfo& latency_info, 123 const ui::LatencyInfo& latency_info,
124 bool is_keyboard_shortcut); 124 bool is_keyboard_shortcut);
125 125
126 // IPC message handlers 126 // IPC message handlers
127 void OnInputEventAck(const InputHostMsg_HandleInputEvent_ACK_Params& ack); 127 void OnInputEventAck(const InputHostMsg_HandleInputEvent_ACK_Params& ack);
128 void OnUncancelableTouchMoveAck();
128 void OnDidOverscroll(const DidOverscrollParams& params); 129 void OnDidOverscroll(const DidOverscrollParams& params);
129 void OnMsgMoveCaretAck(); 130 void OnMsgMoveCaretAck();
130 void OnSelectMessageAck(); 131 void OnSelectMessageAck();
131 void OnHasTouchEventHandlers(bool has_handlers); 132 void OnHasTouchEventHandlers(bool has_handlers);
132 void OnSetTouchAction(TouchAction touch_action); 133 void OnSetTouchAction(TouchAction touch_action);
133 void OnDidStopFlinging(); 134 void OnDidStopFlinging();
134 135
135 // Indicates the source of an ack provided to |ProcessInputEventAck()|. 136 // Indicates the source of an ack provided to |ProcessInputEventAck()|.
136 // The source is tracked by |current_ack_source_|, which aids in ack routing. 137 // The source is tracked by |current_ack_source_|, which aids in ack routing.
137 enum AckSource { 138 enum AckSource {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 TouchActionFilter touch_action_filter_; 253 TouchActionFilter touch_action_filter_;
253 InputEventStreamValidator input_stream_validator_; 254 InputEventStreamValidator input_stream_validator_;
254 InputEventStreamValidator output_stream_validator_; 255 InputEventStreamValidator output_stream_validator_;
255 256
256 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); 257 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl);
257 }; 258 };
258 259
259 } // namespace content 260 } // namespace content
260 261
261 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ 262 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698