| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_COMMON_INPUT_INPUT_EVENT_ACK_H_ | 5 #ifndef CONTENT_COMMON_INPUT_INPUT_EVENT_ACK_H_ |
| 6 #define CONTENT_COMMON_INPUT_INPUT_EVENT_ACK_H_ | 6 #define CONTENT_COMMON_INPUT_INPUT_EVENT_ACK_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 13 #include "content/common/input/input_event_ack_source.h" |
| 13 #include "content/common/input/input_event_ack_state.h" | 14 #include "content/common/input/input_event_ack_state.h" |
| 14 #include "third_party/WebKit/public/web/WebInputEvent.h" | 15 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 15 #include "ui/events/blink/did_overscroll_params.h" | 16 #include "ui/events/blink/did_overscroll_params.h" |
| 16 #include "ui/events/latency_info.h" | 17 #include "ui/events/latency_info.h" |
| 17 | 18 |
| 18 namespace content { | 19 namespace content { |
| 19 | 20 |
| 20 // InputEventAck. | 21 // InputEventAck. |
| 21 struct CONTENT_EXPORT InputEventAck { | 22 struct CONTENT_EXPORT InputEventAck { |
| 22 InputEventAck(blink::WebInputEvent::Type type, | 23 InputEventAck(InputEventAckSource source, |
| 24 blink::WebInputEvent::Type type, |
| 23 InputEventAckState state, | 25 InputEventAckState state, |
| 24 const ui::LatencyInfo& latency, | 26 const ui::LatencyInfo& latency, |
| 25 std::unique_ptr<ui::DidOverscrollParams> overscroll, | 27 std::unique_ptr<ui::DidOverscrollParams> overscroll, |
| 26 uint32_t unique_touch_event_id); | 28 uint32_t unique_touch_event_id); |
| 27 InputEventAck(blink::WebInputEvent::Type type, | 29 InputEventAck(InputEventAckSource source, |
| 30 blink::WebInputEvent::Type type, |
| 28 InputEventAckState state, | 31 InputEventAckState state, |
| 29 const ui::LatencyInfo& latency, | 32 const ui::LatencyInfo& latency, |
| 30 uint32_t unique_touch_event_id); | 33 uint32_t unique_touch_event_id); |
| 31 InputEventAck(blink::WebInputEvent::Type type, | 34 InputEventAck(InputEventAckSource source, |
| 35 blink::WebInputEvent::Type type, |
| 32 InputEventAckState state, | 36 InputEventAckState state, |
| 33 uint32_t unique_touch_event_id); | 37 uint32_t unique_touch_event_id); |
| 34 InputEventAck(blink::WebInputEvent::Type type, InputEventAckState state); | 38 InputEventAck(InputEventAckSource source, |
| 39 blink::WebInputEvent::Type type, |
| 40 InputEventAckState state); |
| 35 InputEventAck(); | 41 InputEventAck(); |
| 36 ~InputEventAck(); | 42 ~InputEventAck(); |
| 37 | 43 |
| 44 InputEventAckSource source; |
| 38 blink::WebInputEvent::Type type; | 45 blink::WebInputEvent::Type type; |
| 39 InputEventAckState state; | 46 InputEventAckState state; |
| 40 ui::LatencyInfo latency; | 47 ui::LatencyInfo latency; |
| 41 std::unique_ptr<ui::DidOverscrollParams> overscroll; | 48 std::unique_ptr<ui::DidOverscrollParams> overscroll; |
| 42 uint32_t unique_touch_event_id; | 49 uint32_t unique_touch_event_id; |
| 43 }; | 50 }; |
| 44 | 51 |
| 45 } // namespace content | 52 } // namespace content |
| 46 | 53 |
| 47 #endif // CONTENT_COMMON_INPUT_INPUT_EVENT_ACK_H_ | 54 #endif // CONTENT_COMMON_INPUT_INPUT_EVENT_ACK_H_ |
| OLD | NEW |