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

Side by Side Diff: chrome/browser/about_flags.cc

Issue 8679023: Add about:flags for enabling gamepad. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix capitalization on name, and improve description Created 9 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/about_flags.h" 5 #include "chrome/browser/about_flags.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 }, 427 },
428 #if defined(USE_AURA) 428 #if defined(USE_AURA)
429 { 429 {
430 "aura-windows", 430 "aura-windows",
431 IDS_FLAGS_AURA_WINDOWS_NAME, 431 IDS_FLAGS_AURA_WINDOWS_NAME,
432 IDS_FLAGS_AURA_WINDOWS_DESCRIPTION, 432 IDS_FLAGS_AURA_WINDOWS_DESCRIPTION,
433 kOsWin | kOsLinux | kOsCrOS, 433 kOsWin | kOsLinux | kOsCrOS,
434 SINGLE_VALUE_TYPE(switches::kAuraWindows) 434 SINGLE_VALUE_TYPE(switches::kAuraWindows)
435 }, 435 },
436 #endif 436 #endif
437 {
438 "enable-gamepad",
439 IDS_FLAGS_ENABLE_GAMEPAD_NAME,
440 IDS_FLAGS_ENABLE_GAMEPAD_DESCRIPTION,
441 kOsWin,
Nico 2011/11/24 22:06:41 Any ETA for other platforms? :-)
442 SINGLE_VALUE_TYPE(switches::kEnableGamepad)
443 },
437 }; 444 };
438 445
439 const Experiment* experiments = kExperiments; 446 const Experiment* experiments = kExperiments;
440 size_t num_experiments = arraysize(kExperiments); 447 size_t num_experiments = arraysize(kExperiments);
441 448
442 // Stores and encapsulates the little state that about:flags has. 449 // Stores and encapsulates the little state that about:flags has.
443 class FlagsState { 450 class FlagsState {
444 public: 451 public:
445 FlagsState() : needs_restart_(false) {} 452 FlagsState() : needs_restart_(false) {}
446 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 453 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 } 863 }
857 864
858 const Experiment* GetExperiments(size_t* count) { 865 const Experiment* GetExperiments(size_t* count) {
859 *count = num_experiments; 866 *count = num_experiments;
860 return experiments; 867 return experiments;
861 } 868 }
862 869
863 } // namespace testing 870 } // namespace testing
864 871
865 } // namespace about_flags 872 } // namespace about_flags
OLDNEW
« chrome/app/generated_resources.grd ('K') | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698