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

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

Issue 464353002: Cleanup blink:: prefix usage in Source/core/modules/[battery/*.cpp to indexeddb/*.cpp] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 4 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 | « Source/modules/gamepad/GamepadList.cpp ('k') | Source/modules/gamepad/WebKitGamepad.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/gamepad/NavigatorGamepad.cpp
diff --git a/Source/modules/gamepad/NavigatorGamepad.cpp b/Source/modules/gamepad/NavigatorGamepad.cpp
index 5cad270d8bac96c0f58b97c2d77eafe09c88f7d0..a6627256e2ed276552551bd68c2ecfe8c020ccf2 100644
--- a/Source/modules/gamepad/NavigatorGamepad.cpp
+++ b/Source/modules/gamepad/NavigatorGamepad.cpp
@@ -40,7 +40,7 @@
namespace blink {
template<typename T>
-static void sampleGamepad(unsigned index, T& gamepad, const blink::WebGamepad& webGamepad)
+static void sampleGamepad(unsigned index, T& gamepad, const WebGamepad& webGamepad)
{
gamepad.setId(webGamepad.id);
gamepad.setIndex(index);
@@ -54,12 +54,12 @@ static void sampleGamepad(unsigned index, T& gamepad, const blink::WebGamepad& w
template<typename GamepadType, typename ListType>
static void sampleGamepads(ListType* into)
{
- blink::WebGamepads gamepads;
+ WebGamepads gamepads;
GamepadDispatcher::instance().sampleGamepads(gamepads);
- for (unsigned i = 0; i < blink::WebGamepads::itemsLengthCap; ++i) {
- blink::WebGamepad& webGamepad = gamepads.items[i];
+ for (unsigned i = 0; i < WebGamepads::itemsLengthCap; ++i) {
+ WebGamepad& webGamepad = gamepads.items[i];
if (i < gamepads.length && webGamepad.connected) {
GamepadType* gamepad = into->item(i);
if (!gamepad)
@@ -271,7 +271,7 @@ void NavigatorGamepad::pageVisibilityChanged()
GamepadList* newGamepads = m_gamepads.get();
ASSERT(newGamepads);
- for (unsigned i = 0; i < blink::WebGamepads::itemsLengthCap; ++i) {
+ for (unsigned i = 0; i < WebGamepads::itemsLengthCap; ++i) {
Gamepad* oldGamepad = oldGamepads ? oldGamepads->item(i) : 0;
Gamepad* newGamepad = newGamepads->item(i);
bool oldWasConnected = oldGamepad && oldGamepad->connected();
« no previous file with comments | « Source/modules/gamepad/GamepadList.cpp ('k') | Source/modules/gamepad/WebKitGamepad.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698