| Index: ppapi/proxy/ppp_pdf_proxy.cc
|
| diff --git a/ppapi/proxy/ppp_pdf_proxy.cc b/ppapi/proxy/ppp_pdf_proxy.cc
|
| index cafde231006f7cbe438b4fd707b0758e7542dd31..80cecee47521816d7e687021b8fb14013d1fd07d 100644
|
| --- a/ppapi/proxy/ppp_pdf_proxy.cc
|
| +++ b/ppapi/proxy/ppp_pdf_proxy.cc
|
| @@ -36,10 +36,17 @@ PP_Bool GetPrintPresetOptionsFromDocument(
|
| return ret;
|
| }
|
|
|
| +void EnableAccessibility(PP_Instance instance) {
|
| + HostDispatcher::GetForInstance(instance)
|
| + ->Send(new PpapiMsg_PPPPdf_EnableAccessibility(
|
| + API_ID_PPP_PDF, instance));
|
| +}
|
| +
|
| const PPP_Pdf ppp_pdf_interface = {
|
| &GetLinkAtPosition,
|
| &Transform,
|
| - &GetPrintPresetOptionsFromDocument
|
| + &GetPrintPresetOptionsFromDocument,
|
| + &EnableAccessibility,
|
| };
|
| #else
|
| // The NaCl plugin doesn't need the host side interface - stub it out.
|
| @@ -74,6 +81,8 @@ bool PPP_Pdf_Proxy::OnMessageReceived(const IPC::Message& msg) {
|
| IPC_MESSAGE_HANDLER(PpapiMsg_PPPPdf_Rotate, OnPluginMsgRotate)
|
| IPC_MESSAGE_HANDLER(PpapiMsg_PPPPdf_PrintPresetOptions,
|
| OnPluginMsgPrintPresetOptions)
|
| + IPC_MESSAGE_HANDLER(PpapiMsg_PPPPdf_EnableAccessibility,
|
| + OnPluginMsgEnableAccessibility)
|
| IPC_MESSAGE_UNHANDLED(handled = false)
|
| IPC_END_MESSAGE_MAP()
|
| return handled;
|
| @@ -97,5 +106,11 @@ void PPP_Pdf_Proxy::OnPluginMsgPrintPresetOptions(
|
| }
|
| }
|
|
|
| +void PPP_Pdf_Proxy::OnPluginMsgEnableAccessibility(
|
| + PP_Instance instance) {
|
| + if (ppp_pdf_)
|
| + CallWhileUnlocked(ppp_pdf_->EnableAccessibility, instance);
|
| +}
|
| +
|
| } // namespace proxy
|
| } // namespace ppapi
|
|
|