| 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 "components/printing/renderer/print_web_view_helper.h" | 5 #include "components/printing/renderer/print_web_view_helper.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/logging.h" | 9 #include "base/logging.h" |
| 8 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "build/build_config.h" |
| 9 #include "components/printing/common/print_messages.h" | 12 #include "components/printing/common/print_messages.h" |
| 10 #include "content/public/renderer/render_thread.h" | 13 #include "content/public/renderer/render_thread.h" |
| 11 #include "printing/metafile_skia_wrapper.h" | 14 #include "printing/metafile_skia_wrapper.h" |
| 12 #include "printing/page_size_margins.h" | 15 #include "printing/page_size_margins.h" |
| 13 #include "printing/pdf_metafile_skia.h" | 16 #include "printing/pdf_metafile_skia.h" |
| 14 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 17 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 15 | 18 |
| 16 #if defined(OS_CHROMEOS) || defined(OS_ANDROID) | 19 #if defined(OS_CHROMEOS) || defined(OS_ANDROID) |
| 17 #include "base/file_descriptor_posix.h" | 20 #include "base/file_descriptor_posix.h" |
| 18 #else | 21 #else |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 154 |
| 152 RenderPageContent(frame, params.page_number, canvas_area, content_area, | 155 RenderPageContent(frame, params.page_number, canvas_area, content_area, |
| 153 scale_factor, canvas); | 156 scale_factor, canvas); |
| 154 | 157 |
| 155 // Done printing. Close the canvas to retrieve the compiled metafile. | 158 // Done printing. Close the canvas to retrieve the compiled metafile. |
| 156 if (!metafile->FinishPage()) | 159 if (!metafile->FinishPage()) |
| 157 NOTREACHED() << "metafile failed"; | 160 NOTREACHED() << "metafile failed"; |
| 158 } | 161 } |
| 159 | 162 |
| 160 } // namespace printing | 163 } // namespace printing |
| OLD | NEW |