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

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

Issue 7285010: Implement an input event resource. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 | Annotate | Revision Log
OLDNEW
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 12 matching lines...) Expand all
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/c/private/ppb_flash_tcp_socket.h" 29 #include "ppapi/c/private/ppb_flash_tcp_socket.h"
30 #include "ppapi/proxy/ppapi_param_traits.h" 30 #include "ppapi/proxy/ppapi_param_traits.h"
31 #include "ppapi/proxy/serialized_flash_menu.h" 31 #include "ppapi/proxy/serialized_flash_menu.h"
32 #include "ppapi/proxy/serialized_structs.h" 32 #include "ppapi/proxy/serialized_structs.h"
33 #include "ppapi/shared_impl/input_event_impl.h"
33 #include "ppapi/shared_impl/ppapi_preferences.h" 34 #include "ppapi/shared_impl/ppapi_preferences.h"
34 35
35 #define IPC_MESSAGE_START PpapiMsgStart 36 #define IPC_MESSAGE_START PpapiMsgStart
36 37
38 IPC_ENUM_TRAITS(PP_InputEvent_Type)
39 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton)
40
37 IPC_STRUCT_TRAITS_BEGIN(PP_Point) 41 IPC_STRUCT_TRAITS_BEGIN(PP_Point)
38 IPC_STRUCT_TRAITS_MEMBER(x) 42 IPC_STRUCT_TRAITS_MEMBER(x)
39 IPC_STRUCT_TRAITS_MEMBER(y) 43 IPC_STRUCT_TRAITS_MEMBER(y)
40 IPC_STRUCT_TRAITS_END() 44 IPC_STRUCT_TRAITS_END()
41 45
46 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint)
47 IPC_STRUCT_TRAITS_MEMBER(x)
48 IPC_STRUCT_TRAITS_MEMBER(y)
49 IPC_STRUCT_TRAITS_END()
50
42 IPC_STRUCT_TRAITS_BEGIN(PP_Size) 51 IPC_STRUCT_TRAITS_BEGIN(PP_Size)
43 IPC_STRUCT_TRAITS_MEMBER(height) 52 IPC_STRUCT_TRAITS_MEMBER(height)
44 IPC_STRUCT_TRAITS_MEMBER(width) 53 IPC_STRUCT_TRAITS_MEMBER(width)
45 IPC_STRUCT_TRAITS_END() 54 IPC_STRUCT_TRAITS_END()
46 55
47 IPC_STRUCT_TRAITS_BEGIN(PP_Rect) 56 IPC_STRUCT_TRAITS_BEGIN(PP_Rect)
48 IPC_STRUCT_TRAITS_MEMBER(point) 57 IPC_STRUCT_TRAITS_MEMBER(point)
49 IPC_STRUCT_TRAITS_MEMBER(size) 58 IPC_STRUCT_TRAITS_MEMBER(size)
50 IPC_STRUCT_TRAITS_END() 59 IPC_STRUCT_TRAITS_END()
51 60
52 IPC_STRUCT_TRAITS_BEGIN(::ppapi::Preferences) 61 IPC_STRUCT_TRAITS_BEGIN(::ppapi::Preferences)
53 IPC_STRUCT_TRAITS_MEMBER(standard_font_family) 62 IPC_STRUCT_TRAITS_MEMBER(standard_font_family)
54 IPC_STRUCT_TRAITS_MEMBER(fixed_font_family) 63 IPC_STRUCT_TRAITS_MEMBER(fixed_font_family)
55 IPC_STRUCT_TRAITS_MEMBER(serif_font_family) 64 IPC_STRUCT_TRAITS_MEMBER(serif_font_family)
56 IPC_STRUCT_TRAITS_MEMBER(sans_serif_font_family) 65 IPC_STRUCT_TRAITS_MEMBER(sans_serif_font_family)
57 IPC_STRUCT_TRAITS_MEMBER(default_font_size) 66 IPC_STRUCT_TRAITS_MEMBER(default_font_size)
58 IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size) 67 IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size)
59 IPC_STRUCT_TRAITS_END() 68 IPC_STRUCT_TRAITS_END()
60 69
70 IPC_STRUCT_TRAITS_BEGIN(::ppapi::InputEventData)
71 IPC_STRUCT_TRAITS_MEMBER(is_filtered)
72 IPC_STRUCT_TRAITS_MEMBER(event_type)
73 IPC_STRUCT_TRAITS_MEMBER(event_time_stamp)
74 IPC_STRUCT_TRAITS_MEMBER(event_modifiers)
75 IPC_STRUCT_TRAITS_MEMBER(mouse_button)
76 IPC_STRUCT_TRAITS_MEMBER(mouse_position)
77 IPC_STRUCT_TRAITS_MEMBER(mouse_click_count)
78 IPC_STRUCT_TRAITS_MEMBER(wheel_delta)
79 IPC_STRUCT_TRAITS_MEMBER(wheel_ticks)
80 IPC_STRUCT_TRAITS_MEMBER(wheel_scroll_by_page)
81 IPC_STRUCT_TRAITS_MEMBER(key_code)
82 IPC_STRUCT_TRAITS_MEMBER(character_text)
83 IPC_STRUCT_TRAITS_END()
84
61 // These are from the browser to the plugin. 85 // These are from the browser to the plugin.
62 // Loads the given plugin. 86 // Loads the given plugin.
63 IPC_MESSAGE_CONTROL1(PpapiMsg_LoadPlugin, FilePath /* path */) 87 IPC_MESSAGE_CONTROL1(PpapiMsg_LoadPlugin, FilePath /* path */)
64 88
65 // Creates a channel to talk to a renderer. The plugin will respond with 89 // Creates a channel to talk to a renderer. The plugin will respond with
66 // PpapiHostMsg_ChannelCreated. 90 // PpapiHostMsg_ChannelCreated.
67 IPC_MESSAGE_CONTROL2(PpapiMsg_CreateChannel, 91 IPC_MESSAGE_CONTROL2(PpapiMsg_CreateChannel,
68 base::ProcessHandle /* host_process_handle */, 92 base::ProcessHandle /* host_process_handle */,
69 int /* renderer_id */) 93 int /* renderer_id */)
70 94
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 pp::proxy::SerializedVar /* out_exception */, 251 pp::proxy::SerializedVar /* out_exception */,
228 pp::proxy::SerializedVar /* result */) 252 pp::proxy::SerializedVar /* result */)
229 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate, 253 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate,
230 int64 /* ppp_class */, 254 int64 /* ppp_class */,
231 int64 /* object */) 255 int64 /* object */)
232 256
233 // PPP_Graphics3D_Dev. 257 // PPP_Graphics3D_Dev.
234 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPGraphics3D_ContextLost, 258 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPGraphics3D_ContextLost,
235 PP_Instance /* instance */) 259 PP_Instance /* instance */)
236 260
261 // PPP_InputEvent.
262 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInputEvent_HandleInputEvent,
263 PP_Instance /* instance */,
264 ppapi::InputEventData /* data */)
265 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInputEvent_HandleFilteredInputEvent,
266 PP_Instance /* instance */,
267 ppapi::InputEventData /* data */,
268 PP_Bool /* result */)
269
237 // PPP_Instance. 270 // PPP_Instance.
238 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate, 271 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate,
239 PP_Instance /* instance */, 272 PP_Instance /* instance */,
240 std::vector<std::string> /* argn */, 273 std::vector<std::string> /* argn */,
241 std::vector<std::string> /* argv */, 274 std::vector<std::string> /* argv */,
242 PP_Bool /* result */) 275 PP_Bool /* result */)
243 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiMsg_PPPInstance_DidDestroy, 276 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiMsg_PPPInstance_DidDestroy,
244 PP_Instance /* instance */) 277 PP_Instance /* instance */)
245 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPInstance_DidChangeView, 278 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPInstance_DidChangeView,
246 PP_Instance /* instance */, 279 PP_Instance /* instance */,
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 pp::proxy::SerializedVar /* out_exception */, 651 pp::proxy::SerializedVar /* out_exception */,
619 pp::proxy::SerializedVar /* result */) 652 pp::proxy::SerializedVar /* result */)
620 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_SetFullscreen, 653 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_SetFullscreen,
621 PP_Instance /* instance */, 654 PP_Instance /* instance */,
622 PP_Bool /* fullscreen */, 655 PP_Bool /* fullscreen */,
623 PP_Bool /* result */) 656 PP_Bool /* result */)
624 IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetScreenSize, 657 IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetScreenSize,
625 PP_Instance /* instance */, 658 PP_Instance /* instance */,
626 PP_Bool /* result */, 659 PP_Bool /* result */,
627 PP_Size /* size */) 660 PP_Size /* size */)
661 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_RequestInputEvents,
662 PP_Instance /* instance */,
663 bool /* is_filtering */,
664 uint32_t /* event_classes */);
dmichael (off chromium) 2011/07/05 15:37:24 You're getting compile errors here... probably ju
665 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_ClearInputEvents,
666 PP_Instance /* instance */,
667 uint32_t /* event_classes */);
628 668
629 IPC_SYNC_MESSAGE_ROUTED3_1( 669 IPC_SYNC_MESSAGE_ROUTED3_1(
630 PpapiHostMsg_PPBPDF_GetFontFileWithFallback, 670 PpapiHostMsg_PPBPDF_GetFontFileWithFallback,
631 PP_Instance /* instance */, 671 PP_Instance /* instance */,
632 pp::proxy::SerializedFontDescription /* description */, 672 pp::proxy::SerializedFontDescription /* description */,
633 int32_t /* charset */, 673 int32_t /* charset */,
634 pp::proxy::HostResource /* result */) 674 pp::proxy::HostResource /* result */)
635 IPC_SYNC_MESSAGE_ROUTED2_1( 675 IPC_SYNC_MESSAGE_ROUTED2_1(
636 PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile, 676 PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile,
637 pp::proxy::HostResource /* font_file */, 677 pp::proxy::HostResource /* font_file */,
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 PP_Bool /* is_always_opaque */, 844 PP_Bool /* is_always_opaque */,
805 pp::proxy::HostResource /* result */) 845 pp::proxy::HostResource /* result */)
806 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_ResourceCreation_ImageData, 846 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_ResourceCreation_ImageData,
807 PP_Instance /* instance */, 847 PP_Instance /* instance */,
808 int32 /* format */, 848 int32 /* format */,
809 PP_Size /* size */, 849 PP_Size /* size */,
810 PP_Bool /* init_to_zero */, 850 PP_Bool /* init_to_zero */,
811 pp::proxy::HostResource /* result_resource */, 851 pp::proxy::HostResource /* result_resource */,
812 std::string /* image_data_desc */, 852 std::string /* image_data_desc */,
813 pp::proxy::ImageHandle /* result */) 853 pp::proxy::ImageHandle /* result */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698