Index: device/gamepad/gamepad_data_fetcher.cc |
diff --git a/content/browser/gamepad/gamepad_data_fetcher.cc b/device/gamepad/gamepad_data_fetcher.cc |
similarity index 90% |
rename from content/browser/gamepad/gamepad_data_fetcher.cc |
rename to device/gamepad/gamepad_data_fetcher.cc |
index 891722461e58f795129954f9e4489bb901547457..749a6f3df1aef6097aa88673201c6f4ee5ab7db1 100644 |
--- a/content/browser/gamepad/gamepad_data_fetcher.cc |
+++ b/device/gamepad/gamepad_data_fetcher.cc |
@@ -2,11 +2,13 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "content/browser/gamepad/gamepad_data_fetcher.h" |
+#include "device/gamepad/gamepad_data_fetcher.h" |
#include <stddef.h> |
#include <string.h> |
+#include <cmath> |
+ |
#include "base/logging.h" |
#include "build/build_config.h" |
@@ -18,14 +20,14 @@ const float kMinAxisResetValue = 0.1f; |
} // namespace |
-namespace content { |
+namespace device { |
using blink::WebGamepad; |
using blink::WebGamepads; |
#if !defined(OS_ANDROID) |
-void GamepadDataFetcher::MapAndSanitizeGamepadData( |
- PadState* pad_state, WebGamepad* pad) { |
+void GamepadDataFetcher::MapAndSanitizeGamepadData(PadState* pad_state, |
+ WebGamepad* pad) { |
DCHECK(pad_state); |
DCHECK(pad); |
@@ -82,4 +84,4 @@ void GamepadDataFetcher::MapAndSanitizeGamepadData( |
} |
#endif |
-} // namespace content |
+} // namespace device |