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

Unified Diff: content/browser/gamepad/platform_data_fetcher_win.cc

Issue 8899017: Add gamepad data fetcher for Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fd and copy length bug fixes Created 9 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
Index: content/browser/gamepad/platform_data_fetcher_win.cc
diff --git a/content/browser/gamepad/data_fetcher_win.cc b/content/browser/gamepad/platform_data_fetcher_win.cc
similarity index 95%
rename from content/browser/gamepad/data_fetcher_win.cc
rename to content/browser/gamepad/platform_data_fetcher_win.cc
index b823f2736f1ca42b7ec045c3f314af138319ddb6..023348c2d2a18d0ad1ba8799f0d9beda90bd19a0 100644
--- a/content/browser/gamepad/data_fetcher_win.cc
+++ b/content/browser/gamepad/platform_data_fetcher_win.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/browser/gamepad/data_fetcher_win.h"
+#include "content/browser/gamepad/platform_data_fetcher_win.h"
#include "base/debug/trace_event.h"
#include "content/common/gamepad_messages.h"
@@ -78,11 +78,11 @@ bool EnableXInput() {
}
-GamepadDataFetcherWindows::GamepadDataFetcherWindows()
+GamepadPlatformDataFetcherWin::GamepadPlatformDataFetcherWin()
: xinput_available_(EnableXInput()) {
}
-void GamepadDataFetcherWindows::GetGamepadData(WebGamepads* pads,
+void GamepadPlatformDataFetcherWin::GetGamepadData(WebGamepads* pads,
bool devices_changed_hint) {
TRACE_EVENT0("GAMEPAD", "GetGamepadData");
@@ -113,7 +113,7 @@ void GamepadDataFetcherWindows::GetGamepadData(WebGamepads* pads,
pad.connected = true;
base::swprintf(pad.id,
WebGamepad::idLengthCap,
- L"Xbox 360 Controller (XInput %ls)",
+ L"Xbox 360 Controller (XInput STANDARD %ls)",
GamepadSubTypeName(caps.SubType));
}
}

Powered by Google App Engine
This is Rietveld 408576698