summaryrefslogtreecommitdiff
path: root/chromium/content/common/input/input_event_ack.cc
blob: c7af9f85d25479954818e8464968f1bb8edcb0cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// 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.

#include "content/common/input/input_event_ack.h"

#include <utility>

namespace content {

InputEventAck::InputEventAck(
    blink::WebInputEvent::Type type,
    InputEventAckState state,
    const ui::LatencyInfo& latency,
    std::unique_ptr<ui::DidOverscrollParams> overscroll,
    uint32_t unique_touch_event_id)
    : type(type),
      state(state),
      latency(latency),
      overscroll(std::move(overscroll)),
      unique_touch_event_id(unique_touch_event_id) {}

InputEventAck::InputEventAck(blink::WebInputEvent::Type type,
                             InputEventAckState state,
                             const ui::LatencyInfo& latency,
                             uint32_t unique_touch_event_id)
    : InputEventAck(type, state, latency, nullptr, unique_touch_event_id) {}

InputEventAck::InputEventAck(blink::WebInputEvent::Type type,
                             InputEventAckState state,
                             uint32_t unique_touch_event_id)
    : InputEventAck(type, state, ui::LatencyInfo(), unique_touch_event_id) {}

InputEventAck::InputEventAck(blink::WebInputEvent::Type type,
                             InputEventAckState state)
    : InputEventAck(type, state, 0) {
}

InputEventAck::InputEventAck()
    : InputEventAck(blink::WebInputEvent::Undefined,
                    INPUT_EVENT_ACK_STATE_UNKNOWN) {
}

InputEventAck::~InputEventAck() {
}

}  // namespace content