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

Unified Diff: Source/modules/gamepad/WebKitGamepadList.cpp

Issue 806993002: Removed deprecated navigator.webkitGetGamepads. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Missed one layout test expectations update Created 6 years 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 | « Source/modules/gamepad/WebKitGamepadList.h ('k') | Source/modules/gamepad/WebKitGamepadList.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/gamepad/WebKitGamepadList.cpp
diff --git a/Source/modules/gamepad/WebKitGamepadList.cpp b/Source/modules/gamepad/WebKitGamepadList.cpp
deleted file mode 100644
index dfe4d7be41173e40b0c3674fa3b7226a01f0c1e1..0000000000000000000000000000000000000000
--- a/Source/modules/gamepad/WebKitGamepadList.cpp
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "config.h"
-#include "modules/gamepad/WebKitGamepadList.h"
-
-namespace blink {
-
-WebKitGamepadList::WebKitGamepadList()
-{
-}
-
-void WebKitGamepadList::set(unsigned index, WebKitGamepad* gamepad)
-{
- if (index >= WebGamepads::itemsLengthCap)
- return;
- m_items[index] = gamepad;
-}
-
-WebKitGamepad* WebKitGamepadList::item(unsigned index)
-{
- return index < length() ? m_items[index].get() : 0;
-}
-
-void WebKitGamepadList::trace(Visitor* visitor)
-{
- for (unsigned index = 0; index < WebGamepads::itemsLengthCap; index++) {
- visitor->trace(m_items[index]);
- }
-}
-
-} // namespace blink
« no previous file with comments | « Source/modules/gamepad/WebKitGamepadList.h ('k') | Source/modules/gamepad/WebKitGamepadList.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698