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

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

Issue 2524143003: Print Preview: Add option to rasterize PDFs and add JPEG compression. (Closed)
Patch Set: Add flag Created 4 years 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 2039 matching lines...) Expand 10 before | Expand all | Expand 10 after
2050 #endif 2050 #endif
2051 #if !defined(OS_MACOSX) 2051 #if !defined(OS_MACOSX)
2052 {"permission-prompt-persistence-toggle", 2052 {"permission-prompt-persistence-toggle",
2053 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_NAME, 2053 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_NAME,
2054 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_DESCRIPTION, 2054 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_DESCRIPTION,
2055 kOsWin | kOsCrOS | kOsLinux | kOsAndroid, 2055 kOsWin | kOsCrOS | kOsLinux | kOsAndroid,
2056 FEATURE_VALUE_TYPE( 2056 FEATURE_VALUE_TYPE(
2057 features::kDisplayPersistenceToggleInPermissionPrompts)}, 2057 features::kDisplayPersistenceToggleInPermissionPrompts)},
2058 #endif 2058 #endif
2059 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) 2059 #if BUILDFLAG(ENABLE_PRINT_PREVIEW)
2060 {"print-pdf-as-image", IDS_FLAGS_PRINT_PDF_AS_IMAGE_NAME,
2061 IDS_FLAGS_PRINT_PDF_AS_IMAGE_DESCRIPTION, kOsDesktop,
2062 FEATURE_VALUE_TYPE(features::kPrintPdfAsImage)},
2060 {"print-scaling", IDS_FLAGS_PRINT_SCALING_NAME, 2063 {"print-scaling", IDS_FLAGS_PRINT_SCALING_NAME,
2061 IDS_FLAGS_PRINT_SCALING_DESCRIPTION, kOsDesktop, 2064 IDS_FLAGS_PRINT_SCALING_DESCRIPTION, kOsDesktop,
2062 FEATURE_VALUE_TYPE(features::kPrintScaling)}, 2065 FEATURE_VALUE_TYPE(features::kPrintScaling)},
2063 #endif // !defined(OS_ANDROID) 2066 #endif // !defined(OS_ANDROID)
2064 #if defined(OS_ANDROID) 2067 #if defined(OS_ANDROID)
2065 {"enable-consistent-omnibox-geolocation", 2068 {"enable-consistent-omnibox-geolocation",
2066 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_NAME, 2069 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_NAME,
2067 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_DESCRIPTION, kOsAndroid, 2070 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_DESCRIPTION, kOsAndroid,
2068 FEATURE_VALUE_TYPE(features::kConsistentOmniboxGeolocation)}, 2071 FEATURE_VALUE_TYPE(features::kConsistentOmniboxGeolocation)},
2069 {"concurrent-background-loading-on-svelte", 2072 {"concurrent-background-loading-on-svelte",
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
2304 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2307 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2305 2308
2306 const FeatureEntry* GetFeatureEntries(size_t* count) { 2309 const FeatureEntry* GetFeatureEntries(size_t* count) {
2307 *count = arraysize(kFeatureEntries); 2310 *count = arraysize(kFeatureEntries);
2308 return kFeatureEntries; 2311 return kFeatureEntries;
2309 } 2312 }
2310 2313
2311 } // namespace testing 2314 } // namespace testing
2312 2315
2313 } // namespace about_flags 2316 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698