OLD | NEW |
---|---|
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 Loading... | |
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) | |
Lei Zhang
2016/06/01 21:26:33
+tsepez for IPC.
| |
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 Loading... | |
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(page_index) | |
249 IPC_STRUCT_TRAITS_MEMBER(bounds) | |
250 IPC_STRUCT_TRAITS_MEMBER(text_run_count) | |
251 IPC_STRUCT_TRAITS_MEMBER(char_count) | |
252 IPC_STRUCT_TRAITS_END() | |
253 | |
222 IPC_STRUCT_TRAITS_BEGIN(PP_URLComponent_Dev) | 254 IPC_STRUCT_TRAITS_BEGIN(PP_URLComponent_Dev) |
223 IPC_STRUCT_TRAITS_MEMBER(begin) | 255 IPC_STRUCT_TRAITS_MEMBER(begin) |
224 IPC_STRUCT_TRAITS_MEMBER(len) | 256 IPC_STRUCT_TRAITS_MEMBER(len) |
225 IPC_STRUCT_TRAITS_END() | 257 IPC_STRUCT_TRAITS_END() |
226 | 258 |
227 IPC_STRUCT_TRAITS_BEGIN(PP_URLComponents_Dev) | 259 IPC_STRUCT_TRAITS_BEGIN(PP_URLComponents_Dev) |
228 IPC_STRUCT_TRAITS_MEMBER(scheme) | 260 IPC_STRUCT_TRAITS_MEMBER(scheme) |
229 IPC_STRUCT_TRAITS_MEMBER(username) | 261 IPC_STRUCT_TRAITS_MEMBER(username) |
230 IPC_STRUCT_TRAITS_MEMBER(password) | 262 IPC_STRUCT_TRAITS_MEMBER(password) |
231 IPC_STRUCT_TRAITS_MEMBER(host) | 263 IPC_STRUCT_TRAITS_MEMBER(host) |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
739 | 771 |
740 // PPP_Pdf | 772 // PPP_Pdf |
741 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPPdf_Rotate, | 773 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPPdf_Rotate, |
742 PP_Instance /* instance */, | 774 PP_Instance /* instance */, |
743 bool /* clockwise */) | 775 bool /* clockwise */) |
744 IPC_SYNC_MESSAGE_ROUTED1_2( | 776 IPC_SYNC_MESSAGE_ROUTED1_2( |
745 PpapiMsg_PPPPdf_PrintPresetOptions, | 777 PpapiMsg_PPPPdf_PrintPresetOptions, |
746 PP_Instance /* instance */, | 778 PP_Instance /* instance */, |
747 PP_PdfPrintPresetOptions_Dev /* print preset options */, | 779 PP_PdfPrintPresetOptions_Dev /* print preset options */, |
748 PP_Bool /* result */) | 780 PP_Bool /* result */) |
781 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPPdf_EnableAccessibility, | |
782 PP_Instance /* instance */) | |
749 | 783 |
750 // Find | 784 // Find |
751 IPC_MESSAGE_ROUTED2(PpapiPluginMsg_PPPFind_StartFind, | 785 IPC_MESSAGE_ROUTED2(PpapiPluginMsg_PPPFind_StartFind, |
752 PP_Instance /* instance */, | 786 PP_Instance /* instance */, |
753 std::string /* text */) | 787 std::string /* text */) |
754 IPC_MESSAGE_ROUTED2(PpapiPluginMsg_PPPFind_SelectFindResult, | 788 IPC_MESSAGE_ROUTED2(PpapiPluginMsg_PPPFind_SelectFindResult, |
755 PP_Instance /* instance */, | 789 PP_Instance /* instance */, |
756 PP_Bool /* forward */) | 790 PP_Bool /* forward */) |
757 IPC_MESSAGE_ROUTED1(PpapiPluginMsg_PPPFind_StopFind, | 791 IPC_MESSAGE_ROUTED1(PpapiPluginMsg_PPPFind_StopFind, |
758 PP_Instance /* instance */) | 792 PP_Instance /* instance */) |
(...skipping 1652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2411 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_SaveAs) | 2445 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_SaveAs) |
2412 | 2446 |
2413 // Called by the plugin when its selection changes. | 2447 // Called by the plugin when its selection changes. |
2414 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetSelectedText, | 2448 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetSelectedText, |
2415 base::string16 /* selected_text */) | 2449 base::string16 /* selected_text */) |
2416 | 2450 |
2417 // Called by the plugin to set the link under the cursor. | 2451 // Called by the plugin to set the link under the cursor. |
2418 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetLinkUnderCursor, | 2452 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetLinkUnderCursor, |
2419 std::string /* url */) | 2453 std::string /* url */) |
2420 | 2454 |
2455 // Called by the plugin to describe the viewport for accessibility support. | |
2456 IPC_MESSAGE_CONTROL1( | |
2457 PpapiHostMsg_PDF_SetAccessibilityViewportInfo, | |
2458 PP_PrivateAccessibilityViewportInfo /* viewport_info */) | |
2459 | |
2460 // Send information about the whole document for accessibility support. | |
2461 IPC_MESSAGE_CONTROL1( | |
2462 PpapiHostMsg_PDF_SetAccessibilityDocInfo, | |
2463 PP_PrivateAccessibilityDocInfo /* doc_info */) | |
2464 | |
2465 // Send information about one page for accessibility support. | |
2466 IPC_MESSAGE_CONTROL3( | |
2467 PpapiHostMsg_PDF_SetAccessibilityPageInfo, | |
2468 PP_PrivateAccessibilityPageInfo /* page_info */, | |
2469 std::vector<PP_PrivateAccessibilityTextRunInfo> /* text_runs */, | |
2470 std::vector<PP_PrivateAccessibilityCharInfo> /* chars */) | |
2471 | |
2421 // VideoCapture ---------------------------------------------------------------- | 2472 // VideoCapture ---------------------------------------------------------------- |
2422 | 2473 |
2423 // VideoCapture_Dev, plugin -> host | 2474 // VideoCapture_Dev, plugin -> host |
2424 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Create) | 2475 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Create) |
2425 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StartCapture) | 2476 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StartCapture) |
2426 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoCapture_ReuseBuffer, | 2477 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoCapture_ReuseBuffer, |
2427 uint32_t /* buffer */) | 2478 uint32_t /* buffer */) |
2428 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StopCapture) | 2479 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StopCapture) |
2429 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Close) | 2480 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Close) |
2430 | 2481 |
(...skipping 10 matching lines...) Expand all Loading... | |
2441 std::vector<ppapi::HostResource> /* buffers */, | 2492 std::vector<ppapi::HostResource> /* buffers */, |
2442 uint32_t /* buffer_size */) | 2493 uint32_t /* buffer_size */) |
2443 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, | 2494 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, |
2444 uint32_t /* status */) | 2495 uint32_t /* status */) |
2445 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, | 2496 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, |
2446 uint32_t /* error */) | 2497 uint32_t /* error */) |
2447 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, | 2498 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, |
2448 uint32_t /* buffer */) | 2499 uint32_t /* buffer */) |
2449 | 2500 |
2450 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 2501 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |