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

Unified 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, 7 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/input/input_router_impl.h
diff --git a/content/browser/renderer_host/input/input_router_impl.h b/content/browser/renderer_host/input/input_router_impl.h
index 1abe33b6ad728fda3601ee28722f87e1874aa247..4b8b229b2cbc7100a7c0e028b46e1426846253ed 100644
--- a/content/browser/renderer_host/input/input_router_impl.h
+++ b/content/browser/renderer_host/input/input_router_impl.h
@@ -18,8 +18,6 @@
#include "content/common/input/input_event_stream_validator.h"
#include "content/public/browser/native_web_keyboard_event.h"
-struct InputHostMsg_HandleInputEvent_ACK_Params;
-
namespace IPC {
class Sender;
}
@@ -33,6 +31,7 @@ namespace content {
class InputAckHandler;
class InputRouterClient;
class OverscrollController;
+struct InputEventAck;
jdduke (slow) 2015/05/12 16:07:11 Nit: alphabetical order after |DidOverscrollParams
lanwei 2015/05/13 21:01:53 Done.
struct DidOverscrollParams;
// A default implementation for browser input event routing.
@@ -124,7 +123,7 @@ private:
bool is_keyboard_shortcut);
// IPC message handlers
- void OnInputEventAck(const InputHostMsg_HandleInputEvent_ACK_Params& ack);
+ void OnInputEventAck(const InputEventAck& ack);
void OnDidOverscroll(const DidOverscrollParams& params);
void OnMsgMoveCaretAck();
void OnSelectMessageAck();
@@ -145,6 +144,7 @@ private:
void ProcessInputEventAck(blink::WebInputEvent::Type event_type,
InputEventAckState ack_result,
const ui::LatencyInfo& latency_info,
+ uint32 unique_touch_event_id,
AckSource ack_source);
// Dispatches the ack'ed event to |ack_handler_|.
@@ -169,7 +169,8 @@ private:
// Forwards the event ack to |touch_event_queue_|, potentially triggering
// dispatch of queued touch events, or the creation of gesture events.
void ProcessTouchAck(InputEventAckState ack_result,
- const ui::LatencyInfo& latency);
+ const ui::LatencyInfo& latency,
+ uint32 unique_touch_event_id);
// Called when a touch timeout-affecting bit has changed, in turn toggling the
// touch ack timeout feature of the |touch_event_queue_| as appropriate. Input

Powered by Google App Engine
This is Rietveld 408576698