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

Side by Side Diff: ui/events/latency_info.h

Issue 2756893002: Add Keyboard Latency UMA Metrics. (Closed)
Patch Set: Fix test issue 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
« ui/events/event.cc ('K') | « ui/events/event.cc ('k') | no next file » | 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 UI_EVENTS_LATENCY_INFO_H_ 5 #ifndef UI_EVENTS_LATENCY_INFO_H_
6 #define UI_EVENTS_LATENCY_INFO_H_ 6 #define UI_EVENTS_LATENCY_INFO_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // but the swap failed. 102 // but the swap failed.
103 INPUT_EVENT_LATENCY_TERMINATED_SWAP_FAILED_COMPONENT, 103 INPUT_EVENT_LATENCY_TERMINATED_SWAP_FAILED_COMPONENT,
104 LATENCY_COMPONENT_TYPE_LAST = 104 LATENCY_COMPONENT_TYPE_LAST =
105 INPUT_EVENT_LATENCY_TERMINATED_SWAP_FAILED_COMPONENT, 105 INPUT_EVENT_LATENCY_TERMINATED_SWAP_FAILED_COMPONENT,
106 }; 106 };
107 107
108 enum SourceEventType { 108 enum SourceEventType {
109 UNKNOWN, 109 UNKNOWN,
110 WHEEL, 110 WHEEL,
111 TOUCH, 111 TOUCH,
112 KEY,
112 OTHER, 113 OTHER,
113 SOURCE_EVENT_TYPE_LAST = OTHER, 114 SOURCE_EVENT_TYPE_LAST = OTHER,
114 }; 115 };
115 116
116 class EVENTS_BASE_EXPORT LatencyInfo { 117 class EVENTS_BASE_EXPORT LatencyInfo {
117 public: 118 public:
118 struct LatencyComponent { 119 struct LatencyComponent {
119 // Nondecreasing number that can be used to determine what events happened 120 // Nondecreasing number that can be used to determine what events happened
120 // in the component at the time this struct was sent on to the next 121 // in the component at the time this struct was sent on to the next
121 // component. 122 // component.
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 #if !defined(OS_IOS) 254 #if !defined(OS_IOS)
254 friend struct IPC::ParamTraits<ui::LatencyInfo>; 255 friend struct IPC::ParamTraits<ui::LatencyInfo>;
255 friend struct mojo::StructTraits<ui::mojom::LatencyInfoDataView, 256 friend struct mojo::StructTraits<ui::mojom::LatencyInfoDataView,
256 ui::LatencyInfo>; 257 ui::LatencyInfo>;
257 #endif 258 #endif
258 }; 259 };
259 260
260 } // namespace ui 261 } // namespace ui
261 262
262 #endif // UI_EVENTS_LATENCY_INFO_H_ 263 #endif // UI_EVENTS_LATENCY_INFO_H_
OLDNEW
« ui/events/event.cc ('K') | « ui/events/event.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698