| 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/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "ppapi/c/private/ppb_pdf.h" | 21 #include "ppapi/c/private/ppb_pdf.h" |
| 22 #include "ppapi/shared_impl/resource.h" | 22 #include "ppapi/shared_impl/resource.h" |
| 23 #include "ppapi/shared_impl/resource_tracker.h" | 23 #include "ppapi/shared_impl/resource_tracker.h" |
| 24 #include "ppapi/shared_impl/var.h" | 24 #include "ppapi/shared_impl/var.h" |
| 25 #include "skia/ext/platform_canvas.h" | 25 #include "skia/ext/platform_canvas.h" |
| 26 #include "third_party/skia/include/core/SkBitmap.h" | 26 #include "third_party/skia/include/core/SkBitmap.h" |
| 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
| 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" | 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
| 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" | 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" |
| 31 #include "third_party/icu/public/i18n/unicode/usearch.h" |
| 31 #include "ui/base/l10n/l10n_util.h" | 32 #include "ui/base/l10n/l10n_util.h" |
| 32 #include "ui/base/layout.h" | 33 #include "ui/base/layout.h" |
| 33 #include "ui/base/resource/resource_bundle.h" | 34 #include "ui/base/resource/resource_bundle.h" |
| 34 #include "ui/gfx/image/image_skia.h" | 35 #include "ui/gfx/image/image_skia.h" |
| 35 #include "ui/gfx/image/image_skia_rep.h" | 36 #include "ui/gfx/image/image_skia_rep.h" |
| 36 #include "unicode/usearch.h" | |
| 37 #include "webkit/plugins/ppapi/host_globals.h" | 37 #include "webkit/plugins/ppapi/host_globals.h" |
| 38 #include "webkit/plugins/ppapi/plugin_delegate.h" | 38 #include "webkit/plugins/ppapi/plugin_delegate.h" |
| 39 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 39 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
| 40 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" | 40 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" |
| 41 | 41 |
| 42 using ppapi::PpapiGlobals; | 42 using ppapi::PpapiGlobals; |
| 43 using webkit::ppapi::HostGlobals; | 43 using webkit::ppapi::HostGlobals; |
| 44 using webkit::ppapi::PluginInstance; | 44 using webkit::ppapi::PluginInstance; |
| 45 using WebKit::WebElement; | 45 using WebKit::WebElement; |
| 46 using WebKit::WebView; | 46 using WebKit::WebView; |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 | 418 |
| 419 WebKit::WebElement element = instance->container()->element(); | 419 WebKit::WebElement element = instance->container()->element(); |
| 420 WebKit::WebView* view = element.document().frame()->view(); | 420 WebKit::WebView* view = element.document().frame()->view(); |
| 421 content::RenderView* render_view = content::RenderView::FromWebView(view); | 421 content::RenderView* render_view = content::RenderView::FromWebView(view); |
| 422 | 422 |
| 423 PrintWebViewHelper* print_view_helper = PrintWebViewHelper::Get(render_view); | 423 PrintWebViewHelper* print_view_helper = PrintWebViewHelper::Get(render_view); |
| 424 if (print_view_helper) | 424 if (print_view_helper) |
| 425 print_view_helper->PrintNode(element); | 425 print_view_helper->PrintNode(element); |
| 426 #endif | 426 #endif |
| 427 } | 427 } |
| OLD | NEW |