Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Unified Diff: device/gamepad/gamepad_data_fetcher.cc

Issue 2081583002: Migrating majority of gamepad from content/browser/ to device/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final tweaks Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/gamepad/gamepad_data_fetcher.h ('k') | device/gamepad/gamepad_export.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « device/gamepad/gamepad_data_fetcher.h ('k') | device/gamepad/gamepad_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698