| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 // A delegate is used to get the url to be stored in Rappor Sample. | 72 // A delegate is used to get the url to be stored in Rappor Sample. |
| 73 // If delegate is null no Rappor sample will be reported. | 73 // If delegate is null no Rappor sample will be reported. |
| 74 void SetDelegate(RenderWidgetHostDelegate*); | 74 void SetDelegate(RenderWidgetHostDelegate*); |
| 75 | 75 |
| 76 private: | 76 private: |
| 77 int64_t last_event_id_; | 77 int64_t last_event_id_; |
| 78 int64_t latency_component_id_; | 78 int64_t latency_component_id_; |
| 79 float device_scale_factor_; | 79 float device_scale_factor_; |
| 80 bool has_seen_first_gesture_scroll_update_; | 80 bool has_seen_first_gesture_scroll_update_; |
| 81 // Whether the current stream of touch events has ever included more than one | 81 // Whether the current stream of touch events includes more than one active |
| 82 // touch point. | 82 // touch point. This is set in OnInputEvent, and cleared in OnInputEventAck. |
| 83 bool multi_finger_gesture_; | 83 bool active_multi_finger_gesture_; |
| 84 // Whether the touch start for the current stream of touch events had its | 84 // Whether the touch start for the current stream of touch events had its |
| 85 // default action prevented. Only valid for single finger gestures. | 85 // default action prevented. Only valid for single finger gestures. |
| 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 |