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

Side by Side Diff: ppapi/proxy/ppapi_messages.h

Issue 1953053002: Add private PPAPI interfaces for PDFium accessibility. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback from Lei 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Multiply-included message header, no traditional include guard. 5 // Multiply-included message header, no traditional include guard.
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev) 129 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev)
130 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev) 130 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev)
131 IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option, 131 IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option,
132 PP_UDPSOCKET_OPTION_MULTICAST_TTL) 132 PP_UDPSOCKET_OPTION_MULTICAST_TTL)
133 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) 133 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev)
134 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) 134 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile)
135 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST) 135 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST)
136 IPC_ENUM_TRAITS_MAX_VALUE(PP_HardwareAcceleration, PP_HARDWAREACCELERATION_LAST) 136 IPC_ENUM_TRAITS_MAX_VALUE(PP_HardwareAcceleration, PP_HARDWAREACCELERATION_LAST)
137 IPC_ENUM_TRAITS_MAX_VALUE(PP_AudioProfile, PP_AUDIOPROFILE_MAX) 137 IPC_ENUM_TRAITS_MAX_VALUE(PP_AudioProfile, PP_AUDIOPROFILE_MAX)
138 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX) 138 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX)
139 IPC_ENUM_TRAITS_MAX_VALUE(PP_PrivateDirection, PP_PRIVATEDIRECTION_LAST)
139 140
140 IPC_STRUCT_TRAITS_BEGIN(PP_Point) 141 IPC_STRUCT_TRAITS_BEGIN(PP_Point)
141 IPC_STRUCT_TRAITS_MEMBER(x) 142 IPC_STRUCT_TRAITS_MEMBER(x)
142 IPC_STRUCT_TRAITS_MEMBER(y) 143 IPC_STRUCT_TRAITS_MEMBER(y)
143 IPC_STRUCT_TRAITS_END() 144 IPC_STRUCT_TRAITS_END()
144 145
145 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) 146 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint)
146 IPC_STRUCT_TRAITS_MEMBER(x) 147 IPC_STRUCT_TRAITS_MEMBER(x)
147 IPC_STRUCT_TRAITS_MEMBER(y) 148 IPC_STRUCT_TRAITS_MEMBER(y)
148 IPC_STRUCT_TRAITS_END() 149 IPC_STRUCT_TRAITS_END()
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 IPC_STRUCT_TRAITS_END() 213 IPC_STRUCT_TRAITS_END()
213 214
214 IPC_STRUCT_TRAITS_BEGIN(PP_PdfPrintPresetOptions_Dev) 215 IPC_STRUCT_TRAITS_BEGIN(PP_PdfPrintPresetOptions_Dev)
215 IPC_STRUCT_TRAITS_MEMBER(is_scaling_disabled) 216 IPC_STRUCT_TRAITS_MEMBER(is_scaling_disabled)
216 IPC_STRUCT_TRAITS_MEMBER(copies) 217 IPC_STRUCT_TRAITS_MEMBER(copies)
217 IPC_STRUCT_TRAITS_MEMBER(duplex) 218 IPC_STRUCT_TRAITS_MEMBER(duplex)
218 IPC_STRUCT_TRAITS_MEMBER(is_page_size_uniform) 219 IPC_STRUCT_TRAITS_MEMBER(is_page_size_uniform)
219 IPC_STRUCT_TRAITS_MEMBER(uniform_page_size) 220 IPC_STRUCT_TRAITS_MEMBER(uniform_page_size)
220 IPC_STRUCT_TRAITS_END() 221 IPC_STRUCT_TRAITS_END()
221 222
223 IPC_STRUCT_TRAITS_BEGIN(PP_PrivateAccessibilityViewportInfo)
224 IPC_STRUCT_TRAITS_MEMBER(zoom)
225 IPC_STRUCT_TRAITS_MEMBER(scroll)
226 IPC_STRUCT_TRAITS_MEMBER(offset)
227 IPC_STRUCT_TRAITS_END()
228
229 IPC_STRUCT_TRAITS_BEGIN(PP_PrivateAccessibilityDocInfo)
230 IPC_STRUCT_TRAITS_MEMBER(page_count)
231 IPC_STRUCT_TRAITS_MEMBER(text_accessible)
232 IPC_STRUCT_TRAITS_MEMBER(text_copyable)
233 IPC_STRUCT_TRAITS_END()
234
235 IPC_STRUCT_TRAITS_BEGIN(PP_PrivateAccessibilityCharInfo)
236 IPC_STRUCT_TRAITS_MEMBER(unicode_character)
237 IPC_STRUCT_TRAITS_MEMBER(char_width)
238 IPC_STRUCT_TRAITS_END()
239
240 IPC_STRUCT_TRAITS_BEGIN(PP_PrivateAccessibilityTextRunInfo)
241 IPC_STRUCT_TRAITS_MEMBER(len)
242 IPC_STRUCT_TRAITS_MEMBER(font_size)
243 IPC_STRUCT_TRAITS_MEMBER(bounds)
244 IPC_STRUCT_TRAITS_MEMBER(direction)
245 IPC_STRUCT_TRAITS_END()
246
247 IPC_STRUCT_TRAITS_BEGIN(PP_PrivateAccessibilityPageInfo)
248 IPC_STRUCT_TRAITS_MEMBER(char_count)
249 IPC_STRUCT_TRAITS_MEMBER(bounds)
250 IPC_STRUCT_TRAITS_END()
251
252
253
254
raymes 2016/05/17 21:58:13 nit: spaces
dmazzoni 2016/05/26 21:59:13 Done.
222 IPC_STRUCT_TRAITS_BEGIN(PP_URLComponent_Dev) 255 IPC_STRUCT_TRAITS_BEGIN(PP_URLComponent_Dev)
223 IPC_STRUCT_TRAITS_MEMBER(begin) 256 IPC_STRUCT_TRAITS_MEMBER(begin)
224 IPC_STRUCT_TRAITS_MEMBER(len) 257 IPC_STRUCT_TRAITS_MEMBER(len)
225 IPC_STRUCT_TRAITS_END() 258 IPC_STRUCT_TRAITS_END()
226 259
227 IPC_STRUCT_TRAITS_BEGIN(PP_URLComponents_Dev) 260 IPC_STRUCT_TRAITS_BEGIN(PP_URLComponents_Dev)
228 IPC_STRUCT_TRAITS_MEMBER(scheme) 261 IPC_STRUCT_TRAITS_MEMBER(scheme)
229 IPC_STRUCT_TRAITS_MEMBER(username) 262 IPC_STRUCT_TRAITS_MEMBER(username)
230 IPC_STRUCT_TRAITS_MEMBER(password) 263 IPC_STRUCT_TRAITS_MEMBER(password)
231 IPC_STRUCT_TRAITS_MEMBER(host) 264 IPC_STRUCT_TRAITS_MEMBER(host)
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 772
740 // PPP_Pdf 773 // PPP_Pdf
741 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPPdf_Rotate, 774 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPPdf_Rotate,
742 PP_Instance /* instance */, 775 PP_Instance /* instance */,
743 bool /* clockwise */) 776 bool /* clockwise */)
744 IPC_SYNC_MESSAGE_ROUTED1_2( 777 IPC_SYNC_MESSAGE_ROUTED1_2(
745 PpapiMsg_PPPPdf_PrintPresetOptions, 778 PpapiMsg_PPPPdf_PrintPresetOptions,
746 PP_Instance /* instance */, 779 PP_Instance /* instance */,
747 PP_PdfPrintPresetOptions_Dev /* print preset options */, 780 PP_PdfPrintPresetOptions_Dev /* print preset options */,
748 PP_Bool /* result */) 781 PP_Bool /* result */)
782 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPPdf_EnableAccessibility,
783 PP_Instance /* instance */)
749 784
750 // Find 785 // Find
751 IPC_MESSAGE_ROUTED2(PpapiPluginMsg_PPPFind_StartFind, 786 IPC_MESSAGE_ROUTED2(PpapiPluginMsg_PPPFind_StartFind,
752 PP_Instance /* instance */, 787 PP_Instance /* instance */,
753 std::string /* text */) 788 std::string /* text */)
754 IPC_MESSAGE_ROUTED2(PpapiPluginMsg_PPPFind_SelectFindResult, 789 IPC_MESSAGE_ROUTED2(PpapiPluginMsg_PPPFind_SelectFindResult,
755 PP_Instance /* instance */, 790 PP_Instance /* instance */,
756 PP_Bool /* forward */) 791 PP_Bool /* forward */)
757 IPC_MESSAGE_ROUTED1(PpapiPluginMsg_PPPFind_StopFind, 792 IPC_MESSAGE_ROUTED1(PpapiPluginMsg_PPPFind_StopFind,
758 PP_Instance /* instance */) 793 PP_Instance /* instance */)
(...skipping 1652 matching lines...) Expand 10 before | Expand all | Expand 10 after
2411 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_SaveAs) 2446 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_SaveAs)
2412 2447
2413 // Called by the plugin when its selection changes. 2448 // Called by the plugin when its selection changes.
2414 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetSelectedText, 2449 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetSelectedText,
2415 base::string16 /* selected_text */) 2450 base::string16 /* selected_text */)
2416 2451
2417 // Called by the plugin to set the link under the cursor. 2452 // Called by the plugin to set the link under the cursor.
2418 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetLinkUnderCursor, 2453 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetLinkUnderCursor,
2419 std::string /* url */) 2454 std::string /* url */)
2420 2455
2456 // Called by the plugin to describe the viewport for accessibility support.
2457 IPC_MESSAGE_CONTROL1(
2458 PpapiHostMsg_PDF_SetAccessibilityViewportInfo,
2459 struct PP_PrivateAccessibilityViewportInfo /* viewport_info */)
2460
2461 // Send information about the whole document for accessibility support.
2462 IPC_MESSAGE_CONTROL1(
2463 PpapiHostMsg_PDF_SetAccessibilityDocInfo,
2464 struct PP_PrivateAccessibilityDocInfo /* doc_info */)
2465
2466 // Send information about one page for accessibility support.
2467 IPC_MESSAGE_CONTROL2(
2468 PpapiHostMsg_PDF_SetAccessibilityPageInfo,
2469 uint32_t /* page_index */,
2470 struct PP_PrivateAccessibilityPageInfo /* page_info */)
2471
2472 // Send information about one text run on one page for accessibility support.
2473 // A text run is a continuous sequence of characters in a single direction
2474 // with the same font size and style.
2475 IPC_MESSAGE_CONTROL4(
2476 PpapiHostMsg_PDF_SetAccessibilityTextRunInfo,
2477 uint32_t /* page_index */,
2478 uint32_t /* text_run_index */,
2479 struct PP_PrivateAccessibilityTextRunInfo /* text_run_info */,
2480 std::vector<struct PP_PrivateAccessibilityCharInfo> /* chars */)
2481
2421 // VideoCapture ---------------------------------------------------------------- 2482 // VideoCapture ----------------------------------------------------------------
2422 2483
2423 // VideoCapture_Dev, plugin -> host 2484 // VideoCapture_Dev, plugin -> host
2424 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Create) 2485 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Create)
2425 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StartCapture) 2486 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StartCapture)
2426 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoCapture_ReuseBuffer, 2487 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoCapture_ReuseBuffer,
2427 uint32_t /* buffer */) 2488 uint32_t /* buffer */)
2428 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StopCapture) 2489 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StopCapture)
2429 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Close) 2490 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Close)
2430 2491
(...skipping 10 matching lines...) Expand all
2441 std::vector<ppapi::HostResource> /* buffers */, 2502 std::vector<ppapi::HostResource> /* buffers */,
2442 uint32_t /* buffer_size */) 2503 uint32_t /* buffer_size */)
2443 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, 2504 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
2444 uint32_t /* status */) 2505 uint32_t /* status */)
2445 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, 2506 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
2446 uint32_t /* error */) 2507 uint32_t /* error */)
2447 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, 2508 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
2448 uint32_t /* buffer */) 2509 uint32_t /* buffer */)
2449 2510
2450 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 2511 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698