Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: chrome/renderer/printing/print_web_view_helper.h

Issue 327393005: System dialog does not need any additional changing of page size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Thu 06/12/2014 2:26:55.73 Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/renderer/printing/print_web_view_helper_pdf_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/printing/print_web_view_helper_pdf_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698