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

Unified Diff: device/gamepad/gamepad_user_gesture.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_user_gesture.h ('k') | device/gamepad/raw_input_data_fetcher_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/gamepad/gamepad_user_gesture.cc
diff --git a/content/common/gamepad_user_gesture.cc b/device/gamepad/gamepad_user_gesture.cc
similarity index 92%
rename from content/common/gamepad_user_gesture.cc
rename to device/gamepad/gamepad_user_gesture.cc
index 54220d0e83982ebe7b37c76ff8fb807a7c513f4f..4442faeae744f8b91d742386603a1bfc25b56f42 100644
--- a/content/common/gamepad_user_gesture.cc
+++ b/device/gamepad/gamepad_user_gesture.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/common/gamepad_user_gesture.h"
+#include "device/gamepad/gamepad_user_gesture.h"
#include <math.h>
@@ -15,7 +15,7 @@ namespace {
const float kAxisMoveAmountThreshold = 0.5;
}
-namespace content {
+namespace device {
bool GamepadsHaveUserGesture(const blink::WebGamepads& gamepads) {
for (unsigned int i = 0; i < blink::WebGamepads::itemsLengthCap; i++) {
@@ -40,4 +40,4 @@ bool GamepadsHaveUserGesture(const blink::WebGamepads& gamepads) {
return false;
}
-} // namespace content
+} // namespace device
« no previous file with comments | « device/gamepad/gamepad_user_gesture.h ('k') | device/gamepad/raw_input_data_fetcher_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698