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

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

Issue 7719014: PrintPreview: Printing preview of a PDF on Mac with Skia only previews the last page of the PDF (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: '' Created 9 years, 2 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/print_web_view_helper_linux.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 // need to create a new metafile. The result may be either the passed 227 // need to create a new metafile. The result may be either the passed
228 // |metafile| or a new one. In either case, the caller owns both |metafile| 228 // |metafile| or a new one. In either case, the caller owns both |metafile|
229 // and the result. 229 // and the result.
230 printing::Metafile* RenderPage(const PrintMsg_Print_Params& params, 230 printing::Metafile* RenderPage(const PrintMsg_Print_Params& params,
231 float* scale_factor, int page_number, 231 float* scale_factor, int page_number,
232 bool is_preview, WebKit::WebFrame* frame, 232 bool is_preview, WebKit::WebFrame* frame,
233 printing::Metafile* metafile); 233 printing::Metafile* metafile);
234 #elif defined(OS_MACOSX) 234 #elif defined(OS_MACOSX)
235 void RenderPage(const gfx::Size& page_size, const gfx::Rect& content_area, 235 void RenderPage(const gfx::Size& page_size, const gfx::Rect& content_area,
236 const float& scale_factor, int page_number, 236 const float& scale_factor, int page_number,
237 WebKit::WebFrame* frame, printing::Metafile* metafile); 237 WebKit::WebFrame* frame, bool is_preview,
238 printing::Metafile* metafile);
238 #elif defined(OS_POSIX) 239 #elif defined(OS_POSIX)
239 bool RenderPages(const PrintMsg_PrintPages_Params& params, 240 bool RenderPages(const PrintMsg_PrintPages_Params& params,
240 WebKit::WebFrame* frame, const WebKit::WebNode& node, 241 WebKit::WebFrame* frame, const WebKit::WebNode& node,
241 int* page_count, PrepareFrameAndViewForPrint* prepare, 242 int* page_count, PrepareFrameAndViewForPrint* prepare,
242 printing::Metafile* metafile); 243 printing::Metafile* metafile);
243 #endif // defined(OS_WIN) 244 #endif // defined(OS_WIN)
244 245
245 // Helper methods ----------------------------------------------------------- 246 // Helper methods -----------------------------------------------------------
246 247
247 bool CopyAndPrint(WebKit::WebFrame* web_frame); 248 bool CopyAndPrint(WebKit::WebFrame* web_frame);
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 435
435 State state_; 436 State state_;
436 }; 437 };
437 438
438 PrintPreviewContext print_preview_context_; 439 PrintPreviewContext print_preview_context_;
439 440
440 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); 441 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper);
441 }; 442 };
442 443
443 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ 444 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/print_web_view_helper_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698