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

Unified Diff: components/pdf/renderer/pepper_pdf_host.cc

Issue 1953053002: Add private PPAPI interfaces for PDFium accessibility. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback and run git cl format Created 4 years, 7 months 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
« no previous file with comments | « components/pdf/renderer/pepper_pdf_host.h ('k') | pdf/out_of_process_instance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/pdf/renderer/pepper_pdf_host.cc
diff --git a/components/pdf/renderer/pepper_pdf_host.cc b/components/pdf/renderer/pepper_pdf_host.cc
index ce0eddba0a51df1a5ce3d22f5df153679cbf3509..29d3de143c54fa521eee62d7d84bba3fa3d2f21e 100644
--- a/components/pdf/renderer/pepper_pdf_host.cc
+++ b/components/pdf/renderer/pepper_pdf_host.cc
@@ -79,6 +79,15 @@ int32_t PepperPDFHost::OnResourceMessageReceived(
OnHostMsgSetLinkUnderCursor)
PPAPI_DISPATCH_HOST_RESOURCE_CALL(PpapiHostMsg_PDF_SetContentRestriction,
OnHostMsgSetContentRestriction)
+ PPAPI_DISPATCH_HOST_RESOURCE_CALL(
+ PpapiHostMsg_PDF_SetAccessibilityViewportInfo,
+ OnHostMsgSetAccessibilityViewportInfo)
+ PPAPI_DISPATCH_HOST_RESOURCE_CALL(
+ PpapiHostMsg_PDF_SetAccessibilityDocInfo,
+ OnHostMsgSetAccessibilityDocInfo)
+ PPAPI_DISPATCH_HOST_RESOURCE_CALL(
+ PpapiHostMsg_PDF_SetAccessibilityPageInfo,
+ OnHostMsgSetAccessibilityPageInfo)
PPAPI_END_MESSAGE_MAP()
return PP_ERROR_FAILED;
}
@@ -183,4 +192,24 @@ int32_t PepperPDFHost::OnHostMsgSetLinkUnderCursor(
return PP_OK;
}
+int32_t PepperPDFHost::OnHostMsgSetAccessibilityViewportInfo(
+ ppapi::host::HostMessageContext* context,
+ const PP_PrivateAccessibilityViewportInfo& viewport_info) {
+ return PP_OK;
+}
+
+int32_t PepperPDFHost::OnHostMsgSetAccessibilityDocInfo(
+ ppapi::host::HostMessageContext* context,
+ const PP_PrivateAccessibilityDocInfo& doc_info) {
+ return PP_OK;
+}
+
+int32_t PepperPDFHost::OnHostMsgSetAccessibilityPageInfo(
+ ppapi::host::HostMessageContext* context,
+ const PP_PrivateAccessibilityPageInfo& page_info,
+ const std::vector<PP_PrivateAccessibilityTextRunInfo>& text_run_info,
+ const std::vector<PP_PrivateAccessibilityCharInfo>& chars) {
+ return PP_OK;
+}
+
} // namespace pdf
« no previous file with comments | « components/pdf/renderer/pepper_pdf_host.h ('k') | pdf/out_of_process_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698