Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / content / common / input / input_event_ack.cc
blob5b619113b54a8a001f38273489baca7e9a11103c
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.
5 #include "content/common/input/input_event_ack.h"
7 namespace content {
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) {
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) {
29 InputEventAck::InputEventAck(blink::WebInputEvent::Type type,
30 InputEventAckState state,
31 uint32 unique_touch_event_id)
32 : InputEventAck(type, state, ui::LatencyInfo(), unique_touch_event_id) {
35 InputEventAck::InputEventAck(blink::WebInputEvent::Type type,
36 InputEventAckState state)
37 : InputEventAck(type, state, 0) {
40 InputEventAck::InputEventAck()
41 : InputEventAck(blink::WebInputEvent::Undefined,
42 INPUT_EVENT_ACK_STATE_UNKNOWN) {
45 InputEventAck::~InputEventAck() {
48 } // namespace content