Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 | |
| OLD | NEW |