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

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

Issue 857053002: Generate the print messages in components/printing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed dedicated component generators Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « components/printing/common/print_messages.h ('k') | printing/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "components/printing/common/print_messages.h"
Bernhard Bauer 2015/01/22 09:30:12 Nit: remove this comment.
dgn 2015/01/22 14:27:14 Done.
6
7 #define IPC_MESSAGE_IMPL
Bernhard Bauer 2015/01/22 09:30:12 Nit: I think I would move the generators to the bo
dgn 2015/01/22 14:27:14 Done. Both styles seem to be used (https://code.
5 #include "components/printing/common/print_messages.h" 8 #include "components/printing/common/print_messages.h"
6 9
10 // Generate constructors.
11 #include "ipc/struct_constructor_macros.h"
12 #include "components/printing/common/print_messages.h"
13
14 // Generate destructors.
15 #include "ipc/struct_destructor_macros.h"
16 #include "components/printing/common/print_messages.h"
17
18 // Generate param traits write methods.
19 #include "ipc/param_traits_write_macros.h"
20 namespace IPC {
21 #include "components/printing/common/print_messages.h"
22 } // namespace IPC
23
24 // Generate param traits read methods.
25 #include "ipc/param_traits_read_macros.h"
26 namespace IPC {
27 #include "components/printing/common/print_messages.h"
28 } // namespace IPC
29
30 // Generate param traits log methods.
31 #include "ipc/param_traits_log_macros.h"
32 namespace IPC {
33 #include "components/printing/common/print_messages.h"
34 } // namespace IPC
35
7 #include "base/basictypes.h" 36 #include "base/basictypes.h"
8 #include "base/strings/string16.h" 37 #include "base/strings/string16.h"
9 #include "ui/gfx/geometry/size.h" 38 #include "ui/gfx/geometry/size.h"
10 39
11 PrintMsg_Print_Params::PrintMsg_Print_Params() 40 PrintMsg_Print_Params::PrintMsg_Print_Params()
12 : page_size(), 41 : page_size(),
13 content_size(), 42 content_size(),
14 printable_area(), 43 printable_area(),
15 margin_top(0), 44 margin_top(0),
16 margin_left(0), 45 margin_left(0),
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 PrintHostMsg_SetOptionsFromDocument_Params:: 112 PrintHostMsg_SetOptionsFromDocument_Params::
84 PrintHostMsg_SetOptionsFromDocument_Params() 113 PrintHostMsg_SetOptionsFromDocument_Params()
85 : is_scaling_disabled(false), 114 : is_scaling_disabled(false),
86 copies(0), 115 copies(0),
87 duplex(printing::UNKNOWN_DUPLEX_MODE) { 116 duplex(printing::UNKNOWN_DUPLEX_MODE) {
88 } 117 }
89 118
90 PrintHostMsg_SetOptionsFromDocument_Params:: 119 PrintHostMsg_SetOptionsFromDocument_Params::
91 ~PrintHostMsg_SetOptionsFromDocument_Params() { 120 ~PrintHostMsg_SetOptionsFromDocument_Params() {
92 } 121 }
OLDNEW
« no previous file with comments | « components/printing/common/print_messages.h ('k') | printing/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698