OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "components/scheduler/renderer/user_model.h" | 5 #include "platform/scheduler/renderer/user_model.h" |
6 | 6 |
7 #include "base/metrics/histogram_macros.h" | 7 #include "base/metrics/histogram_macros.h" |
8 | 8 |
| 9 namespace blink { |
9 namespace scheduler { | 10 namespace scheduler { |
10 | 11 |
11 namespace { | 12 namespace { |
12 // This enum is used to back a histogram, and should therefore be treated as | 13 // This enum is used to back a histogram, and should therefore be treated as |
13 // append-only. | 14 // append-only. |
14 enum GesturePredictionResult { | 15 enum GesturePredictionResult { |
15 GESTURE_OCCURED_WAS_PREDICTED = 0, | 16 GESTURE_OCCURED_WAS_PREDICTED = 0, |
16 GESTURE_OCCURED_BUT_NOT_PREDICTED = 1, | 17 GESTURE_OCCURED_BUT_NOT_PREDICTED = 1, |
17 GESTURE_PREDICTED_BUT_DID_NOT_OCCUR = 2, | 18 GESTURE_PREDICTED_BUT_DID_NOT_OCCUR = 2, |
18 GESTURE_PREDICTION_RESULT_COUNT = 3 | 19 GESTURE_PREDICTION_RESULT_COUNT = 3 |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 (last_gesture_expected_start_time_ - base::TimeTicks()) | 214 (last_gesture_expected_start_time_ - base::TimeTicks()) |
214 .InMillisecondsF()); | 215 .InMillisecondsF()); |
215 state->SetDouble("last_reset_time", | 216 state->SetDouble("last_reset_time", |
216 (last_reset_time_ - base::TimeTicks()).InMillisecondsF()); | 217 (last_reset_time_ - base::TimeTicks()).InMillisecondsF()); |
217 state->SetBoolean("is_gesture_expected", is_gesture_expected_); | 218 state->SetBoolean("is_gesture_expected", is_gesture_expected_); |
218 state->SetBoolean("is_gesture_active", is_gesture_active_); | 219 state->SetBoolean("is_gesture_active", is_gesture_active_); |
219 state->EndDictionary(); | 220 state->EndDictionary(); |
220 } | 221 } |
221 | 222 |
222 } // namespace scheduler | 223 } // namespace scheduler |
| 224 } // namespace blink |
OLD | NEW |