| 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/common_custom_types.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 { |
| 11 // ---------------------------BEGIN COMPONENT------------------------------- | 11 // ---------------------------BEGIN COMPONENT------------------------------- |
| 12 // BEGIN COMPONENT is when we show the latency begin in chrome://tracing. | 12 // BEGIN COMPONENT is when we show the latency begin in chrome://tracing. |
| 13 // Timestamp when the input event is sent from RenderWidgetHost to renderer. | 13 // Timestamp when the input event is sent from RenderWidgetHost to renderer. |
| 14 INPUT_EVENT_LATENCY_BEGIN_RWH_COMPONENT, | 14 INPUT_EVENT_LATENCY_BEGIN_RWH_COMPONENT, |
| 15 // In threaded scrolling, main thread scroll listener update is async to | 15 // In threaded scrolling, main thread scroll listener update is async to |
| 16 // scroll processing in impl thread. This is the timestamp when we consider | 16 // scroll processing in impl thread. This is the timestamp when we consider |
| 17 // the main thread scroll listener update is begun. | 17 // the main thread scroll listener update is begun. |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 // See ui/events/latency_info.h | 111 // See ui/events/latency_info.h |
| 112 struct LatencyInfo { | 112 struct LatencyInfo { |
| 113 string trace_name; | 113 string trace_name; |
| 114 array<LatencyComponentPair> latency_components; | 114 array<LatencyComponentPair> latency_components; |
| 115 array<gfx.mojom.PointF> input_coordinates; | 115 array<gfx.mojom.PointF> input_coordinates; |
| 116 int64 trace_id; | 116 int64 trace_id; |
| 117 bool coalesced; | 117 bool coalesced; |
| 118 bool terminated; | 118 bool terminated; |
| 119 }; | 119 }; |
| OLD | NEW |