Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc

Issue 68773004: Pepper: Add MonitorIsExternal function to PPB_Flash_DRM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc
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 c7f47e573b420379fc071050332b8c8744482ebd..76622b89e6b8b397c09d959b276ec846bc007d5a 100644
--- a/chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc
+++ b/chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc
@@ -144,6 +144,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;
}
@@ -169,6 +171,19 @@ int32_t PepperFlashDRMHost::OnHostMsgGetHmonitor(
}
}
+int32_t PepperFlashDRMHost::OnHostMsgMonitorIsExternal(
+ ppapi::host::HostMessageContext* context) {
+ int64_t monitor_id = monitor_finder_->GetMonitor();
+ if (monitor_id) {
+ // TODO() 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,

Powered by Google App Engine
This is Rietveld 408576698