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

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: almost working; SafePlayback failing in final print 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 // XXX TODO in .gyp instead
8 #if !defined(PRINTING_WIN_USES_PDF_AS_METAFILE)
9
7 #include "base/logging.h" 10 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
9 #include "base/metrics/histogram.h" 12 #include "base/metrics/histogram.h"
10 #include "base/process/process_handle.h" 13 #include "base/process/process_handle.h"
11 #include "base/win/scoped_gdi_object.h" 14 #include "base/win/scoped_gdi_object.h"
12 #include "base/win/scoped_hdc.h" 15 #include "base/win/scoped_hdc.h"
13 #include "base/win/scoped_select_object.h" 16 #include "base/win/scoped_select_object.h"
14 #include "chrome/common/print_messages.h" 17 #include "chrome/common/print_messages.h"
15 #include "printing/metafile.h" 18 #include "printing/metafile.h"
16 #include "printing/metafile_impl.h" 19 #include "printing/metafile_impl.h"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 } 243 }
241 shared_buf.GiveToProcess(base::GetCurrentProcessHandle(), shared_mem_handle); 244 shared_buf.GiveToProcess(base::GetCurrentProcessHandle(), shared_mem_handle);
242 shared_buf.Unmap(); 245 shared_buf.Unmap();
243 246
244 Send(new PrintHostMsg_DuplicateSection(routing_id(), *shared_mem_handle, 247 Send(new PrintHostMsg_DuplicateSection(routing_id(), *shared_mem_handle,
245 shared_mem_handle)); 248 shared_mem_handle));
246 return true; 249 return true;
247 } 250 }
248 251
249 } // namespace printing 252 } // namespace printing
253
254 #endif // !PRINTING_WIN_USES_PDF_AS_METAFILE
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698