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

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: Clean up JS 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 2056 matching lines...) Expand 10 before | Expand all | Expand 10 after
2067 #endif 2067 #endif
2068 #if !defined(OS_MACOSX) 2068 #if !defined(OS_MACOSX)
2069 {"permission-prompt-persistence-toggle", 2069 {"permission-prompt-persistence-toggle",
2070 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_NAME, 2070 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_NAME,
2071 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_DESCRIPTION, 2071 IDS_FLAGS_PERMISSION_PROMPT_PERSISTENCE_TOGGLE_DESCRIPTION,
2072 kOsWin | kOsCrOS | kOsLinux | kOsAndroid, 2072 kOsWin | kOsCrOS | kOsLinux | kOsAndroid,
2073 FEATURE_VALUE_TYPE( 2073 FEATURE_VALUE_TYPE(
2074 features::kDisplayPersistenceToggleInPermissionPrompts)}, 2074 features::kDisplayPersistenceToggleInPermissionPrompts)},
2075 #endif 2075 #endif
2076 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) 2076 #if BUILDFLAG(ENABLE_PRINT_PREVIEW)
2077 {"print-pdf-as-image", IDS_FLAGS_PRINT_PDF_AS_IMAGE_NAME,
2078 IDS_FLAGS_PRINT_PDF_AS_IMAGE_DESCRIPTION, kOsDesktop,
2079 FEATURE_VALUE_TYPE(features::kPrintPdfAsImage)},
2077 {"print-scaling", IDS_FLAGS_PRINT_SCALING_NAME, 2080 {"print-scaling", IDS_FLAGS_PRINT_SCALING_NAME,
2078 IDS_FLAGS_PRINT_SCALING_DESCRIPTION, kOsDesktop, 2081 IDS_FLAGS_PRINT_SCALING_DESCRIPTION, kOsDesktop,
2079 FEATURE_VALUE_TYPE(features::kPrintScaling)}, 2082 FEATURE_VALUE_TYPE(features::kPrintScaling)},
2080 #endif // !defined(OS_ANDROID) 2083 #endif // !defined(OS_ANDROID)
2081 #if defined(OS_ANDROID) 2084 #if defined(OS_ANDROID)
2082 {"enable-consistent-omnibox-geolocation", 2085 {"enable-consistent-omnibox-geolocation",
2083 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_NAME, 2086 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_NAME,
2084 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_DESCRIPTION, kOsAndroid, 2087 IDS_FLAGS_ENABLE_CONSISTENT_OMNIBOX_GEOLOCATION_DESCRIPTION, kOsAndroid,
2085 FEATURE_VALUE_TYPE(features::kConsistentOmniboxGeolocation)}, 2088 FEATURE_VALUE_TYPE(features::kConsistentOmniboxGeolocation)},
2086 {"concurrent-background-loading-on-svelte", 2089 {"concurrent-background-loading-on-svelte",
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
2341 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2344 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2342 2345
2343 const FeatureEntry* GetFeatureEntries(size_t* count) { 2346 const FeatureEntry* GetFeatureEntries(size_t* count) {
2344 *count = arraysize(kFeatureEntries); 2347 *count = arraysize(kFeatureEntries);
2345 return kFeatureEntries; 2348 return kFeatureEntries;
2346 } 2349 }
2347 2350
2348 } // namespace testing 2351 } // namespace testing
2349 2352
2350 } // namespace about_flags 2353 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698