Index: Source/modules/gamepad/GamepadDispatcher.cpp |
diff --git a/Source/modules/gamepad/GamepadDispatcher.cpp b/Source/modules/gamepad/GamepadDispatcher.cpp |
index 0dea444b7a4a5785e900a1d629fcb3e1441d0efa..8a626789dc6e6a536a468060245a8e9e6a4f311d 100644 |
--- a/Source/modules/gamepad/GamepadDispatcher.cpp |
+++ b/Source/modules/gamepad/GamepadDispatcher.cpp |
@@ -17,9 +17,9 @@ GamepadDispatcher& GamepadDispatcher::instance() |
return gamepadDispatcher; |
} |
-void GamepadDispatcher::sampleGamepads(blink::WebGamepads& gamepads) |
+void GamepadDispatcher::sampleGamepads(WebGamepads& gamepads) |
{ |
- blink::Platform::current()->sampleGamepads(gamepads); |
+ Platform::current()->sampleGamepads(gamepads); |
} |
GamepadDispatcher::GamepadDispatcher() |
@@ -30,19 +30,19 @@ GamepadDispatcher::~GamepadDispatcher() |
{ |
} |
-void GamepadDispatcher::didConnectGamepad(unsigned index, const blink::WebGamepad& gamepad) |
+void GamepadDispatcher::didConnectGamepad(unsigned index, const WebGamepad& gamepad) |
{ |
dispatchDidConnectOrDisconnectGamepad(index, gamepad, true); |
} |
-void GamepadDispatcher::didDisconnectGamepad(unsigned index, const blink::WebGamepad& gamepad) |
+void GamepadDispatcher::didDisconnectGamepad(unsigned index, const WebGamepad& gamepad) |
{ |
dispatchDidConnectOrDisconnectGamepad(index, gamepad, false); |
} |
-void GamepadDispatcher::dispatchDidConnectOrDisconnectGamepad(unsigned index, const blink::WebGamepad& gamepad, bool connected) |
+void GamepadDispatcher::dispatchDidConnectOrDisconnectGamepad(unsigned index, const WebGamepad& gamepad, bool connected) |
{ |
- ASSERT(index < blink::WebGamepads::itemsLengthCap); |
+ ASSERT(index < WebGamepads::itemsLengthCap); |
ASSERT(connected == gamepad.connected); |
m_latestChange.pad = gamepad; |
@@ -52,12 +52,12 @@ void GamepadDispatcher::dispatchDidConnectOrDisconnectGamepad(unsigned index, co |
void GamepadDispatcher::startListening() |
{ |
- blink::Platform::current()->startListening(WebPlatformEventGamepad, this); |
+ Platform::current()->startListening(WebPlatformEventGamepad, this); |
} |
void GamepadDispatcher::stopListening() |
{ |
- blink::Platform::current()->stopListening(WebPlatformEventGamepad); |
+ Platform::current()->stopListening(WebPlatformEventGamepad); |
} |
} // namespace blink |