OLD | NEW |
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 Loading... |
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, |
| 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 Loading... |
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 |
OLD | NEW |