Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: content/common/input/event_with_latency_info.h

Issue 2783973002: Moving LatencyInfo into a separate component. (Closed)
Patch Set: Rebase again Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/input/input_event.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_EVENT_WITH_LATENCY_INFO_H_ 5 #ifndef CONTENT_COMMON_INPUT_EVENT_WITH_LATENCY_INFO_H_
6 #define CONTENT_COMMON_INPUT_EVENT_WITH_LATENCY_INFO_H_ 6 #define CONTENT_COMMON_INPUT_EVENT_WITH_LATENCY_INFO_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "third_party/WebKit/public/platform/WebGestureEvent.h" 11 #include "third_party/WebKit/public/platform/WebGestureEvent.h"
12 #include "third_party/WebKit/public/platform/WebMouseWheelEvent.h" 12 #include "third_party/WebKit/public/platform/WebMouseWheelEvent.h"
13 #include "third_party/WebKit/public/platform/WebTouchEvent.h" 13 #include "third_party/WebKit/public/platform/WebTouchEvent.h"
14 #include "ui/events/blink/blink_event_util.h" 14 #include "ui/events/blink/blink_event_util.h"
15 #include "ui/events/blink/web_input_event_traits.h" 15 #include "ui/events/blink/web_input_event_traits.h"
16 #include "ui/events/latency_info.h" 16 #include "ui/latency/latency_info.h"
17 17
18 namespace content { 18 namespace content {
19 19
20 template <typename T> 20 template <typename T>
21 class EventWithLatencyInfo { 21 class EventWithLatencyInfo {
22 public: 22 public:
23 T event; 23 T event;
24 mutable ui::LatencyInfo latency; 24 mutable ui::LatencyInfo latency;
25 25
26 explicit EventWithLatencyInfo(const T& e) : event(e) {} 26 explicit EventWithLatencyInfo(const T& e) : event(e) {}
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 typedef EventWithLatencyInfo<blink::WebMouseWheelEvent> 71 typedef EventWithLatencyInfo<blink::WebMouseWheelEvent>
72 MouseWheelEventWithLatencyInfo; 72 MouseWheelEventWithLatencyInfo;
73 typedef EventWithLatencyInfo<blink::WebMouseEvent> 73 typedef EventWithLatencyInfo<blink::WebMouseEvent>
74 MouseEventWithLatencyInfo; 74 MouseEventWithLatencyInfo;
75 typedef EventWithLatencyInfo<blink::WebTouchEvent> 75 typedef EventWithLatencyInfo<blink::WebTouchEvent>
76 TouchEventWithLatencyInfo; 76 TouchEventWithLatencyInfo;
77 77
78 } // namespace content 78 } // namespace content
79 79
80 #endif // CONTENT_COMMON_INPUT_EVENT_WITH_LATENCY_INFO_H_ 80 #endif // CONTENT_COMMON_INPUT_EVENT_WITH_LATENCY_INFO_H_
OLDNEW
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/input/input_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698