Chromium Code Reviews| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 179 bool source_is_html, | 179 bool source_is_html, |
| 180 const base::DictionaryValue& job_settings, | 180 const base::DictionaryValue& job_settings, |
| 181 const PrintMsg_Print_Params& params); | 181 const PrintMsg_Print_Params& params); |
| 182 | 182 |
| 183 // Initiate print preview. | 183 // Initiate print preview. |
| 184 void OnInitiatePrintPreview(); | 184 void OnInitiatePrintPreview(); |
| 185 | 185 |
| 186 // Start the process of generating a print preview using |settings|. | 186 // Start the process of generating a print preview using |settings|. |
| 187 void OnPrintPreview(const base::DictionaryValue& settings); | 187 void OnPrintPreview(const base::DictionaryValue& settings); |
| 188 | 188 |
| 189 // Initiate a print for file. | |
| 190 void OnPrintForFile(); | |
|
MAD
2012/06/15 02:54:29
To be removed..
MAD
2012/06/28 15:48:14
Done.
| |
| 191 | |
| 189 // Initialize the print preview document. | 192 // Initialize the print preview document. |
| 190 bool CreatePreviewDocument(); | 193 bool CreatePreviewDocument(); |
| 191 | 194 |
| 192 // Renders a print preview page. |page_number| is 0-based. | 195 // Renders a print preview page. |page_number| is 0-based. |
| 193 // Returns true if print preview should continue, false on failure. | 196 // Returns true if print preview should continue, false on failure. |
| 194 bool RenderPreviewPage(int page_number); | 197 bool RenderPreviewPage(int page_number); |
| 195 | 198 |
| 196 // Finalize the print ready preview document. | 199 // Finalize the print ready preview document. |
| 197 bool FinalizePrintReadyDocument(); | 200 bool FinalizePrintReadyDocument(); |
| 198 | 201 |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 484 enum PrintPreviewErrorBuckets error_; | 487 enum PrintPreviewErrorBuckets error_; |
| 485 | 488 |
| 486 State state_; | 489 State state_; |
| 487 }; | 490 }; |
| 488 | 491 |
| 489 PrintPreviewContext print_preview_context_; | 492 PrintPreviewContext print_preview_context_; |
| 490 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); | 493 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); |
| 491 }; | 494 }; |
| 492 | 495 |
| 493 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ | 496 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ |
| OLD | NEW |