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 1840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1851 SINGLE_VALUE_TYPE(switches::kEnableAppInstallAlerts) | 1851 SINGLE_VALUE_TYPE(switches::kEnableAppInstallAlerts) |
1852 }, | 1852 }, |
1853 #endif | 1853 #endif |
1854 { | 1854 { |
1855 "distance-field-text", | 1855 "distance-field-text", |
1856 IDS_FLAGS_DISTANCE_FIELD_TEXT_NAME, | 1856 IDS_FLAGS_DISTANCE_FIELD_TEXT_NAME, |
1857 IDS_FLAGS_DISTANCE_FIELD_TEXT_DESCRIPTION, | 1857 IDS_FLAGS_DISTANCE_FIELD_TEXT_DESCRIPTION, |
1858 kOsAll, | 1858 kOsAll, |
1859 MULTI_VALUE_TYPE(kDistanceFieldTextChoices) | 1859 MULTI_VALUE_TYPE(kDistanceFieldTextChoices) |
1860 }, | 1860 }, |
| 1861 #if defined(USE_AURA) |
| 1862 { |
| 1863 "text-input-focus-manager", |
| 1864 IDS_FLAGS_TEXT_INPUT_FOCUS_MANAGER_NAME, |
| 1865 IDS_FLAGS_TEXT_INPUT_FOCUS_MANAGER_DESCRIPTION, |
| 1866 kOsCrOS | kOsLinux | kOsWin, |
| 1867 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTextInputFocusManager, |
| 1868 switches::kDisableTextInputFocusManager) |
| 1869 }, |
| 1870 #endif |
1861 }; | 1871 }; |
1862 | 1872 |
1863 const Experiment* experiments = kExperiments; | 1873 const Experiment* experiments = kExperiments; |
1864 size_t num_experiments = arraysize(kExperiments); | 1874 size_t num_experiments = arraysize(kExperiments); |
1865 | 1875 |
1866 // Stores and encapsulates the little state that about:flags has. | 1876 // Stores and encapsulates the little state that about:flags has. |
1867 class FlagsState { | 1877 class FlagsState { |
1868 public: | 1878 public: |
1869 FlagsState() : needs_restart_(false) {} | 1879 FlagsState() : needs_restart_(false) {} |
1870 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, | 1880 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2375 } | 2385 } |
2376 | 2386 |
2377 const Experiment* GetExperiments(size_t* count) { | 2387 const Experiment* GetExperiments(size_t* count) { |
2378 *count = num_experiments; | 2388 *count = num_experiments; |
2379 return experiments; | 2389 return experiments; |
2380 } | 2390 } |
2381 | 2391 |
2382 } // namespace testing | 2392 } // namespace testing |
2383 | 2393 |
2384 } // namespace about_flags | 2394 } // namespace about_flags |
OLD | NEW |