| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }; |
| OLD | NEW |