OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
11 #include "base/process.h" | 11 #include "base/process.h" |
12 #include "base/shared_memory.h" | 12 #include "base/shared_memory.h" |
13 #include "base/string16.h" | 13 #include "base/string16.h" |
14 #include "base/sync_socket.h" | 14 #include "base/sync_socket.h" |
15 #include "gpu/command_buffer/common/command_buffer.h" | 15 #include "gpu/command_buffer/common/command_buffer.h" |
16 #include "gpu/ipc/gpu_command_buffer_traits.h" | 16 #include "gpu/ipc/gpu_command_buffer_traits.h" |
17 #include "ipc/ipc_channel_handle.h" | 17 #include "ipc/ipc_channel_handle.h" |
18 #include "ipc/ipc_message_macros.h" | 18 #include "ipc/ipc_message_macros.h" |
19 #include "ipc/ipc_message_utils.h" | 19 #include "ipc/ipc_message_utils.h" |
20 #include "ipc/ipc_platform_file.h" | 20 #include "ipc/ipc_platform_file.h" |
21 #include "ppapi/c/dev/pp_video_capture_dev.h" | 21 #include "ppapi/c/dev/pp_video_capture_dev.h" |
22 #include "ppapi/c/dev/pp_video_dev.h" | |
22 #include "ppapi/c/dev/ppb_text_input_dev.h" | 23 #include "ppapi/c/dev/ppb_text_input_dev.h" |
23 #include "ppapi/c/pp_bool.h" | 24 #include "ppapi/c/pp_bool.h" |
24 #include "ppapi/c/pp_file_info.h" | 25 #include "ppapi/c/pp_file_info.h" |
26 #include "ppapi/c/pp_input_event.h" | |
25 #include "ppapi/c/pp_instance.h" | 27 #include "ppapi/c/pp_instance.h" |
26 #include "ppapi/c/pp_module.h" | 28 #include "ppapi/c/pp_module.h" |
27 #include "ppapi/c/pp_point.h" | 29 #include "ppapi/c/pp_point.h" |
28 #include "ppapi/c/pp_rect.h" | 30 #include "ppapi/c/pp_rect.h" |
29 #include "ppapi/c/pp_resource.h" | 31 #include "ppapi/c/pp_resource.h" |
30 #include "ppapi/c/pp_size.h" | 32 #include "ppapi/c/pp_size.h" |
31 #include "ppapi/c/dev/pp_video_dev.h" | 33 #include "ppapi/c/ppb_input_event.h" |
32 #include "ppapi/c/private/ppb_flash_tcp_socket.h" | 34 #include "ppapi/c/private/ppb_flash_tcp_socket.h" |
33 #include "ppapi/proxy/ppapi_param_traits.h" | 35 #include "ppapi/proxy/ppapi_param_traits.h" |
34 #include "ppapi/proxy/ppapi_proxy_export.h" | 36 #include "ppapi/proxy/ppapi_proxy_export.h" |
35 #include "ppapi/proxy/serialized_flash_menu.h" | 37 #include "ppapi/proxy/serialized_flash_menu.h" |
36 #include "ppapi/proxy/serialized_structs.h" | 38 #include "ppapi/proxy/serialized_structs.h" |
37 #include "ppapi/shared_impl/input_event_impl.h" | 39 #include "ppapi/shared_impl/input_event_impl.h" |
38 #include "ppapi/shared_impl/ppapi_preferences.h" | 40 #include "ppapi/shared_impl/ppapi_preferences.h" |
39 #include "ppapi/shared_impl/url_request_info_impl.h" | 41 #include "ppapi/shared_impl/url_request_info_impl.h" |
40 | 42 |
41 #undef IPC_MESSAGE_EXPORT | 43 #undef IPC_MESSAGE_EXPORT |
42 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT | 44 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT |
43 | 45 |
44 #define IPC_MESSAGE_START PpapiMsgStart | 46 #define IPC_MESSAGE_START PpapiMsgStart |
45 | 47 |
46 IPC_ENUM_TRAITS(PP_InputEvent_Type) | 48 IPC_ENUM_TRAITS(PP_InputEvent_Type) |
49 IPC_ENUM_TRAITS(PP_InputEvent_Modifier) | |
47 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) | 50 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) |
48 IPC_ENUM_TRAITS(PP_TextInput_Type) | 51 IPC_ENUM_TRAITS(PP_TextInput_Type) |
49 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) | 52 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) |
50 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) | 53 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) |
51 | 54 |
55 IPC_STRUCT_TRAITS_BEGIN(PP_InputEvent_Key) | |
56 IPC_STRUCT_TRAITS_MEMBER(modifier) | |
57 IPC_STRUCT_TRAITS_MEMBER(key_code) | |
58 IPC_STRUCT_TRAITS_END() | |
59 | |
60 IPC_STRUCT_TRAITS_BEGIN(PP_InputEvent_Mouse) | |
61 IPC_STRUCT_TRAITS_MEMBER(modifier) | |
62 IPC_STRUCT_TRAITS_MEMBER(button) | |
63 IPC_STRUCT_TRAITS_MEMBER(x) | |
64 IPC_STRUCT_TRAITS_MEMBER(y) | |
65 IPC_STRUCT_TRAITS_MEMBER(click_count) | |
66 IPC_STRUCT_TRAITS_END() | |
67 | |
68 IPC_STRUCT_TRAITS_BEGIN(PP_InputEvent_Wheel) | |
69 IPC_STRUCT_TRAITS_MEMBER(modifier) | |
70 IPC_STRUCT_TRAITS_MEMBER(delta_x) | |
71 IPC_STRUCT_TRAITS_MEMBER(delta_y) | |
72 IPC_STRUCT_TRAITS_MEMBER(wheel_ticks_x) | |
73 IPC_STRUCT_TRAITS_MEMBER(wheel_ticks_y) | |
74 IPC_STRUCT_TRAITS_MEMBER(scroll_by_page) | |
75 IPC_STRUCT_TRAITS_END() | |
76 | |
52 IPC_STRUCT_TRAITS_BEGIN(PP_Point) | 77 IPC_STRUCT_TRAITS_BEGIN(PP_Point) |
53 IPC_STRUCT_TRAITS_MEMBER(x) | 78 IPC_STRUCT_TRAITS_MEMBER(x) |
54 IPC_STRUCT_TRAITS_MEMBER(y) | 79 IPC_STRUCT_TRAITS_MEMBER(y) |
55 IPC_STRUCT_TRAITS_END() | 80 IPC_STRUCT_TRAITS_END() |
56 | 81 |
57 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) | 82 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) |
58 IPC_STRUCT_TRAITS_MEMBER(x) | 83 IPC_STRUCT_TRAITS_MEMBER(x) |
59 IPC_STRUCT_TRAITS_MEMBER(y) | 84 IPC_STRUCT_TRAITS_MEMBER(y) |
60 IPC_STRUCT_TRAITS_END() | 85 IPC_STRUCT_TRAITS_END() |
61 | 86 |
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
949 // PPB_Testing. | 974 // PPB_Testing. |
950 IPC_SYNC_MESSAGE_ROUTED3_1( | 975 IPC_SYNC_MESSAGE_ROUTED3_1( |
951 PpapiHostMsg_PPBTesting_ReadImageData, | 976 PpapiHostMsg_PPBTesting_ReadImageData, |
952 ppapi::HostResource /* device_context_2d */, | 977 ppapi::HostResource /* device_context_2d */, |
953 ppapi::HostResource /* image */, | 978 ppapi::HostResource /* image */, |
954 PP_Point /* top_left */, | 979 PP_Point /* top_left */, |
955 PP_Bool /* result */) | 980 PP_Bool /* result */) |
956 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance, | 981 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance, |
957 PP_Instance /* instance */, | 982 PP_Instance /* instance */, |
958 uint32 /* result */) | 983 uint32 /* result */) |
984 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBTesting_GenerateKeyEvent, | |
985 PP_Instance /* instance */, | |
986 PP_InputEvent_Type /* type */, | |
987 PP_InputEvent_Key /* key_event */) | |
988 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBTesting_GenerateCharacterEvent, | |
989 PP_Instance /* instance */, | |
990 PP_InputEvent_Modifier /* modifier */, | |
991 std::string /* text */) | |
992 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBTesting_GenerateMouseEvent, | |
993 PP_Instance /* instance */, | |
994 PP_InputEvent_Type /* type */, | |
995 PP_InputEvent_Mouse /* mouse_event */) | |
996 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTesting_GenerateWheelEvent, | |
997 PP_Instance /* instance */, | |
998 PP_InputEvent_Wheel /* wheel_event */) | |
dmichael (off chromium)
2011/10/28 16:02:22
What about sending the resource? Or if you want it
| |
959 | 999 |
960 // PPB_TextInput. | 1000 // PPB_TextInput. |
961 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTextInput_SetTextInputType, | 1001 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTextInput_SetTextInputType, |
962 PP_Instance /* instance */, | 1002 PP_Instance /* instance */, |
963 PP_TextInput_Type /* type */) | 1003 PP_TextInput_Type /* type */) |
964 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBTextInput_UpdateCaretPosition, | 1004 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBTextInput_UpdateCaretPosition, |
965 PP_Instance /* instance */, | 1005 PP_Instance /* instance */, |
966 PP_Rect /* caret */, | 1006 PP_Rect /* caret */, |
967 PP_Rect /* bounding_box */) | 1007 PP_Rect /* bounding_box */) |
968 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBTextInput_CancelCompositionText, | 1008 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBTextInput_CancelCompositionText, |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1107 std::vector<PP_PictureBuffer_Dev> /* picture buffers */) | 1147 std::vector<PP_PictureBuffer_Dev> /* picture buffers */) |
1108 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer, | 1148 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer, |
1109 ppapi::HostResource /* video_decoder */, | 1149 ppapi::HostResource /* video_decoder */, |
1110 int32_t /* picture buffer id */) | 1150 int32_t /* picture buffer id */) |
1111 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush, | 1151 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush, |
1112 ppapi::HostResource /* video_decoder */) | 1152 ppapi::HostResource /* video_decoder */) |
1113 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset, | 1153 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset, |
1114 ppapi::HostResource /* video_decoder */) | 1154 ppapi::HostResource /* video_decoder */) |
1115 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy, | 1155 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy, |
1116 ppapi::HostResource /* video_decoder */) | 1156 ppapi::HostResource /* video_decoder */) |
OLD | NEW |