OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 SINGLE_VALUE_TYPE(ash::switches::kEnableAppListV2), | 718 SINGLE_VALUE_TYPE(ash::switches::kEnableAppListV2), |
719 }, | 719 }, |
720 { | 720 { |
721 "show-launcher-alignment-menu", | 721 "show-launcher-alignment-menu", |
722 IDS_FLAGS_SHOW_LAUNCHER_ALIGNMENT_MENU_NAME, | 722 IDS_FLAGS_SHOW_LAUNCHER_ALIGNMENT_MENU_NAME, |
723 IDS_FLAGS_SHOW_LAUNCHER_ALIGNMENT_MENU_DESCRIPTION, | 723 IDS_FLAGS_SHOW_LAUNCHER_ALIGNMENT_MENU_DESCRIPTION, |
724 kOsAll, | 724 kOsAll, |
725 SINGLE_VALUE_TYPE(switches::kShowLauncherAlignmentMenu) | 725 SINGLE_VALUE_TYPE(switches::kShowLauncherAlignmentMenu) |
726 }, | 726 }, |
727 { | 727 { |
728 "show-touch-hud", | |
729 IDS_FLAGS_SHOW_TOUCH_HUD_NAME, | |
730 IDS_FLAGS_SHOW_TOUCH_HUD_DESCRIPTION, | |
731 kOsAll, | |
732 SINGLE_VALUE_TYPE(ash::switches::kAshTouchHud) | |
733 }, | |
734 { | |
735 "ash-notify", | 728 "ash-notify", |
736 IDS_FLAGS_ENABLE_ASH_NOTIFY_NAME, | 729 IDS_FLAGS_ENABLE_ASH_NOTIFY_NAME, |
737 IDS_FLAGS_ENABLE_ASH_NOTIFY_DESCRIPTION, | 730 IDS_FLAGS_ENABLE_ASH_NOTIFY_DESCRIPTION, |
738 kOsAll, | 731 kOsAll, |
739 SINGLE_VALUE_TYPE(ash::switches::kAshNotify), | 732 SINGLE_VALUE_TYPE(ash::switches::kAshNotify), |
740 }, | 733 }, |
741 #endif // defined(USE_ASH) | 734 #endif |
742 }; | 735 }; |
743 | 736 |
744 const Experiment* experiments = kExperiments; | 737 const Experiment* experiments = kExperiments; |
745 size_t num_experiments = arraysize(kExperiments); | 738 size_t num_experiments = arraysize(kExperiments); |
746 | 739 |
747 // Stores and encapsulates the little state that about:flags has. | 740 // Stores and encapsulates the little state that about:flags has. |
748 class FlagsState { | 741 class FlagsState { |
749 public: | 742 public: |
750 FlagsState() : needs_restart_(false) {} | 743 FlagsState() : needs_restart_(false) {} |
751 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 744 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1167 } | 1160 } |
1168 | 1161 |
1169 const Experiment* GetExperiments(size_t* count) { | 1162 const Experiment* GetExperiments(size_t* count) { |
1170 *count = num_experiments; | 1163 *count = num_experiments; |
1171 return experiments; | 1164 return experiments; |
1172 } | 1165 } |
1173 | 1166 |
1174 } // namespace testing | 1167 } // namespace testing |
1175 | 1168 |
1176 } // namespace about_flags | 1169 } // namespace about_flags |
OLD | NEW |