Chromium Code Reviews| Index: content/common/input/input_event_ack.h |
| diff --git a/content/common/input/input_event_ack.h b/content/common/input/input_event_ack.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6a3b7792f6a63b4970f3b172ea52cf161af3c72e |
| --- /dev/null |
| +++ b/content/common/input/input_event_ack.h |
| @@ -0,0 +1,42 @@ |
| +// 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. |
| + |
| +#ifndef CONTENT_COMMON_INPUT_INPUT_EVENT_ACK_H_ |
| +#define CONTENT_COMMON_INPUT_INPUT_EVENT_ACK_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "base/memory/scoped_ptr.h" |
| +#include "content/common/content_export.h" |
| +#include "content/common/input/did_overscroll_params.h" |
| +#include "content/common/input/input_event_ack_state.h" |
| +#include "third_party/WebKit/public/web/WebInputEvent.h" |
| +#include "ui/events/latency_info.h" |
| + |
| +namespace content { |
| + |
| +// InputEventAck. |
| +struct CONTENT_EXPORT InputEventAck { |
| + InputEventAck(blink::WebInputEvent::Type type, |
|
jdduke (slow)
2015/05/07 21:38:05
Dang, looks like we'll need to align this to prope
jdduke (slow)
2015/05/08 16:00:15
Per our offline discussion, I think we just need t
|
| + InputEventAckState state, |
| + ui::LatencyInfo latency, |
|
jdduke (slow)
2015/05/07 21:11:16
Let's pass latency by const ref.
|
| + scoped_ptr<content::DidOverscrollParams> overscroll, |
| + uint32 unique_touch_event_id); |
| + InputEventAck(blink::WebInputEvent::Type type, |
| + InputEventAckState state, |
| + ui::LatencyInfo latency, |
| + uint32 unique_touch_event_id); |
| + InputEventAck(blink::WebInputEvent::Type type, InputEventAckState state); |
| + InputEventAck(); |
| + ~InputEventAck(); |
| + |
| + blink::WebInputEvent::Type type; |
| + InputEventAckState state; |
| + ui::LatencyInfo latency; |
| + scoped_ptr<content::DidOverscrollParams> overscroll; |
| + uint32 unique_touch_event_id; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_COMMON_INPUT_INPUT_EVENT_ACK_H_ |