summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorscottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-24 23:20:51 +0000
committerscottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-24 23:20:51 +0000
commitedb051dca32fec6a6d4c7ffdeebe0845415c0b8c (patch)
treec227ab032418a72e6d8109d83fc6b0a4c83f5b03 /chrome
parente03a8e5b670706c34e55beb31e7b78fcd3166d5a (diff)
downloadchromium_src-edb051dca32fec6a6d4c7ffdeebe0845415c0b8c.zip
chromium_src-edb051dca32fec6a6d4c7ffdeebe0845415c0b8c.tar.gz
chromium_src-edb051dca32fec6a6d4c7ffdeebe0845415c0b8c.tar.bz2
Add about:flags entry for enabling gamepad.
BUG=79050 Review URL: http://codereview.chromium.org/8679023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111562 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/app/generated_resources.grd6
-rw-r--r--chrome/browser/about_flags.cc7
2 files changed, 13 insertions, 0 deletions
diff --git a/chrome/app/generated_resources.grd b/chrome/app/generated_resources.grd
index 1abac3f..443f299 100644
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -4884,6 +4884,12 @@ Keep your key file in a safe place. You will need it to create new versions of y
<message name="IDS_FLAGS_ENABLE_PLATFORM_APPS_DESCRIPTION" desc="Description for the flag to enable platform apps.">
Enable advanced application capabilities.
</message>
+ <message name="IDS_FLAGS_ENABLE_GAMEPAD_NAME" desc="Title for the flag to enable gamepad support.">
+ Enable Gamepad
+ </message>
+ <message name="IDS_FLAGS_ENABLE_GAMEPAD_DESCRIPTION" desc="Description for the flag to enable gamepad support.">
+ This API allows web applications to access data from gamepad devices connected to the system.
+ </message>
<!-- Crashes -->
<message name="IDS_CRASHES_TITLE" desc="Title for the chrome://crashes page.">
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index ff02af3..5d27dd75 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -434,6 +434,13 @@ const Experiment kExperiments[] = {
SINGLE_VALUE_TYPE(switches::kAuraWindows)
},
#endif
+ {
+ "enable-gamepad",
+ IDS_FLAGS_ENABLE_GAMEPAD_NAME,
+ IDS_FLAGS_ENABLE_GAMEPAD_DESCRIPTION,
+ kOsWin,
+ SINGLE_VALUE_TYPE(switches::kEnableGamepad)
+ },
};
const Experiment* experiments = kExperiments;