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

Unified Diff: build/common.gypi

Issue 22577010: Printing: Add a basic printing mode without print preview and cloud print. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/app/chrome_main_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 6f58dbafbb34d46f190edc9ccd61bc4c5e74d8dd..e95efab42161e09983192743e7a563b6ec727cbf 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -343,7 +343,11 @@
# Enable Google Now.
'enable_google_now%': 1,
- # Enable printing support and UI.
+ # Enable printing support and UI. This variable is used to configure
+ # which parts of printing will be built. 0 disables printing completely,
+ # 1 enables it fully, and 2 enables only the codepath to generate a
+ # Metafile (e.g. usually a PDF or EMF) and disables print preview, cloud
+ # print, UI, etc.
'enable_printing%': 1,
# Enable spell checker.
@@ -1584,7 +1588,7 @@
['enable_extensions==1', {
'grit_defines': ['-D', 'enable_extensions'],
}],
- ['enable_printing==1', {
+ ['enable_printing!=0', {
'grit_defines': ['-D', 'enable_printing'],
}],
['enable_themes==1', {
@@ -2261,6 +2265,9 @@
'defines': ['ENABLE_GOOGLE_NOW=1'],
}],
['enable_printing==1', {
+ 'defines': ['ENABLE_FULL_PRINTING=1', 'ENABLE_PRINTING=1'],
+ }],
+ ['enable_printing==2', {
'defines': ['ENABLE_PRINTING=1'],
}],
['enable_spellcheck==1', {
« no previous file with comments | « no previous file | chrome/app/chrome_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698