Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(615)

Side by Side Diff: chrome/browser/about_flags.cc

Issue 1156473007: Enables the user to select multiple languages for spellchecking (UI) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nits and rebased. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1998 matching lines...) Expand 10 before | Expand all | Expand 10 after
2009 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableMacViewsNativeAppWindows, 2009 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableMacViewsNativeAppWindows,
2010 switches::kDisableMacViewsNativeAppWindows)}, 2010 switches::kDisableMacViewsNativeAppWindows)},
2011 #endif 2011 #endif
2012 #if defined(ENABLE_WEBVR) 2012 #if defined(ENABLE_WEBVR)
2013 {"enable-webvr", 2013 {"enable-webvr",
2014 IDS_FLAGS_ENABLE_WEBVR_NAME, 2014 IDS_FLAGS_ENABLE_WEBVR_NAME,
2015 IDS_FLAGS_ENABLE_WEBVR_DESCRIPTION, 2015 IDS_FLAGS_ENABLE_WEBVR_DESCRIPTION,
2016 kOsAll, 2016 kOsAll,
2017 SINGLE_VALUE_TYPE(switches::kEnableWebVR)}, 2017 SINGLE_VALUE_TYPE(switches::kEnableWebVR)},
2018 #endif 2018 #endif
2019 #if defined(ENABLE_SPELLCHECK) && \
2020 (defined(OS_LINUX) || defined(OS_WIN) || defined(OS_CHROMEOS))
2021 {"enable-multilingual-spellchecker",
2022 IDS_FLAGS_ENABLE_MULTILINGUAL_SPELLCHECKER_NAME,
2023 IDS_FLAGS_ENABLE_MULTILINGUAL_SPELLCHECKER_DESCRIPTION,
2024 kOsWin | kOsLinux | kOsCrOS,
2025 SINGLE_VALUE_TYPE(switches::kEnableMultilingualSpellChecker)},
2026 #endif
2019 // NOTE: Adding new command-line switches requires adding corresponding 2027 // NOTE: Adding new command-line switches requires adding corresponding
2020 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2028 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2021 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2029 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2022 }; 2030 };
2023 2031
2024 const Experiment* experiments = kExperiments; 2032 const Experiment* experiments = kExperiments;
2025 size_t num_experiments = arraysize(kExperiments); 2033 size_t num_experiments = arraysize(kExperiments);
2026 2034
2027 // Stores and encapsulates the little state that about:flags has. 2035 // Stores and encapsulates the little state that about:flags has.
2028 class FlagsState { 2036 class FlagsState {
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
2641 } 2649 }
2642 2650
2643 const Experiment* GetExperiments(size_t* count) { 2651 const Experiment* GetExperiments(size_t* count) {
2644 *count = num_experiments; 2652 *count = num_experiments;
2645 return experiments; 2653 return experiments;
2646 } 2654 }
2647 2655
2648 } // namespace testing 2656 } // namespace testing
2649 2657
2650 } // namespace about_flags 2658 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698