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

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: Created 5 years, 6 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 2271 matching lines...) Expand 10 before | Expand all | Expand 10 after
2282 }, 2282 },
2283 { 2283 {
2284 "use-sync-sandbox", 2284 "use-sync-sandbox",
2285 IDS_FLAGS_SYNC_SANDBOX_NAME, 2285 IDS_FLAGS_SYNC_SANDBOX_NAME,
2286 IDS_FLAGS_SYNC_SANDBOX_DESCRIPTION, 2286 IDS_FLAGS_SYNC_SANDBOX_DESCRIPTION,
2287 kOsAll, 2287 kOsAll,
2288 SINGLE_VALUE_TYPE_AND_VALUE( 2288 SINGLE_VALUE_TYPE_AND_VALUE(
2289 switches::kSyncServiceURL, 2289 switches::kSyncServiceURL,
2290 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha") 2290 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")
2291 }, 2291 },
2292
2292 { 2293 {
2293 "enable-child-account-detection", 2294 "enable-child-account-detection",
2294 IDS_FLAGS_CHILD_ACCOUNT_DETECTION_NAME, 2295 IDS_FLAGS_CHILD_ACCOUNT_DETECTION_NAME,
2295 IDS_FLAGS_CHILD_ACCOUNT_DETECTION_DESCRIPTION, 2296 IDS_FLAGS_CHILD_ACCOUNT_DETECTION_DESCRIPTION,
2296 kOsAndroid | kOsMac | kOsWin | kOsLinux | kOsCrOS, 2297 kOsAndroid | kOsMac | kOsWin | kOsLinux | kOsCrOS,
2297 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableChildAccountDetection, 2298 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableChildAccountDetection,
2298 switches::kDisableChildAccountDetection) 2299 switches::kDisableChildAccountDetection)
2299 }, 2300 },
2300 #if defined(OS_CHROMEOS) && defined(USE_OZONE) 2301 #if defined(OS_CHROMEOS) && defined(USE_OZONE)
2301 { 2302 {
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
2404 SINGLE_VALUE_TYPE(switches::kTrySupportedChannelLayouts) 2405 SINGLE_VALUE_TYPE(switches::kTrySupportedChannelLayouts)
2405 }, 2406 },
2406 #endif 2407 #endif
2407 { 2408 {
2408 "emphasize-titles-in-omnibox-dropdown", 2409 "emphasize-titles-in-omnibox-dropdown",
2409 IDS_FLAGS_EMPHASIZE_TITLES_IN_OMNIBOX_DROPDOWN_NAME, 2410 IDS_FLAGS_EMPHASIZE_TITLES_IN_OMNIBOX_DROPDOWN_NAME,
2410 IDS_FLAGS_EMPHASIZE_TITLES_IN_OMNIBOX_DROPDOWN_DESCRIPTION, 2411 IDS_FLAGS_EMPHASIZE_TITLES_IN_OMNIBOX_DROPDOWN_DESCRIPTION,
2411 kOsAll, 2412 kOsAll,
2412 SINGLE_VALUE_TYPE(switches::kEmphasizeTitlesInOmniboxDropdown) 2413 SINGLE_VALUE_TYPE(switches::kEmphasizeTitlesInOmniboxDropdown)
2413 }, 2414 },
2415
2416 #if defined(ENABLE_SPELLCHECK) && \
2417 (defined(OS_LINUX) || defined(OS_WIN) || defined(OS_CHROMEOS))
2418 {
2419 "enable-multilingual-spellchecker",
2420 IDS_FLAGS_ENABLE_MULTILINGUAL_SPELLCHECKER_NAME,
2421 IDS_FLAGS_ENABLE_MULTILINGUAL_SPELLCHECKER_DESCRIPTION,
2422 kOsWin | kOsLinux | kOsCrOS,
2423 SINGLE_VALUE_TYPE(switches::kEnableMultilingualSpellChecker)
2424 },
2425 #endif // defined(ENABLE_SPELLCHECK) && (defined(OS_LINUX) || defined(OS_WIN)
2426 // || defined(OS_CHROMEOS))
2427
2428
2414 // NOTE: Adding new command-line switches requires adding corresponding 2429 // NOTE: Adding new command-line switches requires adding corresponding
2415 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2430 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2416 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2431 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2417 }; 2432 };
2418 2433
2419 const Experiment* experiments = kExperiments; 2434 const Experiment* experiments = kExperiments;
2420 size_t num_experiments = arraysize(kExperiments); 2435 size_t num_experiments = arraysize(kExperiments);
2421 2436
2422 // Stores and encapsulates the little state that about:flags has. 2437 // Stores and encapsulates the little state that about:flags has.
2423 class FlagsState { 2438 class FlagsState {
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
2992 } 3007 }
2993 3008
2994 const Experiment* GetExperiments(size_t* count) { 3009 const Experiment* GetExperiments(size_t* count) {
2995 *count = num_experiments; 3010 *count = num_experiments;
2996 return experiments; 3011 return experiments;
2997 } 3012 }
2998 3013
2999 } // namespace testing 3014 } // namespace testing
3000 3015
3001 } // namespace about_flags 3016 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698