Chromium Code Reviews| 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/ppb_text_input_dev.h" | |
| 22 #include "ppapi/c/pp_bool.h" | 23 #include "ppapi/c/pp_bool.h" | 
| 23 #include "ppapi/c/pp_file_info.h" | 24 #include "ppapi/c/pp_file_info.h" | 
| 24 #include "ppapi/c/pp_instance.h" | 25 #include "ppapi/c/pp_instance.h" | 
| 25 #include "ppapi/c/pp_module.h" | 26 #include "ppapi/c/pp_module.h" | 
| 26 #include "ppapi/c/pp_point.h" | 27 #include "ppapi/c/pp_point.h" | 
| 27 #include "ppapi/c/pp_rect.h" | 28 #include "ppapi/c/pp_rect.h" | 
| 28 #include "ppapi/c/pp_resource.h" | 29 #include "ppapi/c/pp_resource.h" | 
| 29 #include "ppapi/c/pp_size.h" | 30 #include "ppapi/c/pp_size.h" | 
| 30 #include "ppapi/c/dev/pp_video_dev.h" | 31 #include "ppapi/c/dev/pp_video_dev.h" | 
| 31 #include "ppapi/c/private/ppb_flash_tcp_socket.h" | 32 #include "ppapi/c/private/ppb_flash_tcp_socket.h" | 
| 32 #include "ppapi/proxy/ppapi_param_traits.h" | 33 #include "ppapi/proxy/ppapi_param_traits.h" | 
| 33 #include "ppapi/proxy/ppapi_proxy_export.h" | 34 #include "ppapi/proxy/ppapi_proxy_export.h" | 
| 34 #include "ppapi/proxy/serialized_flash_menu.h" | 35 #include "ppapi/proxy/serialized_flash_menu.h" | 
| 35 #include "ppapi/proxy/serialized_structs.h" | 36 #include "ppapi/proxy/serialized_structs.h" | 
| 36 #include "ppapi/shared_impl/input_event_impl.h" | 37 #include "ppapi/shared_impl/input_event_impl.h" | 
| 37 #include "ppapi/shared_impl/ppapi_preferences.h" | 38 #include "ppapi/shared_impl/ppapi_preferences.h" | 
| 38 #include "ppapi/shared_impl/url_request_info_impl.h" | 39 #include "ppapi/shared_impl/url_request_info_impl.h" | 
| 39 | 40 | 
| 40 #undef IPC_MESSAGE_EXPORT | 41 #undef IPC_MESSAGE_EXPORT | 
| 41 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT | 42 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT | 
| 42 | 43 | 
| 43 #define IPC_MESSAGE_START PpapiMsgStart | 44 #define IPC_MESSAGE_START PpapiMsgStart | 
| 44 | 45 | 
| 45 IPC_ENUM_TRAITS(PP_InputEvent_Type) | 46 IPC_ENUM_TRAITS(PP_InputEvent_Type) | 
| 46 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) | 47 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) | 
| 48 IPC_ENUM_TRAITS(PP_TextInput_Type) | |
| 47 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) | 49 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) | 
| 48 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) | 50 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) | 
| 49 | 51 | 
| 50 IPC_STRUCT_TRAITS_BEGIN(PP_Point) | 52 IPC_STRUCT_TRAITS_BEGIN(PP_Point) | 
| 51 IPC_STRUCT_TRAITS_MEMBER(x) | 53 IPC_STRUCT_TRAITS_MEMBER(x) | 
| 52 IPC_STRUCT_TRAITS_MEMBER(y) | 54 IPC_STRUCT_TRAITS_MEMBER(y) | 
| 53 IPC_STRUCT_TRAITS_END() | 55 IPC_STRUCT_TRAITS_END() | 
| 54 | 56 | 
| 55 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) | 57 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) | 
| 56 IPC_STRUCT_TRAITS_MEMBER(x) | 58 IPC_STRUCT_TRAITS_MEMBER(x) | 
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 106 IPC_STRUCT_TRAITS_MEMBER(event_modifiers) | 108 IPC_STRUCT_TRAITS_MEMBER(event_modifiers) | 
| 107 IPC_STRUCT_TRAITS_MEMBER(mouse_button) | 109 IPC_STRUCT_TRAITS_MEMBER(mouse_button) | 
| 108 IPC_STRUCT_TRAITS_MEMBER(mouse_position) | 110 IPC_STRUCT_TRAITS_MEMBER(mouse_position) | 
| 109 IPC_STRUCT_TRAITS_MEMBER(mouse_click_count) | 111 IPC_STRUCT_TRAITS_MEMBER(mouse_click_count) | 
| 110 IPC_STRUCT_TRAITS_MEMBER(mouse_movement) | 112 IPC_STRUCT_TRAITS_MEMBER(mouse_movement) | 
| 111 IPC_STRUCT_TRAITS_MEMBER(wheel_delta) | 113 IPC_STRUCT_TRAITS_MEMBER(wheel_delta) | 
| 112 IPC_STRUCT_TRAITS_MEMBER(wheel_ticks) | 114 IPC_STRUCT_TRAITS_MEMBER(wheel_ticks) | 
| 113 IPC_STRUCT_TRAITS_MEMBER(wheel_scroll_by_page) | 115 IPC_STRUCT_TRAITS_MEMBER(wheel_scroll_by_page) | 
| 114 IPC_STRUCT_TRAITS_MEMBER(key_code) | 116 IPC_STRUCT_TRAITS_MEMBER(key_code) | 
| 115 IPC_STRUCT_TRAITS_MEMBER(character_text) | 117 IPC_STRUCT_TRAITS_MEMBER(character_text) | 
| 118 IPC_STRUCT_TRAITS_MEMBER(composition_segment_offsets) | |
| 119 IPC_STRUCT_TRAITS_MEMBER(composition_target_segment) | |
| 120 IPC_STRUCT_TRAITS_MEMBER(composition_selection_start) | |
| 121 IPC_STRUCT_TRAITS_MEMBER(composition_selection_end) | |
| 116 IPC_STRUCT_TRAITS_END() | 122 IPC_STRUCT_TRAITS_END() | 
| 117 | 123 | 
| 118 IPC_STRUCT_TRAITS_BEGIN(ppapi::PPB_URLRequestInfo_Data) | 124 IPC_STRUCT_TRAITS_BEGIN(ppapi::PPB_URLRequestInfo_Data) | 
| 119 IPC_STRUCT_TRAITS_MEMBER(url) | 125 IPC_STRUCT_TRAITS_MEMBER(url) | 
| 120 IPC_STRUCT_TRAITS_MEMBER(method) | 126 IPC_STRUCT_TRAITS_MEMBER(method) | 
| 121 IPC_STRUCT_TRAITS_MEMBER(headers) | 127 IPC_STRUCT_TRAITS_MEMBER(headers) | 
| 122 IPC_STRUCT_TRAITS_MEMBER(stream_to_file) | 128 IPC_STRUCT_TRAITS_MEMBER(stream_to_file) | 
| 123 IPC_STRUCT_TRAITS_MEMBER(follow_redirects) | 129 IPC_STRUCT_TRAITS_MEMBER(follow_redirects) | 
| 124 IPC_STRUCT_TRAITS_MEMBER(record_download_progress) | 130 IPC_STRUCT_TRAITS_MEMBER(record_download_progress) | 
| 125 IPC_STRUCT_TRAITS_MEMBER(record_upload_progress) | 131 IPC_STRUCT_TRAITS_MEMBER(record_upload_progress) | 
| (...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 871 IPC_SYNC_MESSAGE_ROUTED3_1( | 877 IPC_SYNC_MESSAGE_ROUTED3_1( | 
| 872 PpapiHostMsg_PPBTesting_ReadImageData, | 878 PpapiHostMsg_PPBTesting_ReadImageData, | 
| 873 ppapi::HostResource /* device_context_2d */, | 879 ppapi::HostResource /* device_context_2d */, | 
| 874 ppapi::HostResource /* image */, | 880 ppapi::HostResource /* image */, | 
| 875 PP_Point /* top_left */, | 881 PP_Point /* top_left */, | 
| 876 PP_Bool /* result */) | 882 PP_Bool /* result */) | 
| 877 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance, | 883 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance, | 
| 878 PP_Instance /* instance */, | 884 PP_Instance /* instance */, | 
| 879 uint32 /* result */) | 885 uint32 /* result */) | 
| 880 | 886 | 
| 887 // PPB_TextInput. | |
| 888 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTextInput_SetTextInputType, | |
| 889 PP_Instance /* instance */, | |
| 890 PP_TextInput_Type /* type */) | |
| 891 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBTextInput_UpdateCaretPosition, | |
| 892 PP_Instance /* instance */, | |
| 893 PP_Rect /* caret */, | |
| 894 PP_Rect /* bounding_box */) | |
| 895 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBTextInput_ConfirmCompositionText, | |
| 896 PP_Instance /* instance */) | |
| 
 
James Su
2011/09/27 04:23:59
I'm now wondering if ConfirmCompositionText is fea
 
brettw
2011/09/27 04:28:42
If we can remove some complexity by not supporting
 
James Su
2011/09/27 05:06:39
I think this message is not that important. Chrome
 
kinaba
2011/09/27 05:18:00
I see. Let us drop it from the API (I've also disc
 
kinaba
2011/09/27 05:55:36
Done.
 
 | |
| 897 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBTextInput_CancelCompositionText, | |
| 898 PP_Instance /* instance */) | |
| 899 | |
| 881 // PPB_URLLoader. | 900 // PPB_URLLoader. | 
| 882 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create, | 901 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create, | 
| 883 PP_Instance /* instance */, | 902 PP_Instance /* instance */, | 
| 884 ppapi::HostResource /* result */) | 903 ppapi::HostResource /* result */) | 
| 885 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBURLLoader_Open, | 904 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBURLLoader_Open, | 
| 886 ppapi::HostResource /* loader */, | 905 ppapi::HostResource /* loader */, | 
| 887 ppapi::PPB_URLRequestInfo_Data /* request_data */, | 906 ppapi::PPB_URLRequestInfo_Data /* request_data */, | 
| 888 uint32_t /* serialized_callback */) | 907 uint32_t /* serialized_callback */) | 
| 889 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_FollowRedirect, | 908 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_FollowRedirect, | 
| 890 ppapi::HostResource /* loader */, | 909 ppapi::HostResource /* loader */, | 
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1040 std::vector<PP_PictureBuffer_Dev> /* picture buffers */) | 1059 std::vector<PP_PictureBuffer_Dev> /* picture buffers */) | 
| 1041 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer, | 1060 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer, | 
| 1042 ppapi::HostResource /* video_decoder */, | 1061 ppapi::HostResource /* video_decoder */, | 
| 1043 int32_t /* picture buffer id */) | 1062 int32_t /* picture buffer id */) | 
| 1044 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush, | 1063 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush, | 
| 1045 ppapi::HostResource /* video_decoder */) | 1064 ppapi::HostResource /* video_decoder */) | 
| 1046 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset, | 1065 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset, | 
| 1047 ppapi::HostResource /* video_decoder */) | 1066 ppapi::HostResource /* video_decoder */) | 
| 1048 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy, | 1067 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy, | 
| 1049 ppapi::HostResource /* video_decoder */) | 1068 ppapi::HostResource /* video_decoder */) | 
| OLD | NEW |