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

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

Issue 335473002: Guarded shrink setting with ifdefs to make clear where it is used. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Thu 06/12/2014 0:59:45.49 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
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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « chrome/common/print_messages.h ('k') | 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