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 <iterator> | 7 #include <iterator> |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 1981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1992 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableMacViewsNativeAppWindows, | 1992 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableMacViewsNativeAppWindows, |
1993 switches::kDisableMacViewsNativeAppWindows)}, | 1993 switches::kDisableMacViewsNativeAppWindows)}, |
1994 #endif | 1994 #endif |
1995 #if defined(ENABLE_WEBVR) | 1995 #if defined(ENABLE_WEBVR) |
1996 {"enable-webvr", | 1996 {"enable-webvr", |
1997 IDS_FLAGS_ENABLE_WEBVR_NAME, | 1997 IDS_FLAGS_ENABLE_WEBVR_NAME, |
1998 IDS_FLAGS_ENABLE_WEBVR_DESCRIPTION, | 1998 IDS_FLAGS_ENABLE_WEBVR_DESCRIPTION, |
1999 kOsAll, | 1999 kOsAll, |
2000 SINGLE_VALUE_TYPE(switches::kEnableWebVR)}, | 2000 SINGLE_VALUE_TYPE(switches::kEnableWebVR)}, |
2001 #endif | 2001 #endif |
| 2002 #if defined(ENABLE_SPELLCHECK) && \ |
| 2003 (defined(OS_LINUX) || defined(OS_WIN) || defined(OS_CHROMEOS)) |
| 2004 {"enable-multilingual-spellchecker", |
| 2005 IDS_FLAGS_ENABLE_MULTILINGUAL_SPELLCHECKER_NAME, |
| 2006 IDS_FLAGS_ENABLE_MULTILINGUAL_SPELLCHECKER_DESCRIPTION, |
| 2007 kOsWin | kOsLinux | kOsCrOS, |
| 2008 SINGLE_VALUE_TYPE(switches::kEnableMultilingualSpellChecker)}, |
| 2009 #endif |
2002 // NOTE: Adding new command-line switches requires adding corresponding | 2010 // NOTE: Adding new command-line switches requires adding corresponding |
2003 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2011 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2004 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2012 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2005 }; | 2013 }; |
2006 | 2014 |
2007 const Experiment* experiments = kExperiments; | 2015 const Experiment* experiments = kExperiments; |
2008 size_t num_experiments = arraysize(kExperiments); | 2016 size_t num_experiments = arraysize(kExperiments); |
2009 | 2017 |
2010 // Stores and encapsulates the little state that about:flags has. | 2018 // Stores and encapsulates the little state that about:flags has. |
2011 class FlagsState { | 2019 class FlagsState { |
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2624 } | 2632 } |
2625 | 2633 |
2626 const Experiment* GetExperiments(size_t* count) { | 2634 const Experiment* GetExperiments(size_t* count) { |
2627 *count = num_experiments; | 2635 *count = num_experiments; |
2628 return experiments; | 2636 return experiments; |
2629 } | 2637 } |
2630 | 2638 |
2631 } // namespace testing | 2639 } // namespace testing |
2632 | 2640 |
2633 } // namespace about_flags | 2641 } // namespace about_flags |
OLD | NEW |