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 #include "content/common/input/input_event_ack.h" | |
6 | |
7 namespace content { | |
8 | |
9 InputEventAck::InputEventAck( | |
10 blink::WebInputEvent::Type type, | |
11 InputEventAckState state, | |
12 const ui::LatencyInfo& latency, | |
13 scoped_ptr<content::DidOverscrollParams> overscroll, | |
14 uint32 unique_touch_event_id) | |
15 : type(type), | |
16 state(state), | |
17 latency(latency), | |
18 overscroll(overscroll.Pass()), | |
19 unique_touch_event_id(unique_touch_event_id) { | |
20 } | |
21 | |
22 InputEventAck::InputEventAck(blink::WebInputEvent::Type type, | |
23 InputEventAckState state, | |
24 const ui::LatencyInfo& latency, | |
25 uint32 unique_touch_event_id) | |
26 : InputEventAck(type, state, latency, nullptr, unique_touch_event_id) { | |
27 } | |
28 | |
29 InputEventAck::InputEventAck(blink::WebInputEvent::Type type, | |
30 InputEventAckState state) | |
31 : InputEventAck(type, state, ui::LatencyInfo(), 0) { | |
32 } | |
33 | |
34 InputEventAck::InputEventAck() | |
35 : unique_touch_event_id(0) { | |
jdduke (slow)
2015/05/08 21:30:49
We should also initialize type (to WebInputEvent::
lanwei
2015/05/11 19:27:56
Done.
| |
36 } | |
37 | |
38 InputEventAck::~InputEventAck() { | |
39 } | |
40 | |
41 } // namespace content | |
OLD | NEW |