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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 kOsAll, | 671 kOsAll, |
672 SINGLE_VALUE_TYPE(switches::kEnablePlatformApps) | 672 SINGLE_VALUE_TYPE(switches::kEnablePlatformApps) |
673 }, | 673 }, |
674 { | 674 { |
675 "allow-nacl-socket-api", | 675 "allow-nacl-socket-api", |
676 IDS_FLAGS_ALLOW_NACL_SOCKET_API_NAME, | 676 IDS_FLAGS_ALLOW_NACL_SOCKET_API_NAME, |
677 IDS_FLAGS_ALLOW_NACL_SOCKET_API_DESCRIPTION, | 677 IDS_FLAGS_ALLOW_NACL_SOCKET_API_DESCRIPTION, |
678 kOsAll, | 678 kOsAll, |
679 SINGLE_VALUE_TYPE_AND_VALUE(switches::kAllowNaClSocketAPI, "*") | 679 SINGLE_VALUE_TYPE_AND_VALUE(switches::kAllowNaClSocketAPI, "*") |
680 }, | 680 }, |
| 681 #if defined(OS_CHROMEOS) |
| 682 { |
| 683 "allow-touchpad-three-finger-click", |
| 684 IDS_FLAGS_ALLOW_TOUCHPAD_THREE_FINGER_CLICK_NAME, |
| 685 IDS_FLAGS_ALLOW_TOUCHPAD_THREE_FINGER_CLICK_DESCRIPTION, |
| 686 kOsCrOS, |
| 687 SINGLE_VALUE_TYPE(switches::kEnableTouchpadThreeFingerClick) |
| 688 }, |
| 689 #endif |
681 }; | 690 }; |
682 | 691 |
683 const Experiment* experiments = kExperiments; | 692 const Experiment* experiments = kExperiments; |
684 size_t num_experiments = arraysize(kExperiments); | 693 size_t num_experiments = arraysize(kExperiments); |
685 | 694 |
686 // Stores and encapsulates the little state that about:flags has. | 695 // Stores and encapsulates the little state that about:flags has. |
687 class FlagsState { | 696 class FlagsState { |
688 public: | 697 public: |
689 FlagsState() : needs_restart_(false) {} | 698 FlagsState() : needs_restart_(false) {} |
690 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 699 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1106 } | 1115 } |
1107 | 1116 |
1108 const Experiment* GetExperiments(size_t* count) { | 1117 const Experiment* GetExperiments(size_t* count) { |
1109 *count = num_experiments; | 1118 *count = num_experiments; |
1110 return experiments; | 1119 return experiments; |
1111 } | 1120 } |
1112 | 1121 |
1113 } // namespace testing | 1122 } // namespace testing |
1114 | 1123 |
1115 } // namespace about_flags | 1124 } // namespace about_flags |
OLD | NEW |