| OLD | NEW |
| 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 #ifndef CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ | 5 #ifndef CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ |
| 6 #define CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ | 6 #define CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 bool InitPrintSettingsAndPrepareFrame( | 209 bool InitPrintSettingsAndPrepareFrame( |
| 210 WebKit::WebFrame* frame, | 210 WebKit::WebFrame* frame, |
| 211 const WebKit::WebNode& node, | 211 const WebKit::WebNode& node, |
| 212 scoped_ptr<PrepareFrameAndViewForPrint>* prepare); | 212 scoped_ptr<PrepareFrameAndViewForPrint>* prepare); |
| 213 | 213 |
| 214 // Update the current print settings with new |job_settings|. |job_settings| | 214 // Update the current print settings with new |job_settings|. |job_settings| |
| 215 // dictionary contains print job details such as printer name, number of | 215 // dictionary contains print job details such as printer name, number of |
| 216 // copies, page range, etc. | 216 // copies, page range, etc. |
| 217 bool UpdatePrintSettings(WebKit::WebFrame* frame, | 217 bool UpdatePrintSettings(WebKit::WebFrame* frame, |
| 218 const WebKit::WebNode& node, | 218 const WebKit::WebNode& node, |
| 219 const base::DictionaryValue& passed_job_settings, | 219 const base::DictionaryValue& passed_job_settings); |
| 220 bool print_for_preview); | |
| 221 | 220 |
| 222 // Get final print settings from the user. | 221 // Get final print settings from the user. |
| 223 // Return false if the user cancels or on error. | 222 // Return false if the user cancels or on error. |
| 224 bool GetPrintSettingsFromUser(WebKit::WebFrame* frame, | 223 bool GetPrintSettingsFromUser(WebKit::WebFrame* frame, |
| 225 const WebKit::WebNode& node, | 224 const WebKit::WebNode& node, |
| 226 int expected_pages_count, | 225 int expected_pages_count, |
| 227 bool use_browser_overlays); | 226 bool use_browser_overlays); |
| 228 | 227 |
| 229 // Page Printing / Rendering ------------------------------------------------ | 228 // Page Printing / Rendering ------------------------------------------------ |
| 230 | 229 |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 enum PrintPreviewErrorBuckets error_; | 474 enum PrintPreviewErrorBuckets error_; |
| 476 | 475 |
| 477 State state_; | 476 State state_; |
| 478 }; | 477 }; |
| 479 | 478 |
| 480 PrintPreviewContext print_preview_context_; | 479 PrintPreviewContext print_preview_context_; |
| 481 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); | 480 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); |
| 482 }; | 481 }; |
| 483 | 482 |
| 484 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ | 483 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ |
| OLD | NEW |