OnHostMsgGetResourceImage)
PPAPI_DISPATCH_HOST_RESOURCE_CALL(PpapiHostMsg_PDF_SetSelectedText,
OnHostMsgSetSelectedText)
+ PPAPI_DISPATCH_HOST_RESOURCE_CALL(PpapiHostMsg_PDF_SetLinkUnderCursor,
+ OnHostMsgSetLinkUnderCursor)
IPC_END_MESSAGE_MAP()
return PP_ERROR_FAILED;
}
return PP_OK;
}
+int32_t PepperPDFHost::OnHostMsgSetLinkUnderCursor(
+ ppapi::host::HostMessageContext* context,
+ const std::string& url) {
+ content::PepperPluginInstance* instance =
+ host_->GetPluginInstance(pp_instance());
+ if (!instance)
+ return PP_ERROR_FAILED;
+ instance->SetLinkUnderCursor(url);
+ return PP_OK;
+}
+
// TODO(raymes): This function is mainly copied from ppb_image_data_proxy.cc.
// It's a mess and needs to be fixed in several ways but this is better done
// when we refactor PPB_ImageData. On success, the image handle will be