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

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

Issue 255543006: Printing on Windows via PDF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tidy Created 6 years, 7 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 #if !defined(PRINTING_WIN_USES_PDF_AS_METAFILE)
8
Vitaly Buka (NO REVIEWS) 2014/05/13 23:54:33 GYP file?
scottmg 2014/05/14 00:34:48 Done.
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
9 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
10 #include "base/process/process_handle.h" 12 #include "base/process/process_handle.h"
11 #include "base/win/scoped_gdi_object.h" 13 #include "base/win/scoped_gdi_object.h"
12 #include "base/win/scoped_hdc.h" 14 #include "base/win/scoped_hdc.h"
13 #include "base/win/scoped_select_object.h" 15 #include "base/win/scoped_select_object.h"
14 #include "chrome/common/print_messages.h" 16 #include "chrome/common/print_messages.h"
15 #include "printing/metafile.h" 17 #include "printing/metafile.h"
16 #include "printing/metafile_impl.h" 18 #include "printing/metafile_impl.h"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 } 242 }
241 shared_buf.GiveToProcess(base::GetCurrentProcessHandle(), shared_mem_handle); 243 shared_buf.GiveToProcess(base::GetCurrentProcessHandle(), shared_mem_handle);
242 shared_buf.Unmap(); 244 shared_buf.Unmap();
243 245
244 Send(new PrintHostMsg_DuplicateSection(routing_id(), *shared_mem_handle, 246 Send(new PrintHostMsg_DuplicateSection(routing_id(), *shared_mem_handle,
245 shared_mem_handle)); 247 shared_mem_handle));
246 return true; 248 return true;
247 } 249 }
248 250
249 } // namespace printing 251 } // namespace printing
252
253 #endif // !PRINTING_WIN_USES_PDF_AS_METAFILE
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698