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_PRINTING_PRINT_WEB_VIEW_HELPER_H_ | 5 #ifndef CHROME_RENDERER_PRINTING_PRINT_WEB_VIEW_HELPER_H_ |
6 #define CHROME_RENDERER_PRINTING_PRINT_WEB_VIEW_HELPER_H_ | 6 #define CHROME_RENDERER_PRINTING_PRINT_WEB_VIEW_HELPER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 void PrintPageInternal(const PrintMsg_PrintPage_Params& params, | 205 void PrintPageInternal(const PrintMsg_PrintPage_Params& params, |
206 const gfx::Size& canvas_size, | 206 const gfx::Size& canvas_size, |
207 blink::WebFrame* frame, | 207 blink::WebFrame* frame, |
208 Metafile* metafile); | 208 Metafile* metafile); |
209 #elif defined(WIN_PDF_METAFILE_FOR_PRINTING) | 209 #elif defined(WIN_PDF_METAFILE_FOR_PRINTING) |
210 void PrintPageInternal(const PrintMsg_PrintPage_Params& params, | 210 void PrintPageInternal(const PrintMsg_PrintPage_Params& params, |
211 const gfx::Size& canvas_size, | 211 const gfx::Size& canvas_size, |
212 blink::WebFrame* frame, | 212 blink::WebFrame* frame, |
213 Metafile* metafile, | 213 Metafile* metafile, |
214 bool is_preview, | 214 bool is_preview, |
215 double* actual_shrink, | |
216 gfx::Size* page_size_in_dpi, | 215 gfx::Size* page_size_in_dpi, |
217 gfx::Rect* content_area_in_dpi); | 216 gfx::Rect* content_area_in_dpi); |
218 #else | 217 #else |
219 void PrintPageInternal(const PrintMsg_PrintPage_Params& params, | 218 void PrintPageInternal(const PrintMsg_PrintPage_Params& params, |
220 const gfx::Size& canvas_size, | 219 const gfx::Size& canvas_size, |
221 blink::WebFrame* frame); | 220 blink::WebFrame* frame); |
222 #endif | 221 #endif |
223 | 222 |
224 // Render the frame for printing. | 223 // Render the frame for printing. |
225 bool RenderPagesForPrint(blink::WebLocalFrame* frame, | 224 bool RenderPagesForPrint(blink::WebLocalFrame* frame, |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 PrintPreviewContext print_preview_context_; | 456 PrintPreviewContext print_preview_context_; |
458 bool is_loading_; | 457 bool is_loading_; |
459 bool is_scripted_preview_delayed_; | 458 bool is_scripted_preview_delayed_; |
460 base::WeakPtrFactory<PrintWebViewHelper> weak_ptr_factory_; | 459 base::WeakPtrFactory<PrintWebViewHelper> weak_ptr_factory_; |
461 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); | 460 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); |
462 }; | 461 }; |
463 | 462 |
464 } // namespace printing | 463 } // namespace printing |
465 | 464 |
466 #endif // CHROME_RENDERER_PRINTING_PRINT_WEB_VIEW_HELPER_H_ | 465 #endif // CHROME_RENDERER_PRINTING_PRINT_WEB_VIEW_HELPER_H_ |
OLD | NEW |