| 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> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "content/browser/renderer_host/event_with_latency_info.h" | 13 #include "content/browser/renderer_host/event_with_latency_info.h" |
| 14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
| 15 #include "content/common/input/input_event_ack_state.h" | 15 #include "content/common/input/input_event_ack_state.h" |
| 16 #include "ui/events/latency_info.h" | 16 #include "ui/latency/latency_info.h" |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 | 19 |
| 20 class RenderWidgetHostDelegate; | 20 class RenderWidgetHostDelegate; |
| 21 | 21 |
| 22 // Utility class for tracking the latency of events passing through | 22 // Utility class for tracking the latency of events passing through |
| 23 // a given RenderWidgetHost. | 23 // a given RenderWidgetHost. |
| 24 class CONTENT_EXPORT RenderWidgetHostLatencyTracker { | 24 class CONTENT_EXPORT RenderWidgetHostLatencyTracker { |
| 25 public: | 25 public: |
| 26 explicit RenderWidgetHostLatencyTracker(); | 26 explicit RenderWidgetHostLatencyTracker(); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 bool touch_start_default_prevented_; | 86 bool touch_start_default_prevented_; |
| 87 | 87 |
| 88 RenderWidgetHostDelegate* render_widget_host_delegate_; | 88 RenderWidgetHostDelegate* render_widget_host_delegate_; |
| 89 | 89 |
| 90 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostLatencyTracker); | 90 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostLatencyTracker); |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } // namespace content | 93 } // namespace content |
| 94 | 94 |
| 95 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_RENDER_WIDGET_HOST_LATENCY_TRACKE
R_H_ | 95 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_RENDER_WIDGET_HOST_LATENCY_TRACKE
R_H_ |
| OLD | NEW |