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 1811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1822 }, | 1822 }, |
1823 #if defined(OS_ANDROID) | 1823 #if defined(OS_ANDROID) |
1824 { | 1824 { |
1825 "enable-embeddedsearch-api", | 1825 "enable-embeddedsearch-api", |
1826 IDS_FLAGS_ENABLE_EMBEDDEDSEARCH_API_NAME, | 1826 IDS_FLAGS_ENABLE_EMBEDDEDSEARCH_API_NAME, |
1827 IDS_FLAGS_ENABLE_EMBEDDEDSEARCH_API_DESCRIPTION, | 1827 IDS_FLAGS_ENABLE_EMBEDDEDSEARCH_API_DESCRIPTION, |
1828 kOsAndroid, | 1828 kOsAndroid, |
1829 SINGLE_VALUE_TYPE(switches::kEnableEmbeddedSearchAPI) | 1829 SINGLE_VALUE_TYPE(switches::kEnableEmbeddedSearchAPI) |
1830 }, | 1830 }, |
1831 #endif | 1831 #endif |
| 1832 #if defined(USE_AURA) |
| 1833 { |
| 1834 "text-input-focus-manager", |
| 1835 IDS_FLAGS_TEXT_INPUT_FOCUS_MANAGER_NAME, |
| 1836 IDS_FLAGS_TEXT_INPUT_FOCUS_MANAGER_DESCRIPTION, |
| 1837 kOsCrOS | kOsLinux | kOsWin, |
| 1838 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTextInputFocusManager, |
| 1839 switches::kDisableTextInputFocusManager) |
| 1840 }, |
| 1841 #endif |
1832 }; | 1842 }; |
1833 | 1843 |
1834 const Experiment* experiments = kExperiments; | 1844 const Experiment* experiments = kExperiments; |
1835 size_t num_experiments = arraysize(kExperiments); | 1845 size_t num_experiments = arraysize(kExperiments); |
1836 | 1846 |
1837 // Stores and encapsulates the little state that about:flags has. | 1847 // Stores and encapsulates the little state that about:flags has. |
1838 class FlagsState { | 1848 class FlagsState { |
1839 public: | 1849 public: |
1840 FlagsState() : needs_restart_(false) {} | 1850 FlagsState() : needs_restart_(false) {} |
1841 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, | 1851 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2346 } | 2356 } |
2347 | 2357 |
2348 const Experiment* GetExperiments(size_t* count) { | 2358 const Experiment* GetExperiments(size_t* count) { |
2349 *count = num_experiments; | 2359 *count = num_experiments; |
2350 return experiments; | 2360 return experiments; |
2351 } | 2361 } |
2352 | 2362 |
2353 } // namespace testing | 2363 } // namespace testing |
2354 | 2364 |
2355 } // namespace about_flags | 2365 } // namespace about_flags |
OLD | NEW |