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

Unified Diff: third_party/WebKit/Source/modules/gamepad/GamepadList.cpp

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
Index: third_party/WebKit/Source/modules/gamepad/GamepadList.cpp
diff --git a/third_party/WebKit/Source/modules/gamepad/GamepadList.cpp b/third_party/WebKit/Source/modules/gamepad/GamepadList.cpp
index 732b60a4a2dc5b0f39984d7a32fb9ff24a4e8013..5e358288e99eb5e8cc001d817d77ee9d4b6e3a70 100644
--- a/third_party/WebKit/Source/modules/gamepad/GamepadList.cpp
+++ b/third_party/WebKit/Source/modules/gamepad/GamepadList.cpp
@@ -30,7 +30,7 @@ namespace blink {
GamepadList::GamepadList() {}
void GamepadList::Set(unsigned index, Gamepad* gamepad) {
- if (index >= WebGamepads::kItemsLengthCap)
+ if (index >= device::Gamepads::kItemsLengthCap)
return;
items_[index] = gamepad;
}
@@ -40,7 +40,7 @@ Gamepad* GamepadList::item(unsigned index) {
}
DEFINE_TRACE(GamepadList) {
- for (unsigned index = 0; index < WebGamepads::kItemsLengthCap; index++) {
+ for (unsigned index = 0; index < device::Gamepads::kItemsLengthCap; index++) {
visitor->Trace(items_[index]);
}
}
« no previous file with comments | « third_party/WebKit/Source/modules/gamepad/GamepadList.h ('k') | third_party/WebKit/Source/modules/gamepad/GamepadPose.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698