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

Unified Diff: content/common/input/input_event_ack.cc

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/common/input/input_event_ack.cc
diff --git a/content/common/input/input_event_ack.cc b/content/common/input/input_event_ack.cc
new file mode 100644
index 0000000000000000000000000000000000000000..08d5a795810de072e3c1df36734006125ea96188
--- /dev/null
+++ b/content/common/input/input_event_ack.cc
@@ -0,0 +1,48 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/common/input/input_event_ack.h"
+
+namespace content {
+
+InputEventAck::InputEventAck(
+ blink::WebInputEvent::Type type,
+ InputEventAckState state,
+ const ui::LatencyInfo& latency,
+ scoped_ptr<content::DidOverscrollParams> overscroll,
+ uint32 unique_touch_event_id)
+ : type(type),
+ state(state),
+ latency(latency),
+ overscroll(overscroll.Pass()),
+ unique_touch_event_id(unique_touch_event_id) {
+}
+
+InputEventAck::InputEventAck(blink::WebInputEvent::Type type,
+ InputEventAckState state,
+ const ui::LatencyInfo& latency,
+ uint32 unique_touch_event_id)
+ : InputEventAck(type, state, latency, nullptr, unique_touch_event_id) {
+}
+
+InputEventAck::InputEventAck(blink::WebInputEvent::Type type,
+ InputEventAckState state,
+ uint32 unique_touch_event_id)
+ : InputEventAck(type, state, ui::LatencyInfo(), unique_touch_event_id) {
+}
+
+InputEventAck::InputEventAck(blink::WebInputEvent::Type type,
+ InputEventAckState state)
+ : InputEventAck(type, state, 0) {
+}
+
+InputEventAck::InputEventAck()
+ : InputEventAck(blink::WebInputEvent::Undefined,
+ INPUT_EVENT_ACK_STATE_UNKNOWN) {
+}
+
+InputEventAck::~InputEventAck() {
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698