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

Side by Side Diff: ui/latency/mojo/latency_info.mojom

Issue 2756893002: Add Keyboard Latency UMA Metrics. (Closed)
Patch Set: Restrict to RawKeyDown and Char events on Android & Mac Created 3 years, 7 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 | « ui/latency/latency_tracker.cc ('k') | ui/latency/mojo/latency_info_struct_traits.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 module ui.mojom; 5 module ui.mojom;
6 6
7 import "mojo/common/time.mojom"; 7 import "mojo/common/time.mojom";
8 import "ui/gfx/geometry/mojo/geometry.mojom"; 8 import "ui/gfx/geometry/mojo/geometry.mojom";
9 9
10 enum LatencyComponentType { 10 enum LatencyComponentType {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // but the swap failed. 72 // but the swap failed.
73 INPUT_EVENT_LATENCY_TERMINATED_SWAP_FAILED_COMPONENT, 73 INPUT_EVENT_LATENCY_TERMINATED_SWAP_FAILED_COMPONENT,
74 LATENCY_COMPONENT_TYPE_LAST = 74 LATENCY_COMPONENT_TYPE_LAST =
75 INPUT_EVENT_LATENCY_TERMINATED_SWAP_FAILED_COMPONENT, 75 INPUT_EVENT_LATENCY_TERMINATED_SWAP_FAILED_COMPONENT,
76 }; 76 };
77 77
78 enum SourceEventType { 78 enum SourceEventType {
79 UNKNOWN, 79 UNKNOWN,
80 WHEEL, 80 WHEEL,
81 TOUCH, 81 TOUCH,
82 KEY_PRESS,
82 OTHER, 83 OTHER,
83 SOURCE_EVENT_TYPE_LAST = OTHER, 84 SOURCE_EVENT_TYPE_LAST = OTHER,
84 }; 85 };
85 86
86 struct LatencyComponentId { 87 struct LatencyComponentId {
87 LatencyComponentType type; 88 LatencyComponentType type;
88 int64 id; 89 int64 id;
89 }; 90 };
90 91
91 struct LatencyComponent { 92 struct LatencyComponent {
(...skipping 18 matching lines...) Expand all
110 111
111 // See ui/latency/latency_info.h 112 // See ui/latency/latency_info.h
112 struct LatencyInfo { 113 struct LatencyInfo {
113 string trace_name; 114 string trace_name;
114 array<LatencyComponentPair> latency_components; 115 array<LatencyComponentPair> latency_components;
115 int64 trace_id; 116 int64 trace_id;
116 bool coalesced; 117 bool coalesced;
117 bool terminated; 118 bool terminated;
118 SourceEventType source_event_type; 119 SourceEventType source_event_type;
119 }; 120 };
OLDNEW
« no previous file with comments | « ui/latency/latency_tracker.cc ('k') | ui/latency/mojo/latency_info_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698