summaryrefslogtreecommitdiff
path: root/chromium/content/common/input/input_event.h
blob: fd10e4ede9254599502b5925aae4765625113d6e (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
// 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.

#ifndef CONTENT_COMMON_INPUT_INPUT_EVENT_H_
#define CONTENT_COMMON_INPUT_INPUT_EVENT_H_

#include <memory>

#include "base/macros.h"
#include "content/common/content_export.h"
#include "ui/events/blink/web_input_event_traits.h"
#include "ui/latency/latency_info.h"

namespace blink {
class WebInputEvent;
}

namespace content {

// An content-specific wrapper for WebInputEvents and associated metadata.
class CONTENT_EXPORT InputEvent {
 public:
  InputEvent();
  InputEvent(const blink::WebInputEvent& web_event,
             const ui::LatencyInfo& latency_info);
  ~InputEvent();

  ui::WebScopedInputEvent web_event;
  ui::LatencyInfo latency_info;

 private:
  DISALLOW_COPY_AND_ASSIGN(InputEvent);
};

}  // namespace content

#endif  // CONTENT_COMMON_INPUT_INPUT_EVENT_H_