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

Side by Side Diff: components/printing/common/print_messages.cc

Issue 2458833005: Move printing defines to buildflag system. (Closed)
Patch Set: Merge Created 4 years, 1 month 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 "base/strings/string16.h" 5 #include "base/strings/string16.h"
6 #include "printing/features/features.h"
6 #include "ui/gfx/geometry/size.h" 7 #include "ui/gfx/geometry/size.h"
7 8
8 #define IPC_MESSAGE_IMPL 9 #define IPC_MESSAGE_IMPL
9 #include "components/printing/common/print_messages.h" 10 #include "components/printing/common/print_messages.h"
10 11
11 // Generate constructors. 12 // Generate constructors.
12 #include "ipc/struct_constructor_macros.h" 13 #include "ipc/struct_constructor_macros.h"
13 #include "components/printing/common/print_messages.h" 14 #include "components/printing/common/print_messages.h"
14 15
15 // Generate destructors. 16 // Generate destructors.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params( 98 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params(
98 const PrintMsg_PrintPages_Params& other) = default; 99 const PrintMsg_PrintPages_Params& other) = default;
99 100
100 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {} 101 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {}
101 102
102 void PrintMsg_PrintPages_Params::Reset() { 103 void PrintMsg_PrintPages_Params::Reset() {
103 params.Reset(); 104 params.Reset();
104 pages = std::vector<int>(); 105 pages = std::vector<int>();
105 } 106 }
106 107
107 #if defined(ENABLE_PRINT_PREVIEW) 108 #if BUILDFLAG(ENABLE_PRINT_PREVIEW)
108 PrintHostMsg_RequestPrintPreview_Params:: 109 PrintHostMsg_RequestPrintPreview_Params::
109 PrintHostMsg_RequestPrintPreview_Params() 110 PrintHostMsg_RequestPrintPreview_Params()
110 : is_modifiable(false), 111 : is_modifiable(false),
111 webnode_only(false), 112 webnode_only(false),
112 has_selection(false), 113 has_selection(false),
113 selection_only(false) { 114 selection_only(false) {
114 } 115 }
115 116
116 PrintHostMsg_RequestPrintPreview_Params:: 117 PrintHostMsg_RequestPrintPreview_Params::
117 ~PrintHostMsg_RequestPrintPreview_Params() {} 118 ~PrintHostMsg_RequestPrintPreview_Params() {}
118 119
119 PrintHostMsg_SetOptionsFromDocument_Params:: 120 PrintHostMsg_SetOptionsFromDocument_Params::
120 PrintHostMsg_SetOptionsFromDocument_Params() 121 PrintHostMsg_SetOptionsFromDocument_Params()
121 : is_scaling_disabled(false), 122 : is_scaling_disabled(false),
122 copies(0), 123 copies(0),
123 duplex(printing::UNKNOWN_DUPLEX_MODE) { 124 duplex(printing::UNKNOWN_DUPLEX_MODE) {
124 } 125 }
125 126
126 PrintHostMsg_SetOptionsFromDocument_Params:: 127 PrintHostMsg_SetOptionsFromDocument_Params::
127 ~PrintHostMsg_SetOptionsFromDocument_Params() { 128 ~PrintHostMsg_SetOptionsFromDocument_Params() {
128 } 129 }
129 #endif // defined(ENABLE_PRINT_PREVIEW) 130 #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW)
OLDNEW
« no previous file with comments | « components/printing/common/print_messages.h ('k') | components/printing/renderer/print_web_view_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698