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

Side by Side Diff: chrome/renderer/printing/print_web_view_helper_mac.mm

Issue 16109004: Update refernces to Blink's Platform API (chrome) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 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 #include "chrome/renderer/printing/print_web_view_helper.h" 5 #include "chrome/renderer/printing/print_web_view_helper.h"
6 6
7 #import <AppKit/AppKit.h> 7 #import <AppKit/AppKit.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/mac/scoped_nsautorelease_pool.h" 10 #include "base/mac/scoped_nsautorelease_pool.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "chrome/common/print_messages.h" 12 #include "chrome/common/print_messages.h"
13 #include "printing/metafile.h" 13 #include "printing/metafile.h"
14 #include "printing/metafile_impl.h" 14 #include "printing/metafile_impl.h"
15 #include "printing/metafile_skia_wrapper.h" 15 #include "printing/metafile_skia_wrapper.h"
16 #include "printing/page_size_margins.h" 16 #include "printing/page_size_margins.h"
17 #include "skia/ext/platform_device.h" 17 #include "skia/ext/platform_device.h"
18 #include "skia/ext/vector_canvas.h" 18 #include "skia/ext/vector_canvas.h"
19 #include "third_party/WebKit/Source/Platform/chromium/public/WebCanvas.h" 19 #include "third_party/WebKit/public/platform/WebCanvas.h"
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
21 21
22 namespace printing { 22 namespace printing {
23 23
24 using WebKit::WebFrame; 24 using WebKit::WebFrame;
25 25
26 void PrintWebViewHelper::PrintPageInternal( 26 void PrintWebViewHelper::PrintPageInternal(
27 const PrintMsg_PrintPage_Params& params, 27 const PrintMsg_PrintPage_Params& params,
28 const gfx::Size& canvas_size, 28 const gfx::Size& canvas_size,
29 WebFrame* frame) { 29 WebFrame* frame) {
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 } 138 }
139 RenderPageContent(frame, page_number, canvas_area, content_area, 139 RenderPageContent(frame, page_number, canvas_area, content_area,
140 scale_factor, canvas_ptr); 140 scale_factor, canvas_ptr);
141 } 141 }
142 142
143 // Done printing. Close the device context to retrieve the compiled metafile. 143 // Done printing. Close the device context to retrieve the compiled metafile.
144 metafile->FinishPage(); 144 metafile->FinishPage();
145 } 145 }
146 146
147 } // namespace printing 147 } // namespace printing
OLDNEW
« no previous file with comments | « chrome/renderer/printing/print_web_view_helper_browsertest.cc ('k') | chrome/renderer/safe_browsing/malware_dom_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698