OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <string.h> |
6 | 7 |
7 #include <cmath> | 8 #include <cmath> |
8 #include <set> | 9 #include <set> |
9 #include <vector> | 10 #include <vector> |
10 | 11 |
11 #include "base/bind.h" | 12 #include "base/bind.h" |
12 #include "base/location.h" | 13 #include "base/location.h" |
13 #include "base/logging.h" | 14 #include "base/logging.h" |
14 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
15 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 16 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 } | 321 } |
321 if (!had_gesture_before && ever_had_user_gesture_) { | 322 if (!had_gesture_before && ever_had_user_gesture_) { |
322 // Initialize pad_states_ for the first time. | 323 // Initialize pad_states_ for the first time. |
323 for (size_t i = 0; i < WebGamepads::itemsLengthCap; ++i) { | 324 for (size_t i = 0; i < WebGamepads::itemsLengthCap; ++i) { |
324 pad_states_.get()[i].SetPad(pads.items[i]); | 325 pad_states_.get()[i].SetPad(pads.items[i]); |
325 } | 326 } |
326 } | 327 } |
327 } | 328 } |
328 | 329 |
329 } // namespace content | 330 } // namespace content |
OLD | NEW |