Index: ppapi/proxy/ppapi_messages.h |
diff --git a/ppapi/proxy/ppapi_messages.h b/ppapi/proxy/ppapi_messages.h |
index c0b3e75c97e27a7d156db8fbbcee7638802156eb..c85666bed7887125ab21665711f6519515f5db10 100644 |
--- a/ppapi/proxy/ppapi_messages.h |
+++ b/ppapi/proxy/ppapi_messages.h |
@@ -136,6 +136,7 @@ IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST) |
IPC_ENUM_TRAITS_MAX_VALUE(PP_HardwareAcceleration, PP_HARDWAREACCELERATION_LAST) |
IPC_ENUM_TRAITS_MAX_VALUE(PP_AudioProfile, PP_AUDIOPROFILE_MAX) |
IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX) |
+IPC_ENUM_TRAITS_MAX_VALUE(PP_PrivateDirection, PP_PRIVATEDIRECTION_LAST) |
IPC_STRUCT_TRAITS_BEGIN(PP_Point) |
IPC_STRUCT_TRAITS_MEMBER(x) |
@@ -219,6 +220,38 @@ IPC_STRUCT_TRAITS_BEGIN(PP_PdfPrintPresetOptions_Dev) |
IPC_STRUCT_TRAITS_MEMBER(uniform_page_size) |
IPC_STRUCT_TRAITS_END() |
+IPC_STRUCT_TRAITS_BEGIN(PP_PrivateAccessibilityViewportInfo) |
+ IPC_STRUCT_TRAITS_MEMBER(zoom) |
+ IPC_STRUCT_TRAITS_MEMBER(scroll) |
+ IPC_STRUCT_TRAITS_MEMBER(offset) |
+IPC_STRUCT_TRAITS_END() |
+ |
+IPC_STRUCT_TRAITS_BEGIN(PP_PrivateAccessibilityDocInfo) |
+ IPC_STRUCT_TRAITS_MEMBER(page_count) |
+ IPC_STRUCT_TRAITS_MEMBER(text_accessible) |
+ IPC_STRUCT_TRAITS_MEMBER(text_copyable) |
+IPC_STRUCT_TRAITS_END() |
+ |
+IPC_STRUCT_TRAITS_BEGIN(PP_PrivateAccessibilityCharInfo) |
+ IPC_STRUCT_TRAITS_MEMBER(unicode_character) |
+ IPC_STRUCT_TRAITS_MEMBER(char_width) |
+IPC_STRUCT_TRAITS_END() |
+ |
+IPC_STRUCT_TRAITS_BEGIN(PP_PrivateAccessibilityTextRunInfo) |
+ IPC_STRUCT_TRAITS_MEMBER(len) |
+ IPC_STRUCT_TRAITS_MEMBER(font_size) |
+ IPC_STRUCT_TRAITS_MEMBER(bounds) |
+ IPC_STRUCT_TRAITS_MEMBER(direction) |
+IPC_STRUCT_TRAITS_END() |
+ |
+IPC_STRUCT_TRAITS_BEGIN(PP_PrivateAccessibilityPageInfo) |
+ IPC_STRUCT_TRAITS_MEMBER(char_count) |
+ IPC_STRUCT_TRAITS_MEMBER(bounds) |
+IPC_STRUCT_TRAITS_END() |
+ |
+ |
+ |
+ |
raymes
2016/05/17 21:58:13
nit: spaces
dmazzoni
2016/05/26 21:59:13
Done.
|
IPC_STRUCT_TRAITS_BEGIN(PP_URLComponent_Dev) |
IPC_STRUCT_TRAITS_MEMBER(begin) |
IPC_STRUCT_TRAITS_MEMBER(len) |
@@ -746,6 +779,8 @@ IPC_SYNC_MESSAGE_ROUTED1_2( |
PP_Instance /* instance */, |
PP_PdfPrintPresetOptions_Dev /* print preset options */, |
PP_Bool /* result */) |
+IPC_MESSAGE_ROUTED1(PpapiMsg_PPPPdf_EnableAccessibility, |
+ PP_Instance /* instance */) |
// Find |
IPC_MESSAGE_ROUTED2(PpapiPluginMsg_PPPFind_StartFind, |
@@ -2418,6 +2453,32 @@ IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetSelectedText, |
IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetLinkUnderCursor, |
std::string /* url */) |
+// Called by the plugin to describe the viewport for accessibility support. |
+IPC_MESSAGE_CONTROL1( |
+ PpapiHostMsg_PDF_SetAccessibilityViewportInfo, |
+ struct PP_PrivateAccessibilityViewportInfo /* viewport_info */) |
+ |
+// Send information about the whole document for accessibility support. |
+IPC_MESSAGE_CONTROL1( |
+ PpapiHostMsg_PDF_SetAccessibilityDocInfo, |
+ struct PP_PrivateAccessibilityDocInfo /* doc_info */) |
+ |
+// Send information about one page for accessibility support. |
+IPC_MESSAGE_CONTROL2( |
+ PpapiHostMsg_PDF_SetAccessibilityPageInfo, |
+ uint32_t /* page_index */, |
+ struct PP_PrivateAccessibilityPageInfo /* page_info */) |
+ |
+// Send information about one text run on one page for accessibility support. |
+// A text run is a continuous sequence of characters in a single direction |
+// with the same font size and style. |
+IPC_MESSAGE_CONTROL4( |
+ PpapiHostMsg_PDF_SetAccessibilityTextRunInfo, |
+ uint32_t /* page_index */, |
+ uint32_t /* text_run_index */, |
+ struct PP_PrivateAccessibilityTextRunInfo /* text_run_info */, |
+ std::vector<struct PP_PrivateAccessibilityCharInfo> /* chars */) |
+ |
// VideoCapture ---------------------------------------------------------------- |
// VideoCapture_Dev, plugin -> host |