| 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_fullscreen_host.h" | 5 #include "chrome/renderer/pepper/pepper_flash_fullscreen_host.h" |
| 6 | 6 |
| 7 #include "content/public/renderer/ppapi_plugin_instance.h" |
| 7 #include "content/public/renderer/renderer_ppapi_host.h" | 8 #include "content/public/renderer/renderer_ppapi_host.h" |
| 8 #include "ppapi/c/pp_errors.h" | 9 #include "ppapi/c/pp_errors.h" |
| 9 #include "ppapi/host/dispatch_host_message.h" | 10 #include "ppapi/host/dispatch_host_message.h" |
| 10 #include "ppapi/host/host_message_context.h" | 11 #include "ppapi/host/host_message_context.h" |
| 11 #include "ppapi/host/ppapi_host.h" | 12 #include "ppapi/host/ppapi_host.h" |
| 12 #include "ppapi/proxy/ppapi_messages.h" | 13 #include "ppapi/proxy/ppapi_messages.h" |
| 13 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | |
| 14 | 14 |
| 15 namespace chrome { | 15 namespace chrome { |
| 16 | 16 |
| 17 PepperFlashFullscreenHost::PepperFlashFullscreenHost( | 17 PepperFlashFullscreenHost::PepperFlashFullscreenHost( |
| 18 content::RendererPpapiHost* host, | 18 content::RendererPpapiHost* host, |
| 19 PP_Instance instance, | 19 PP_Instance instance, |
| 20 PP_Resource resource) | 20 PP_Resource resource) |
| 21 : ResourceHost(host->GetPpapiHost(), instance, resource), | 21 : ResourceHost(host->GetPpapiHost(), instance, resource), |
| 22 renderer_ppapi_host_(host) { | 22 renderer_ppapi_host_(host) { |
| 23 } | 23 } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 43 renderer_ppapi_host_->GetPluginInstance(pp_instance()); | 43 renderer_ppapi_host_->GetPluginInstance(pp_instance()); |
| 44 if (plugin_instance) { | 44 if (plugin_instance) { |
| 45 plugin_instance->FlashSetFullscreen(fullscreen, true); | 45 plugin_instance->FlashSetFullscreen(fullscreen, true); |
| 46 return PP_OK; | 46 return PP_OK; |
| 47 } | 47 } |
| 48 return PP_ERROR_FAILED; | 48 return PP_ERROR_FAILED; |
| 49 } | 49 } |
| 50 | 50 |
| 51 } // namespace chrome | 51 } // namespace chrome |
| 52 | 52 |
| OLD | NEW |