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

Unified Diff: content/common/input/web_input_event_traits.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 side-by-side diff with in-line comments
Download patch
Index: content/common/input/web_input_event_traits.h
diff --git a/content/common/input/web_input_event_traits.h b/content/common/input/web_input_event_traits.h
index 2e5a20edf435c05b5e71e6c7e243766b0cee2058..2b5733180f7dfd7fb144729c220b391c0902924e 100644
--- a/content/common/input/web_input_event_traits.h
+++ b/content/common/input/web_input_event_traits.h
@@ -8,8 +8,12 @@
#include <string>
#include "base/basictypes.h"
+#include "content/common/input/did_overscroll_params.h"
+#include "content/common/input/input_event_ack_state.h"
#include "content/common/input/scoped_web_input_event.h"
+#include "ipc/ipc_message.h"
#include "third_party/WebKit/public/web/WebInputEvent.h"
+#include "ui/events/latency_info.h"
namespace content {
@@ -25,7 +29,16 @@ class CONTENT_EXPORT WebInputEventTraits {
const blink::WebInputEvent& event);
static void Coalesce(const blink::WebInputEvent& event_to_coalesce,
blink::WebInputEvent* event);
- static bool IgnoresAckDisposition(const blink::WebInputEvent& event);
+ static bool WillReceiveAckFromRenderer(const blink::WebInputEvent& event);
+
+ // Send AsyncTouchEvent_ACK for async touch moves, and InputEvent_ACK for
+ // all other types of events which needs an ack from render.
+ static scoped_ptr<IPC::Message> CreateAckIfNecessary(
+ const blink::WebInputEvent& event,
+ const content::InputEventAckState ack_state,
+ const ui::LatencyInfo& latency_info,
+ scoped_ptr<DidOverscrollParams> overscroll_params,
+ int routing_id);
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698