diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc | 15 | ||||
-rw-r--r-- | chrome/browser/renderer_host/pepper/pepper_flash_drm_host.h | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc b/chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc index 22d9401..99d76a1 100644 --- a/chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc +++ b/chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc @@ -145,6 +145,8 @@ int32_t PepperFlashDRMHost::OnResourceMessageReceived( OnHostMsgGetDeviceID) PPAPI_DISPATCH_HOST_RESOURCE_CALL_0(PpapiHostMsg_FlashDRM_GetHmonitor, OnHostMsgGetHmonitor) + PPAPI_DISPATCH_HOST_RESOURCE_CALL_0(PpapiHostMsg_FlashDRM_MonitorIsExternal, + OnHostMsgMonitorIsExternal) IPC_END_MESSAGE_MAP() return PP_ERROR_FAILED; } @@ -170,6 +172,19 @@ int32_t PepperFlashDRMHost::OnHostMsgGetHmonitor( } } +int32_t PepperFlashDRMHost::OnHostMsgMonitorIsExternal( + ppapi::host::HostMessageContext* context) { + int64_t monitor_id = monitor_finder_->GetMonitor(); + if (monitor_id) { + // TODO(bbudge) get information about whether monitor is external. + context->reply_msg = + PpapiPluginMsg_FlashDRM_MonitorIsExternalReply(PP_FALSE); + return PP_OK; + } else { + return PP_ERROR_FAILED; + } +} + void PepperFlashDRMHost::GotDeviceID( ppapi::host::ReplyMessageContext reply_context, const std::string& id, diff --git a/chrome/browser/renderer_host/pepper/pepper_flash_drm_host.h b/chrome/browser/renderer_host/pepper/pepper_flash_drm_host.h index be3bf25..4e87f18 100644 --- a/chrome/browser/renderer_host/pepper/pepper_flash_drm_host.h +++ b/chrome/browser/renderer_host/pepper/pepper_flash_drm_host.h @@ -39,6 +39,7 @@ class PepperFlashDRMHost : public ppapi::host::ResourceHost { // IPC message handler. int32_t OnHostMsgGetDeviceID(ppapi::host::HostMessageContext* context); int32_t OnHostMsgGetHmonitor(ppapi::host::HostMessageContext* context); + int32_t OnHostMsgMonitorIsExternal(ppapi::host::HostMessageContext* context); // Called by the fetcher when the device ID was retrieved, or the empty string // on error. |