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

Side by Side Diff: chrome/common/print_messages.cc

Issue 10873097: Merge 153342 - Print preview: Use an ID instead of memory pointer string in WebUI. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1229/src/
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/print_messages.h ('k') | chrome/renderer/chrome_mock_render_thread.h » ('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 "chrome/common/print_messages.h" 5 #include "chrome/common/print_messages.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "ui/gfx/size.h" 9 #include "ui/gfx/size.h"
10 10
11 PrintMsg_Print_Params::PrintMsg_Print_Params() 11 PrintMsg_Print_Params::PrintMsg_Print_Params()
12 : page_size(), 12 : page_size(),
13 content_size(), 13 content_size(),
14 printable_area(), 14 printable_area(),
15 margin_top(0), 15 margin_top(0),
16 margin_left(0), 16 margin_left(0),
17 dpi(0), 17 dpi(0),
18 min_shrink(0), 18 min_shrink(0),
19 max_shrink(0), 19 max_shrink(0),
20 desired_dpi(0), 20 desired_dpi(0),
21 document_cookie(0), 21 document_cookie(0),
22 selection_only(false), 22 selection_only(false),
23 supports_alpha_blend(false), 23 supports_alpha_blend(false),
24 preview_ui_addr(), 24 preview_ui_id(-1),
25 preview_request_id(0), 25 preview_request_id(0),
26 is_first_request(false), 26 is_first_request(false),
27 print_scaling_option(WebKit::WebPrintScalingOptionSourceSize), 27 print_scaling_option(WebKit::WebPrintScalingOptionSourceSize),
28 print_to_pdf(false), 28 print_to_pdf(false),
29 display_header_footer(false), 29 display_header_footer(false),
30 date(), 30 date(),
31 title(), 31 title(),
32 url() { 32 url() {
33 } 33 }
34 34
35 PrintMsg_Print_Params::~PrintMsg_Print_Params() {} 35 PrintMsg_Print_Params::~PrintMsg_Print_Params() {}
36 36
37 void PrintMsg_Print_Params::Reset() { 37 void PrintMsg_Print_Params::Reset() {
38 page_size = gfx::Size(); 38 page_size = gfx::Size();
39 content_size = gfx::Size(); 39 content_size = gfx::Size();
40 printable_area = gfx::Rect(); 40 printable_area = gfx::Rect();
41 margin_top = 0; 41 margin_top = 0;
42 margin_left = 0; 42 margin_left = 0;
43 dpi = 0; 43 dpi = 0;
44 min_shrink = 0; 44 min_shrink = 0;
45 max_shrink = 0; 45 max_shrink = 0;
46 desired_dpi = 0; 46 desired_dpi = 0;
47 document_cookie = 0; 47 document_cookie = 0;
48 selection_only = false; 48 selection_only = false;
49 supports_alpha_blend = false; 49 supports_alpha_blend = false;
50 preview_ui_addr = std::string(); 50 preview_ui_id = -1;
51 preview_request_id = 0; 51 preview_request_id = 0;
52 is_first_request = false; 52 is_first_request = false;
53 print_scaling_option = WebKit::WebPrintScalingOptionSourceSize; 53 print_scaling_option = WebKit::WebPrintScalingOptionSourceSize;
54 print_to_pdf = false; 54 print_to_pdf = false;
55 display_header_footer = false; 55 display_header_footer = false;
56 date = string16(); 56 date = string16();
57 title = string16(); 57 title = string16();
58 url = string16(); 58 url = string16();
59 } 59 }
60 60
61 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params() 61 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params()
62 : pages() { 62 : pages() {
63 } 63 }
64 64
65 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {} 65 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {}
66 66
67 void PrintMsg_PrintPages_Params::Reset() { 67 void PrintMsg_PrintPages_Params::Reset() {
68 params.Reset(); 68 params.Reset();
69 pages = std::vector<int>(); 69 pages = std::vector<int>();
70 } 70 }
OLDNEW
« no previous file with comments | « chrome/common/print_messages.h ('k') | chrome/renderer/chrome_mock_render_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698