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" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "ppapi/c/pp_bool.h" | 22 #include "ppapi/c/pp_bool.h" |
23 #include "ppapi/c/pp_instance.h" | 23 #include "ppapi/c/pp_instance.h" |
24 #include "ppapi/c/pp_module.h" | 24 #include "ppapi/c/pp_module.h" |
25 #include "ppapi/c/pp_point.h" | 25 #include "ppapi/c/pp_point.h" |
26 #include "ppapi/c/pp_rect.h" | 26 #include "ppapi/c/pp_rect.h" |
27 #include "ppapi/c/pp_resource.h" | 27 #include "ppapi/c/pp_resource.h" |
28 #include "ppapi/c/pp_size.h" | 28 #include "ppapi/c/pp_size.h" |
29 #include "ppapi/proxy/ppapi_param_traits.h" | 29 #include "ppapi/proxy/ppapi_param_traits.h" |
30 #include "ppapi/proxy/serialized_flash_menu.h" | 30 #include "ppapi/proxy/serialized_flash_menu.h" |
31 #include "ppapi/proxy/serialized_structs.h" | 31 #include "ppapi/proxy/serialized_structs.h" |
| 32 #include "ppapi/shared_impl/input_event_impl.h" |
32 #include "ppapi/shared_impl/ppapi_preferences.h" | 33 #include "ppapi/shared_impl/ppapi_preferences.h" |
33 | 34 |
34 #define IPC_MESSAGE_START PpapiMsgStart | 35 #define IPC_MESSAGE_START PpapiMsgStart |
35 | 36 |
| 37 IPC_ENUM_TRAITS(PP_InputEvent_Type) |
| 38 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) |
| 39 |
36 IPC_STRUCT_TRAITS_BEGIN(PP_Point) | 40 IPC_STRUCT_TRAITS_BEGIN(PP_Point) |
37 IPC_STRUCT_TRAITS_MEMBER(x) | 41 IPC_STRUCT_TRAITS_MEMBER(x) |
38 IPC_STRUCT_TRAITS_MEMBER(y) | 42 IPC_STRUCT_TRAITS_MEMBER(y) |
39 IPC_STRUCT_TRAITS_END() | 43 IPC_STRUCT_TRAITS_END() |
40 | 44 |
| 45 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) |
| 46 IPC_STRUCT_TRAITS_MEMBER(x) |
| 47 IPC_STRUCT_TRAITS_MEMBER(y) |
| 48 IPC_STRUCT_TRAITS_END() |
| 49 |
41 IPC_STRUCT_TRAITS_BEGIN(PP_Size) | 50 IPC_STRUCT_TRAITS_BEGIN(PP_Size) |
42 IPC_STRUCT_TRAITS_MEMBER(height) | 51 IPC_STRUCT_TRAITS_MEMBER(height) |
43 IPC_STRUCT_TRAITS_MEMBER(width) | 52 IPC_STRUCT_TRAITS_MEMBER(width) |
44 IPC_STRUCT_TRAITS_END() | 53 IPC_STRUCT_TRAITS_END() |
45 | 54 |
46 IPC_STRUCT_TRAITS_BEGIN(PP_Rect) | 55 IPC_STRUCT_TRAITS_BEGIN(PP_Rect) |
47 IPC_STRUCT_TRAITS_MEMBER(point) | 56 IPC_STRUCT_TRAITS_MEMBER(point) |
48 IPC_STRUCT_TRAITS_MEMBER(size) | 57 IPC_STRUCT_TRAITS_MEMBER(size) |
49 IPC_STRUCT_TRAITS_END() | 58 IPC_STRUCT_TRAITS_END() |
50 | 59 |
51 IPC_STRUCT_TRAITS_BEGIN(::ppapi::Preferences) | 60 IPC_STRUCT_TRAITS_BEGIN(::ppapi::Preferences) |
52 IPC_STRUCT_TRAITS_MEMBER(standard_font_family) | 61 IPC_STRUCT_TRAITS_MEMBER(standard_font_family) |
53 IPC_STRUCT_TRAITS_MEMBER(fixed_font_family) | 62 IPC_STRUCT_TRAITS_MEMBER(fixed_font_family) |
54 IPC_STRUCT_TRAITS_MEMBER(serif_font_family) | 63 IPC_STRUCT_TRAITS_MEMBER(serif_font_family) |
55 IPC_STRUCT_TRAITS_MEMBER(sans_serif_font_family) | 64 IPC_STRUCT_TRAITS_MEMBER(sans_serif_font_family) |
56 IPC_STRUCT_TRAITS_MEMBER(default_font_size) | 65 IPC_STRUCT_TRAITS_MEMBER(default_font_size) |
57 IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size) | 66 IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size) |
58 IPC_STRUCT_TRAITS_END() | 67 IPC_STRUCT_TRAITS_END() |
59 | 68 |
| 69 IPC_STRUCT_TRAITS_BEGIN(::ppapi::InputEventData) |
| 70 IPC_STRUCT_TRAITS_MEMBER(is_filtered) |
| 71 IPC_STRUCT_TRAITS_MEMBER(event_type) |
| 72 IPC_STRUCT_TRAITS_MEMBER(event_time_stamp) |
| 73 IPC_STRUCT_TRAITS_MEMBER(event_modifiers) |
| 74 IPC_STRUCT_TRAITS_MEMBER(mouse_button) |
| 75 IPC_STRUCT_TRAITS_MEMBER(mouse_position) |
| 76 IPC_STRUCT_TRAITS_MEMBER(mouse_click_count) |
| 77 IPC_STRUCT_TRAITS_MEMBER(wheel_delta) |
| 78 IPC_STRUCT_TRAITS_MEMBER(wheel_ticks) |
| 79 IPC_STRUCT_TRAITS_MEMBER(wheel_scroll_by_page) |
| 80 IPC_STRUCT_TRAITS_MEMBER(key_code) |
| 81 IPC_STRUCT_TRAITS_MEMBER(character_text) |
| 82 IPC_STRUCT_TRAITS_END() |
| 83 |
60 // These are from the browser to the plugin. | 84 // These are from the browser to the plugin. |
61 // Loads the given plugin. | 85 // Loads the given plugin. |
62 IPC_MESSAGE_CONTROL1(PpapiMsg_LoadPlugin, FilePath /* path */) | 86 IPC_MESSAGE_CONTROL1(PpapiMsg_LoadPlugin, FilePath /* path */) |
63 | 87 |
64 // Creates a channel to talk to a renderer. The plugin will respond with | 88 // Creates a channel to talk to a renderer. The plugin will respond with |
65 // PpapiHostMsg_ChannelCreated. | 89 // PpapiHostMsg_ChannelCreated. |
66 IPC_MESSAGE_CONTROL2(PpapiMsg_CreateChannel, | 90 IPC_MESSAGE_CONTROL2(PpapiMsg_CreateChannel, |
67 base::ProcessHandle /* host_process_handle */, | 91 base::ProcessHandle /* host_process_handle */, |
68 int /* renderer_id */) | 92 int /* renderer_id */) |
69 | 93 |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 pp::proxy::SerializedVar /* out_exception */, | 232 pp::proxy::SerializedVar /* out_exception */, |
209 pp::proxy::SerializedVar /* result */) | 233 pp::proxy::SerializedVar /* result */) |
210 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate, | 234 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate, |
211 int64 /* ppp_class */, | 235 int64 /* ppp_class */, |
212 int64 /* object */) | 236 int64 /* object */) |
213 | 237 |
214 // PPP_Graphics3D_Dev. | 238 // PPP_Graphics3D_Dev. |
215 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPGraphics3D_ContextLost, | 239 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPGraphics3D_ContextLost, |
216 PP_Instance /* instance */) | 240 PP_Instance /* instance */) |
217 | 241 |
| 242 // PPP_InputEvent. |
| 243 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInputEvent_HandleInputEvent, |
| 244 PP_Instance /* instance */, |
| 245 ppapi::InputEventData /* data */) |
| 246 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInputEvent_HandleFilteredInputEvent, |
| 247 PP_Instance /* instance */, |
| 248 ppapi::InputEventData /* data */, |
| 249 PP_Bool /* result */) |
| 250 |
218 // PPP_Instance. | 251 // PPP_Instance. |
219 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate, | 252 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate, |
220 PP_Instance /* instance */, | 253 PP_Instance /* instance */, |
221 std::vector<std::string> /* argn */, | 254 std::vector<std::string> /* argn */, |
222 std::vector<std::string> /* argv */, | 255 std::vector<std::string> /* argv */, |
223 PP_Bool /* result */) | 256 PP_Bool /* result */) |
224 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiMsg_PPPInstance_DidDestroy, | 257 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiMsg_PPPInstance_DidDestroy, |
225 PP_Instance /* instance */) | 258 PP_Instance /* instance */) |
226 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPInstance_DidChangeView, | 259 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPInstance_DidChangeView, |
227 PP_Instance /* instance */, | 260 PP_Instance /* instance */, |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 pp::proxy::SerializedVar /* out_exception */, | 611 pp::proxy::SerializedVar /* out_exception */, |
579 pp::proxy::SerializedVar /* result */) | 612 pp::proxy::SerializedVar /* result */) |
580 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_SetFullscreen, | 613 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_SetFullscreen, |
581 PP_Instance /* instance */, | 614 PP_Instance /* instance */, |
582 PP_Bool /* fullscreen */, | 615 PP_Bool /* fullscreen */, |
583 PP_Bool /* result */) | 616 PP_Bool /* result */) |
584 IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetScreenSize, | 617 IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetScreenSize, |
585 PP_Instance /* instance */, | 618 PP_Instance /* instance */, |
586 PP_Bool /* result */, | 619 PP_Bool /* result */, |
587 PP_Size /* size */) | 620 PP_Size /* size */) |
| 621 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_RequestInputEvents, |
| 622 PP_Instance /* instance */, |
| 623 bool /* is_filtering */, |
| 624 uint32_t /* event_classes */); |
| 625 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_ClearInputEvents, |
| 626 PP_Instance /* instance */, |
| 627 uint32_t /* event_classes */); |
588 | 628 |
589 IPC_SYNC_MESSAGE_ROUTED3_1( | 629 IPC_SYNC_MESSAGE_ROUTED3_1( |
590 PpapiHostMsg_PPBPDF_GetFontFileWithFallback, | 630 PpapiHostMsg_PPBPDF_GetFontFileWithFallback, |
591 PP_Instance /* instance */, | 631 PP_Instance /* instance */, |
592 pp::proxy::SerializedFontDescription /* description */, | 632 pp::proxy::SerializedFontDescription /* description */, |
593 int32_t /* charset */, | 633 int32_t /* charset */, |
594 pp::proxy::HostResource /* result */) | 634 pp::proxy::HostResource /* result */) |
595 IPC_SYNC_MESSAGE_ROUTED2_1( | 635 IPC_SYNC_MESSAGE_ROUTED2_1( |
596 PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile, | 636 PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile, |
597 pp::proxy::HostResource /* font_file */, | 637 pp::proxy::HostResource /* font_file */, |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 PP_Bool /* is_always_opaque */, | 804 PP_Bool /* is_always_opaque */, |
765 pp::proxy::HostResource /* result */) | 805 pp::proxy::HostResource /* result */) |
766 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_ResourceCreation_ImageData, | 806 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_ResourceCreation_ImageData, |
767 PP_Instance /* instance */, | 807 PP_Instance /* instance */, |
768 int32 /* format */, | 808 int32 /* format */, |
769 PP_Size /* size */, | 809 PP_Size /* size */, |
770 PP_Bool /* init_to_zero */, | 810 PP_Bool /* init_to_zero */, |
771 pp::proxy::HostResource /* result_resource */, | 811 pp::proxy::HostResource /* result_resource */, |
772 std::string /* image_data_desc */, | 812 std::string /* image_data_desc */, |
773 pp::proxy::ImageHandle /* result */) | 813 pp::proxy::ImageHandle /* result */) |
OLD | NEW |