OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_COMMON_INPUT_INPUT_EVENT_H_ | 5 #ifndef CONTENT_COMMON_INPUT_INPUT_EVENT_H_ |
6 #define CONTENT_COMMON_INPUT_INPUT_EVENT_H_ | 6 #define CONTENT_COMMON_INPUT_INPUT_EVENT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "content/common/input/scoped_web_input_event.h" | 12 #include "content/common/input/scoped_web_input_event.h" |
13 #include "ui/events/latency_info.h" | 13 #include "ui/latency_info/latency_info.h" |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 class WebInputEvent; | 16 class WebInputEvent; |
17 } | 17 } |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 // An content-specific wrapper for WebInputEvents and associated metadata. | 21 // An content-specific wrapper for WebInputEvents and associated metadata. |
22 class CONTENT_EXPORT InputEvent { | 22 class CONTENT_EXPORT InputEvent { |
23 public: | 23 public: |
24 InputEvent(); | 24 InputEvent(); |
25 InputEvent(const blink::WebInputEvent& web_event, | 25 InputEvent(const blink::WebInputEvent& web_event, |
26 const ui::LatencyInfo& latency_info); | 26 const ui::LatencyInfo& latency_info); |
27 ~InputEvent(); | 27 ~InputEvent(); |
28 | 28 |
29 ScopedWebInputEvent web_event; | 29 ScopedWebInputEvent web_event; |
30 ui::LatencyInfo latency_info; | 30 ui::LatencyInfo latency_info; |
31 | 31 |
32 private: | 32 private: |
33 DISALLOW_COPY_AND_ASSIGN(InputEvent); | 33 DISALLOW_COPY_AND_ASSIGN(InputEvent); |
34 }; | 34 }; |
35 | 35 |
36 } // namespace content | 36 } // namespace content |
37 | 37 |
38 #endif // CONTENT_COMMON_INPUT_INPUT_EVENT_H_ | 38 #endif // CONTENT_COMMON_INPUT_INPUT_EVENT_H_ |
OLD | NEW |