| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // TODO(sgurun) copied from chrome/common. Remove after crbug.com/322276 | 5 // TODO(sgurun) copied from chrome/common. Remove after crbug.com/322276 |
| 6 | 6 |
| 7 #include "android_webview/common/print_messages.h" | 7 #include "android_webview/common/print_messages.h" |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 desired_dpi = 0; | 48 desired_dpi = 0; |
| 49 document_cookie = 0; | 49 document_cookie = 0; |
| 50 selection_only = false; | 50 selection_only = false; |
| 51 supports_alpha_blend = false; | 51 supports_alpha_blend = false; |
| 52 preview_ui_id = -1; | 52 preview_ui_id = -1; |
| 53 preview_request_id = 0; | 53 preview_request_id = 0; |
| 54 is_first_request = false; | 54 is_first_request = false; |
| 55 print_scaling_option = blink::WebPrintScalingOptionSourceSize; | 55 print_scaling_option = blink::WebPrintScalingOptionSourceSize; |
| 56 print_to_pdf = false; | 56 print_to_pdf = false; |
| 57 display_header_footer = false; | 57 display_header_footer = false; |
| 58 title = string16(); | 58 title = base::string16(); |
| 59 url = string16(); | 59 url = base::string16(); |
| 60 should_print_backgrounds = false; | 60 should_print_backgrounds = false; |
| 61 } | 61 } |
| 62 | 62 |
| 63 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params() | 63 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params() |
| 64 : pages() { | 64 : pages() { |
| 65 } | 65 } |
| 66 | 66 |
| 67 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {} | 67 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {} |
| 68 | 68 |
| 69 void PrintMsg_PrintPages_Params::Reset() { | 69 void PrintMsg_PrintPages_Params::Reset() { |
| 70 params.Reset(); | 70 params.Reset(); |
| 71 pages = std::vector<int>(); | 71 pages = std::vector<int>(); |
| 72 } | 72 } |
| 73 | 73 |
| 74 PrintHostMsg_RequestPrintPreview_Params:: | 74 PrintHostMsg_RequestPrintPreview_Params:: |
| 75 PrintHostMsg_RequestPrintPreview_Params() | 75 PrintHostMsg_RequestPrintPreview_Params() |
| 76 : is_modifiable(false), | 76 : is_modifiable(false), |
| 77 webnode_only(false), | 77 webnode_only(false), |
| 78 has_selection(false), | 78 has_selection(false), |
| 79 selection_only(false) { | 79 selection_only(false) { |
| 80 } | 80 } |
| 81 | 81 |
| 82 PrintHostMsg_RequestPrintPreview_Params:: | 82 PrintHostMsg_RequestPrintPreview_Params:: |
| 83 ~PrintHostMsg_RequestPrintPreview_Params() {} | 83 ~PrintHostMsg_RequestPrintPreview_Params() {} |
| OLD | NEW |