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

Side by Side Diff: printing/features/features.gni

Issue 2556023002: Added flags for PrintBrowser mode (Closed)
Patch Set: Replaced enable-print-browser feature flag with command line switch. 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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 import("//build/config/chromecast_build.gni") 5 import("//build/config/chromecast_build.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 7
8 declare_args() { 8 declare_args() {
9 # Enable basic printing support and UI. 9 # Enable basic printing support and UI.
10 enable_basic_printing = !is_chromecast && !is_ios 10 enable_basic_printing = !is_chromecast && !is_ios
11 11
12 # Enable printing with print preview. It does not imply 12 # Enable printing with print preview. It does not imply
13 # enable_basic_printing. It's possible to build Chrome with preview only. 13 # enable_basic_printing. It's possible to build Chrome with preview only.
14 enable_print_preview = !is_android && !is_chromecast && !is_ios 14 enable_print_preview = !is_android && !is_chromecast && !is_ios
15 15
16 use_cups = (is_desktop_linux || is_mac) && !is_chromecast 16 use_cups = (is_desktop_linux || is_mac) && !is_chromecast
17 } 17 }
18 18
19 declare_args() {
20 # Enable printing mode browsing. Implies enable_print_preview.
Vitaly Buka (NO REVIEWS) 2016/12/12 05:29:48 Code implies opposite.
gozzard 2016/12/14 23:14:48 The implication logic is in another file. This det
21 enable_print_browser = enable_print_preview
22 }
23
19 if ((enable_basic_printing && is_win) || enable_print_preview) { 24 if ((enable_basic_printing && is_win) || enable_print_preview) {
20 # Windows basic printing or print preview requires pdf enabled. 25 # Windows basic printing or print preview requires pdf enabled.
21 assert(enable_pdf, 26 assert(enable_pdf,
22 "Windows basic printing or print preview needs pdf: " + 27 "Windows basic printing or print preview needs pdf: " +
23 "set enable_pdf=true.") 28 "set enable_pdf=true.")
24 } 29 }
OLDNEW
« chrome/app/generated_resources.grd ('K') | « printing/features/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698