Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_COMMON_INPUT_INPUT_EVENT_ACK_H_ | |
| 6 #define CONTENT_COMMON_INPUT_INPUT_EVENT_ACK_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "content/common/content_export.h" | |
| 11 #include "content/common/input/did_overscroll_params.h" | |
| 12 #include "content/common/input/input_event_ack_state.h" | |
| 13 #include "third_party/WebKit/public/web/WebInputEvent.h" | |
| 14 #include "ui/events/latency_info.h" | |
| 15 | |
| 16 namespace content { | |
| 17 | |
| 18 // InputEventAck. | |
| 19 struct CONTENT_EXPORT InputEventAck { | |
| 20 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
| |
| 21 InputEventAckState state, | |
| 22 ui::LatencyInfo latency, | |
|
jdduke (slow)
2015/05/07 21:11:16
Let's pass latency by const ref.
| |
| 23 scoped_ptr<content::DidOverscrollParams> overscroll, | |
| 24 uint32 unique_touch_event_id); | |
| 25 InputEventAck(blink::WebInputEvent::Type type, | |
| 26 InputEventAckState state, | |
| 27 ui::LatencyInfo latency, | |
| 28 uint32 unique_touch_event_id); | |
| 29 InputEventAck(blink::WebInputEvent::Type type, InputEventAckState state); | |
| 30 InputEventAck(); | |
| 31 ~InputEventAck(); | |
| 32 | |
| 33 blink::WebInputEvent::Type type; | |
| 34 InputEventAckState state; | |
| 35 ui::LatencyInfo latency; | |
| 36 scoped_ptr<content::DidOverscrollParams> overscroll; | |
| 37 uint32 unique_touch_event_id; | |
| 38 }; | |
| 39 | |
| 40 } // namespace content | |
| 41 | |
| 42 #endif // CONTENT_COMMON_INPUT_INPUT_EVENT_ACK_H_ | |
| OLD | NEW |