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

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

Issue 2653963002: [Experimental] Supporting OOPIF printing
Patch Set: Rename service, fix for webview, and connect to DiscardableMemoryManager Created 3 years, 8 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
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 "printing/features/features.h"
7 #include "ui/gfx/geometry/size.h" 7 #include "ui/gfx/geometry/size.h"
8 8
9 #define IPC_MESSAGE_IMPL 9 #define IPC_MESSAGE_IMPL
10 #include "components/printing/common/print_messages.h" 10 #include "components/printing/common/print_messages.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 selection_only(false), 55 selection_only(false),
56 supports_alpha_blend(false), 56 supports_alpha_blend(false),
57 preview_ui_id(-1), 57 preview_ui_id(-1),
58 preview_request_id(0), 58 preview_request_id(0),
59 is_first_request(false), 59 is_first_request(false),
60 print_scaling_option(blink::WebPrintScalingOptionSourceSize), 60 print_scaling_option(blink::WebPrintScalingOptionSourceSize),
61 print_to_pdf(false), 61 print_to_pdf(false),
62 display_header_footer(false), 62 display_header_footer(false),
63 title(), 63 title(),
64 url(), 64 url(),
65 should_print_backgrounds(false) {} 65 should_print_backgrounds(false),
66 is_subframe(false) {}
66 67
67 PrintMsg_Print_Params::PrintMsg_Print_Params( 68 PrintMsg_Print_Params::PrintMsg_Print_Params(
68 const PrintMsg_Print_Params& other) = default; 69 const PrintMsg_Print_Params& other) = default;
69 70
70 PrintMsg_Print_Params::~PrintMsg_Print_Params() {} 71 PrintMsg_Print_Params::~PrintMsg_Print_Params() {}
71 72
72 void PrintMsg_Print_Params::Reset() { 73 void PrintMsg_Print_Params::Reset() {
73 page_size = gfx::Size(); 74 page_size = gfx::Size();
74 content_size = gfx::Size(); 75 content_size = gfx::Size();
75 printable_area = gfx::Rect(); 76 printable_area = gfx::Rect();
76 margin_top = 0; 77 margin_top = 0;
77 margin_left = 0; 78 margin_left = 0;
78 dpi = 0; 79 dpi = 0;
79 scale_factor = 1.0f; 80 scale_factor = 1.0f;
80 desired_dpi = 0; 81 desired_dpi = 0;
81 rasterize_pdf = false; 82 rasterize_pdf = false;
82 document_cookie = 0; 83 document_cookie = 0;
83 selection_only = false; 84 selection_only = false;
84 supports_alpha_blend = false; 85 supports_alpha_blend = false;
85 preview_ui_id = -1; 86 preview_ui_id = -1;
86 preview_request_id = 0; 87 preview_request_id = 0;
87 is_first_request = false; 88 is_first_request = false;
88 print_scaling_option = blink::WebPrintScalingOptionSourceSize; 89 print_scaling_option = blink::WebPrintScalingOptionSourceSize;
89 print_to_pdf = false; 90 print_to_pdf = false;
90 display_header_footer = false; 91 display_header_footer = false;
91 title = base::string16(); 92 title = base::string16();
92 url = base::string16(); 93 url = base::string16();
93 should_print_backgrounds = false; 94 should_print_backgrounds = false;
95 is_subframe = false;
94 } 96 }
95 97
96 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params() 98 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params()
97 : pages() { 99 : pages() {
98 } 100 }
99 101
100 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params( 102 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params(
101 const PrintMsg_PrintPages_Params& other) = default; 103 const PrintMsg_PrintPages_Params& other) = default;
102 104
103 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {} 105 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {}
(...skipping 19 matching lines...) Expand all
123 PrintHostMsg_SetOptionsFromDocument_Params() 125 PrintHostMsg_SetOptionsFromDocument_Params()
124 : is_scaling_disabled(false), 126 : is_scaling_disabled(false),
125 copies(0), 127 copies(0),
126 duplex(printing::UNKNOWN_DUPLEX_MODE) { 128 duplex(printing::UNKNOWN_DUPLEX_MODE) {
127 } 129 }
128 130
129 PrintHostMsg_SetOptionsFromDocument_Params:: 131 PrintHostMsg_SetOptionsFromDocument_Params::
130 ~PrintHostMsg_SetOptionsFromDocument_Params() { 132 ~PrintHostMsg_SetOptionsFromDocument_Params() {
131 } 133 }
132 #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) 134 #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