summaryrefslogtreecommitdiff
path: root/chromium/content/common/input/input_event.cc
blob: 4e11e69a36a1f9486856ee14040bc54724d07825 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2013 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.h"

#include "ui/events/blink/web_input_event_traits.h"

namespace content {

InputEvent::InputEvent() {}

InputEvent::InputEvent(ui::WebScopedInputEvent event,
                       const ui::LatencyInfo& info)
    : web_event(std::move(event)), latency_info(info) {}

InputEvent::InputEvent(const blink::WebInputEvent& web_event,
                       const ui::LatencyInfo& latency_info)
    : web_event(web_event.Clone()), latency_info(latency_info) {}

InputEvent::~InputEvent() {}

}  // namespace content