| 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 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 kOsAll, | 678 kOsAll, |
| 679 SINGLE_VALUE_TYPE_AND_VALUE(switches::kAllowNaClSocketAPI, "*") | 679 SINGLE_VALUE_TYPE_AND_VALUE(switches::kAllowNaClSocketAPI, "*") |
| 680 }, | 680 }, |
| 681 { | 681 { |
| 682 "default-device-scale-factor", | 682 "default-device-scale-factor", |
| 683 IDS_FLAGS_FORCE_HIGH_DPI_NAME, | 683 IDS_FLAGS_FORCE_HIGH_DPI_NAME, |
| 684 IDS_FLAGS_FORCE_HIGH_DPI_DESCRIPTION, | 684 IDS_FLAGS_FORCE_HIGH_DPI_DESCRIPTION, |
| 685 kOsCrOS, | 685 kOsCrOS, |
| 686 SINGLE_VALUE_TYPE_AND_VALUE(switches::kDefaultDeviceScaleFactor, "2") | 686 SINGLE_VALUE_TYPE_AND_VALUE(switches::kDefaultDeviceScaleFactor, "2") |
| 687 }, | 687 }, |
| 688 #if defined(OS_CHROMEOS) |
| 689 { |
| 690 "allow-touchpad-three-finger-click", |
| 691 IDS_FLAGS_ALLOW_TOUCHPAD_THREE_FINGER_CLICK_NAME, |
| 692 IDS_FLAGS_ALLOW_TOUCHPAD_THREE_FINGER_CLICK_DESCRIPTION, |
| 693 kOsCrOS, |
| 694 SINGLE_VALUE_TYPE(switches::kEnableTouchpadThreeFingerClick) |
| 695 }, |
| 696 #endif |
| 688 }; | 697 }; |
| 689 | 698 |
| 690 const Experiment* experiments = kExperiments; | 699 const Experiment* experiments = kExperiments; |
| 691 size_t num_experiments = arraysize(kExperiments); | 700 size_t num_experiments = arraysize(kExperiments); |
| 692 | 701 |
| 693 // Stores and encapsulates the little state that about:flags has. | 702 // Stores and encapsulates the little state that about:flags has. |
| 694 class FlagsState { | 703 class FlagsState { |
| 695 public: | 704 public: |
| 696 FlagsState() : needs_restart_(false) {} | 705 FlagsState() : needs_restart_(false) {} |
| 697 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 706 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1113 } | 1122 } |
| 1114 | 1123 |
| 1115 const Experiment* GetExperiments(size_t* count) { | 1124 const Experiment* GetExperiments(size_t* count) { |
| 1116 *count = num_experiments; | 1125 *count = num_experiments; |
| 1117 return experiments; | 1126 return experiments; |
| 1118 } | 1127 } |
| 1119 | 1128 |
| 1120 } // namespace testing | 1129 } // namespace testing |
| 1121 | 1130 |
| 1122 } // namespace about_flags | 1131 } // namespace about_flags |
| OLD | NEW |