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/pepper_flash_renderer_host.h" | 5 #include "chrome/renderer/pepper/pepper_flash_renderer_host.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "chrome/renderer/pepper/ppb_pdf_impl.h" | 13 #include "components/pdf/renderer/ppb_pdf_impl.h" |
14 #include "content/public/renderer/pepper_plugin_instance.h" | 14 #include "content/public/renderer/pepper_plugin_instance.h" |
15 #include "content/public/renderer/render_thread.h" | 15 #include "content/public/renderer/render_thread.h" |
16 #include "content/public/renderer/renderer_ppapi_host.h" | 16 #include "content/public/renderer/renderer_ppapi_host.h" |
17 #include "ipc/ipc_message_macros.h" | 17 #include "ipc/ipc_message_macros.h" |
18 #include "net/http/http_util.h" | 18 #include "net/http/http_util.h" |
19 #include "ppapi/c/pp_errors.h" | 19 #include "ppapi/c/pp_errors.h" |
20 #include "ppapi/c/trusted/ppb_browser_font_trusted.h" | 20 #include "ppapi/c/trusted/ppb_browser_font_trusted.h" |
21 #include "ppapi/host/dispatch_host_message.h" | 21 #include "ppapi/host/dispatch_host_message.h" |
22 #include "ppapi/proxy/host_dispatcher.h" | 22 #include "ppapi/proxy/host_dispatcher.h" |
23 #include "ppapi/proxy/ppapi_messages.h" | 23 #include "ppapi/proxy/ppapi_messages.h" |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 host_->GetPluginInstance(pp_instance()); | 370 host_->GetPluginInstance(pp_instance()); |
371 if (plugin_instance && | 371 if (plugin_instance && |
372 plugin_instance->IsRectTopmost(gfx::Rect( | 372 plugin_instance->IsRectTopmost(gfx::Rect( |
373 rect.point.x, rect.point.y, rect.size.width, rect.size.height))) | 373 rect.point.x, rect.point.y, rect.size.width, rect.size.height))) |
374 return PP_OK; | 374 return PP_OK; |
375 return PP_ERROR_FAILED; | 375 return PP_ERROR_FAILED; |
376 } | 376 } |
377 | 377 |
378 int32_t PepperFlashRendererHost::OnInvokePrinting( | 378 int32_t PepperFlashRendererHost::OnInvokePrinting( |
379 ppapi::host::HostMessageContext* host_context) { | 379 ppapi::host::HostMessageContext* host_context) { |
380 PPB_PDF_Impl::InvokePrintingForInstance(pp_instance()); | 380 pdf::PPB_PDF_Impl::InvokePrintingForInstance(pp_instance()); |
381 return PP_OK; | 381 return PP_OK; |
382 } | 382 } |
OLD | NEW |