| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BROWSER_RENDERER_HOST_INPUT_RENDER_WIDGET_HOST_LATENCY_TRACKER_H
_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_RENDER_WIDGET_HOST_LATENCY_TRACKER_H
_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_RENDER_WIDGET_HOST_LATENCY_TRACKER_H
_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_RENDER_WIDGET_HOST_LATENCY_TRACKER_H
_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 const ui::LatencyInfo::LatencyComponent& end_component) override; | 81 const ui::LatencyInfo::LatencyComponent& end_component) override; |
| 82 | 82 |
| 83 // ui::LatencyTracker: | 83 // ui::LatencyTracker: |
| 84 void ReportUkmScrollLatency( | 84 void ReportUkmScrollLatency( |
| 85 const std::string& event_name, | 85 const std::string& event_name, |
| 86 const std::string& metric_name, | 86 const std::string& metric_name, |
| 87 const ui::LatencyInfo::LatencyComponent& start_component, | 87 const ui::LatencyInfo::LatencyComponent& start_component, |
| 88 const ui::LatencyInfo::LatencyComponent& end_component) override; | 88 const ui::LatencyInfo::LatencyComponent& end_component) override; |
| 89 | 89 |
| 90 ukm::SourceId ukm_source_id_; | 90 ukm::SourceId ukm_source_id_; |
| 91 int64_t last_event_id_; | 91 |
| 92 int64_t latency_component_id_; | 92 int64_t latency_component_id_; |
| 93 float device_scale_factor_; | 93 float device_scale_factor_; |
| 94 bool has_seen_first_gesture_scroll_update_; | 94 bool has_seen_first_gesture_scroll_update_; |
| 95 // Whether the current stream of touch events includes more than one active | 95 // Whether the current stream of touch events includes more than one active |
| 96 // touch point. This is set in OnInputEvent, and cleared in OnInputEventAck. | 96 // touch point. This is set in OnInputEvent, and cleared in OnInputEventAck. |
| 97 bool active_multi_finger_gesture_; | 97 bool active_multi_finger_gesture_; |
| 98 // Whether the touch start for the current stream of touch events had its | 98 // Whether the touch start for the current stream of touch events had its |
| 99 // default action prevented. Only valid for single finger gestures. | 99 // default action prevented. Only valid for single finger gestures. |
| 100 bool touch_start_default_prevented_; | 100 bool touch_start_default_prevented_; |
| 101 | 101 |
| 102 RenderWidgetHostDelegate* render_widget_host_delegate_; | 102 RenderWidgetHostDelegate* render_widget_host_delegate_; |
| 103 | 103 |
| 104 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostLatencyTracker); | 104 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostLatencyTracker); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 } // namespace content | 107 } // namespace content |
| 108 | 108 |
| 109 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_RENDER_WIDGET_HOST_LATENCY_TRACKE
R_H_ | 109 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_RENDER_WIDGET_HOST_LATENCY_TRACKE
R_H_ |
| OLD | NEW |