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/pepper/ppb_pdf_impl.h" | 5 #include "chrome/renderer/pepper/ppb_pdf_impl.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "base/safe_numerics.h" | 9 #include "base/safe_numerics.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "ppapi/c/private/ppb_pdf.h" | 22 #include "ppapi/c/private/ppb_pdf.h" |
23 #include "ppapi/shared_impl/resource.h" | 23 #include "ppapi/shared_impl/resource.h" |
24 #include "ppapi/shared_impl/resource_tracker.h" | 24 #include "ppapi/shared_impl/resource_tracker.h" |
25 #include "ppapi/shared_impl/var.h" | 25 #include "ppapi/shared_impl/var.h" |
26 #include "skia/ext/platform_canvas.h" | 26 #include "skia/ext/platform_canvas.h" |
27 #include "third_party/skia/include/core/SkBitmap.h" | 27 #include "third_party/skia/include/core/SkBitmap.h" |
28 #include "third_party/WebKit/public/web/WebDocument.h" | 28 #include "third_party/WebKit/public/web/WebDocument.h" |
29 #include "third_party/WebKit/public/web/WebElement.h" | 29 #include "third_party/WebKit/public/web/WebElement.h" |
30 #include "third_party/WebKit/public/web/WebFrame.h" | 30 #include "third_party/WebKit/public/web/WebFrame.h" |
31 #include "third_party/WebKit/public/web/WebPluginContainer.h" | 31 #include "third_party/WebKit/public/web/WebPluginContainer.h" |
32 #include "third_party/icu/public/i18n/unicode/usearch.h" | 32 #include "third_party/icu/source/i18n/unicode/usearch.h" |
33 #include "ui/base/l10n/l10n_util.h" | 33 #include "ui/base/l10n/l10n_util.h" |
34 #include "ui/base/layout.h" | 34 #include "ui/base/layout.h" |
35 #include "ui/base/resource/resource_bundle.h" | 35 #include "ui/base/resource/resource_bundle.h" |
36 #include "ui/gfx/image/image_skia.h" | 36 #include "ui/gfx/image/image_skia.h" |
37 #include "ui/gfx/image/image_skia_rep.h" | 37 #include "ui/gfx/image/image_skia_rep.h" |
38 #include "webkit/plugins/ppapi/host_globals.h" | 38 #include "webkit/plugins/ppapi/host_globals.h" |
39 #include "webkit/plugins/ppapi/plugin_delegate.h" | 39 #include "webkit/plugins/ppapi/plugin_delegate.h" |
40 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 40 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
41 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" | 41 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" |
42 | 42 |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 | 447 |
448 // static | 448 // static |
449 void PPB_PDF_Impl::InvokePrintingForInstance(PP_Instance instance_id) { | 449 void PPB_PDF_Impl::InvokePrintingForInstance(PP_Instance instance_id) { |
450 #if defined(ENABLE_PRINTING) | 450 #if defined(ENABLE_PRINTING) |
451 WebKit::WebElement element = GetWebElement(instance_id); | 451 WebKit::WebElement element = GetWebElement(instance_id); |
452 printing::PrintWebViewHelper* helper = GetPrintWebViewHelper(element); | 452 printing::PrintWebViewHelper* helper = GetPrintWebViewHelper(element); |
453 if (helper) | 453 if (helper) |
454 helper->PrintNode(element); | 454 helper->PrintNode(element); |
455 #endif // ENABLE_PRINTING | 455 #endif // ENABLE_PRINTING |
456 } | 456 } |
OLD | NEW |