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

Unified Diff: device/gamepad/gamepad_user_gesture.cc

Issue 2808093006: [Device Service] Move Gamepad Blink headers to be part of the Gamepad client library (Closed)
Patch Set: rebase and address comments Created 3 years, 8 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/public/cpp/BUILD.gn » ('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/device/gamepad/gamepad_user_gesture.cc b/device/gamepad/gamepad_user_gesture.cc
index 3307bbdb2bb730681d867cb94dbeb8b824d99950..b4da5e099c46d810845a5f9f3ac63e3fbb5ddbf2 100644
--- a/device/gamepad/gamepad_user_gesture.cc
+++ b/device/gamepad/gamepad_user_gesture.cc
@@ -8,7 +8,7 @@
#include <algorithm>
-#include "third_party/WebKit/public/platform/WebGamepads.h"
+#include "device/gamepad/public/cpp/gamepads.h"
namespace {
// A big enough deadzone to detect accidental presses.
@@ -17,9 +17,9 @@ const float kAxisMoveAmountThreshold = 0.5;
namespace device {
-bool GamepadsHaveUserGesture(const blink::WebGamepads& gamepads) {
- for (unsigned int i = 0; i < blink::WebGamepads::kItemsLengthCap; i++) {
- const blink::WebGamepad& pad = gamepads.items[i];
+bool GamepadsHaveUserGesture(const Gamepads& gamepads) {
+ for (unsigned int i = 0; i < Gamepads::kItemsLengthCap; i++) {
+ const Gamepad& pad = gamepads.items[i];
// If the device is physically connected, then check the buttons and axes
// to see if there is currently an intentional user action.
« no previous file with comments | « device/gamepad/gamepad_user_gesture.h ('k') | device/gamepad/public/cpp/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698