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

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

Issue 2633573002: Add Postscript Printing (Closed)
Patch Set: Fix clang compile Created 3 years, 10 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 2188 matching lines...) Expand 10 before | Expand all | Expand 10 after
2199 FEATURE_VALUE_TYPE(features::kLsdPermissionPrompt)}, 2199 FEATURE_VALUE_TYPE(features::kLsdPermissionPrompt)},
2200 #endif 2200 #endif
2201 2201
2202 #if defined(OS_CHROMEOS) 2202 #if defined(OS_CHROMEOS)
2203 {"enable-touchscreen-calibration", IDS_FLAGS_TOUCHSCREEN_CALIBRATION_NAME, 2203 {"enable-touchscreen-calibration", IDS_FLAGS_TOUCHSCREEN_CALIBRATION_NAME,
2204 IDS_FLAGS_TOUCHSCREEN_CALIBRATION_DESCRIPTION, kOsCrOS, 2204 IDS_FLAGS_TOUCHSCREEN_CALIBRATION_DESCRIPTION, kOsCrOS,
2205 SINGLE_VALUE_TYPE(chromeos::switches::kEnableTouchCalibrationSetting)}, 2205 SINGLE_VALUE_TYPE(chromeos::switches::kEnableTouchCalibrationSetting)},
2206 #endif // defined(OS_CHROMEOS) 2206 #endif // defined(OS_CHROMEOS)
2207 2207
2208 #if defined(OS_WIN) 2208 #if defined(OS_WIN)
2209 {"gdi-text-printing", IDS_FLAGS_GDI_TEXT_PRINTING, 2209 {"gdi-text-printing", IDS_FLAGS_GDI_TEXT_PRINTING,
2210 IDS_FLAGS_GDI_TEXT_PRINTING_DESCRIPTION, kOsWin, 2210 IDS_FLAGS_GDI_TEXT_PRINTING_DESCRIPTION, kOsWin,
2211 FEATURE_VALUE_TYPE(features::kGdiTextPrinting)} 2211 FEATURE_VALUE_TYPE(features::kGdiTextPrinting)},
2212 #endif 2212 {"postscript-printing", IDS_FLAGS_POSTSCRIPT_PRINTING,
2213 IDS_FLAGS_POSTSCRIPT_PRINTING_DESCRIPTION, kOsWin,
2214 FEATURE_VALUE_TYPE(features::kPostScriptPrinting)}
2215 #endif // defined(OS_WIN)
2213 // NOTE: Adding new command-line switches requires adding corresponding 2216 // NOTE: Adding new command-line switches requires adding corresponding
2214 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2217 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2215 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2218 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2216 }; 2219 };
2217 2220
2218 class FlagsStateSingleton { 2221 class FlagsStateSingleton {
2219 public: 2222 public:
2220 FlagsStateSingleton() 2223 FlagsStateSingleton()
2221 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 2224 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
2222 ~FlagsStateSingleton() {} 2225 ~FlagsStateSingleton() {}
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
2411 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2414 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2412 2415
2413 const FeatureEntry* GetFeatureEntries(size_t* count) { 2416 const FeatureEntry* GetFeatureEntries(size_t* count) {
2414 *count = arraysize(kFeatureEntries); 2417 *count = arraysize(kFeatureEntries);
2415 return kFeatureEntries; 2418 return kFeatureEntries;
2416 } 2419 }
2417 2420
2418 } // namespace testing 2421 } // namespace testing
2419 2422
2420 } // namespace about_flags 2423 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698