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 <vector> | 7 #include <vector> |
8 | 8 |
9 #include "chrome/renderer/pepper/ppb_pdf_impl.h" | 9 #include "chrome/renderer/pepper/ppb_pdf_impl.h" |
10 #include "content/public/renderer/render_thread.h" | 10 #include "content/public/renderer/render_thread.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 host_context->reply_msg = PpapiPluginMsg_Flash_GetProxyForURLReply(proxy); | 85 host_context->reply_msg = PpapiPluginMsg_Flash_GetProxyForURLReply(proxy); |
86 return PP_OK; | 86 return PP_OK; |
87 } | 87 } |
88 | 88 |
89 int32_t PepperFlashRendererHost::OnSetInstanceAlwaysOnTop( | 89 int32_t PepperFlashRendererHost::OnSetInstanceAlwaysOnTop( |
90 ppapi::host::HostMessageContext* host_context, | 90 ppapi::host::HostMessageContext* host_context, |
91 bool on_top) { | 91 bool on_top) { |
92 webkit::ppapi::PluginInstance* plugin_instance = | 92 webkit::ppapi::PluginInstance* plugin_instance = |
93 host_->GetPluginInstance(pp_instance()); | 93 host_->GetPluginInstance(pp_instance()); |
94 if (plugin_instance) | 94 if (plugin_instance) |
95 plugin_instance->set_always_on_top(on_top); | 95 plugin_instance->SetAlwaysOnTop(on_top); |
96 // Since no reply is sent for this message, it doesn't make sense to return an | 96 // Since no reply is sent for this message, it doesn't make sense to return an |
97 // error. | 97 // error. |
98 return PP_OK; | 98 return PP_OK; |
99 } | 99 } |
100 | 100 |
101 int32_t PepperFlashRendererHost::OnDrawGlyphs( | 101 int32_t PepperFlashRendererHost::OnDrawGlyphs( |
102 ppapi::host::HostMessageContext* host_context, | 102 ppapi::host::HostMessageContext* host_context, |
103 ppapi::proxy::PPBFlash_DrawGlyphs_Params params) { | 103 ppapi::proxy::PPBFlash_DrawGlyphs_Params params) { |
104 if (params.glyph_indices.size() != params.glyph_advances.size() || | 104 if (params.glyph_indices.size() != params.glyph_advances.size() || |
105 params.glyph_indices.empty()) | 105 params.glyph_indices.empty()) |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 return PP_ERROR_FAILED; | 250 return PP_ERROR_FAILED; |
251 } | 251 } |
252 | 252 |
253 int32_t PepperFlashRendererHost::OnInvokePrinting( | 253 int32_t PepperFlashRendererHost::OnInvokePrinting( |
254 ppapi::host::HostMessageContext* host_context) { | 254 ppapi::host::HostMessageContext* host_context) { |
255 PPB_PDF_Impl::InvokePrintingForInstance(pp_instance()); | 255 PPB_PDF_Impl::InvokePrintingForInstance(pp_instance()); |
256 return PP_OK; | 256 return PP_OK; |
257 } | 257 } |
258 | 258 |
259 } // namespace chrome | 259 } // namespace chrome |
OLD | NEW |