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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 #if defined(OS_LINUX) || defined(OS_ANDROID) | 204 #if defined(OS_LINUX) || defined(OS_ANDROID) |
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, | |
215 gfx::Size* page_size_in_dpi, | 214 gfx::Size* page_size_in_dpi, |
216 gfx::Rect* content_area_in_dpi); | 215 gfx::Rect* content_area_in_dpi); |
217 #else | 216 #else |
218 void PrintPageInternal(const PrintMsg_PrintPage_Params& params, | 217 void PrintPageInternal(const PrintMsg_PrintPage_Params& params, |
219 const gfx::Size& canvas_size, | 218 const gfx::Size& canvas_size, |
220 blink::WebFrame* frame); | 219 blink::WebFrame* frame); |
221 #endif | 220 #endif |
222 | 221 |
223 // Render the frame for printing. | 222 // Render the frame for printing. |
224 bool RenderPagesForPrint(blink::WebLocalFrame* frame, | 223 bool RenderPagesForPrint(blink::WebLocalFrame* frame, |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 PrintPreviewContext print_preview_context_; | 455 PrintPreviewContext print_preview_context_; |
457 bool is_loading_; | 456 bool is_loading_; |
458 bool is_scripted_preview_delayed_; | 457 bool is_scripted_preview_delayed_; |
459 base::WeakPtrFactory<PrintWebViewHelper> weak_ptr_factory_; | 458 base::WeakPtrFactory<PrintWebViewHelper> weak_ptr_factory_; |
460 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); | 459 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); |
461 }; | 460 }; |
462 | 461 |
463 } // namespace printing | 462 } // namespace printing |
464 | 463 |
465 #endif // CHROME_RENDERER_PRINTING_PRINT_WEB_VIEW_HELPER_H_ | 464 #endif // CHROME_RENDERER_PRINTING_PRINT_WEB_VIEW_HELPER_H_ |
OLD | NEW |