| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "ui/events/latency_info.h" | 5 #include "ui/latency/latency_info.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <utility> | 11 #include <utility> |
| 12 | 12 |
| 13 #include "base/json/json_writer.h" | 13 #include "base/json/json_writer.h" |
| 14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 } | 366 } |
| 367 | 367 |
| 368 bool LatencyInfo::AddInputCoordinate(const gfx::PointF& input_coordinate) { | 368 bool LatencyInfo::AddInputCoordinate(const gfx::PointF& input_coordinate) { |
| 369 if (input_coordinates_size_ >= kMaxInputCoordinates) | 369 if (input_coordinates_size_ >= kMaxInputCoordinates) |
| 370 return false; | 370 return false; |
| 371 input_coordinates_[input_coordinates_size_++] = input_coordinate; | 371 input_coordinates_[input_coordinates_size_++] = input_coordinate; |
| 372 return true; | 372 return true; |
| 373 } | 373 } |
| 374 | 374 |
| 375 } // namespace ui | 375 } // namespace ui |
| OLD | NEW |