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

Side by Side Diff: chrome/renderer/printing/print_web_view_helper_win.cc

Issue 63273002: Rename WebKit namespace to blink (part 4) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/process/process_handle.h" 10 #include "base/process/process_handle.h"
(...skipping 10 matching lines...) Expand all
21 #include "skia/ext/refptr.h" 21 #include "skia/ext/refptr.h"
22 #include "skia/ext/vector_canvas.h" 22 #include "skia/ext/vector_canvas.h"
23 #include "third_party/WebKit/public/web/WebFrame.h" 23 #include "third_party/WebKit/public/web/WebFrame.h"
24 #include "ui/gfx/gdi_util.h" 24 #include "ui/gfx/gdi_util.h"
25 #include "ui/gfx/point.h" 25 #include "ui/gfx/point.h"
26 #include "ui/gfx/rect.h" 26 #include "ui/gfx/rect.h"
27 #include "ui/gfx/size.h" 27 #include "ui/gfx/size.h"
28 28
29 namespace printing { 29 namespace printing {
30 30
31 using WebKit::WebFrame; 31 using blink::WebFrame;
32 32
33 void PrintWebViewHelper::PrintPageInternal( 33 void PrintWebViewHelper::PrintPageInternal(
34 const PrintMsg_PrintPage_Params& params, 34 const PrintMsg_PrintPage_Params& params,
35 const gfx::Size& canvas_size, 35 const gfx::Size& canvas_size,
36 WebFrame* frame) { 36 WebFrame* frame) {
37 // Generate a memory-based metafile. It will use the current screen's DPI. 37 // Generate a memory-based metafile. It will use the current screen's DPI.
38 // Each metafile contains a single page. 38 // Each metafile contains a single page.
39 scoped_ptr<NativeMetafile> metafile(new NativeMetafile); 39 scoped_ptr<NativeMetafile> metafile(new NativeMetafile);
40 metafile->Init(); 40 metafile->Init();
41 DCHECK(metafile->context()); 41 DCHECK(metafile->context());
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 } 240 }
241 shared_buf.GiveToProcess(base::GetCurrentProcessHandle(), shared_mem_handle); 241 shared_buf.GiveToProcess(base::GetCurrentProcessHandle(), shared_mem_handle);
242 shared_buf.Unmap(); 242 shared_buf.Unmap();
243 243
244 Send(new PrintHostMsg_DuplicateSection(routing_id(), *shared_mem_handle, 244 Send(new PrintHostMsg_DuplicateSection(routing_id(), *shared_mem_handle,
245 shared_mem_handle)); 245 shared_mem_handle));
246 return true; 246 return true;
247 } 247 }
248 248
249 } // namespace printing 249 } // namespace printing
OLDNEW
« no previous file with comments | « chrome/renderer/printing/print_web_view_helper_mac.mm ('k') | chrome/renderer/safe_browsing/malware_dom_details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698