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 #include "ppapi/thunk/interfaces_preamble.h" | 5 #include "ppapi/thunk/interfaces_preamble.h" |
6 | 6 |
7 // This file contains lists of interfaces. It's intended to be included by | 7 // This file contains lists of interfaces. It's intended to be included by |
8 // another file which defines implementations of the macros. This allows files | 8 // another file which defines implementations of the macros. This allows files |
9 // to do specific registration tasks for each supported interface. | 9 // to do specific registration tasks for each supported interface. |
10 | 10 |
11 | 11 |
12 // Api categories | 12 // Api categories |
13 // -------------- | 13 // -------------- |
14 // Enumerates the categories of APIs. These correspnd to the *_api.h files in | 14 // Enumerates the categories of APIs. These correspnd to the *_api.h files in |
15 // this directory. One API may implement one or more actual interfaces. | 15 // this directory. One API may implement one or more actual interfaces. |
16 // | 16 // |
17 // For PROXIED_APIs, these also correspond to *_Proxy objects. The proxied ones | 17 // For PROXIED_APIs, these also correspond to *_Proxy objects. The proxied ones |
18 // define factory functions for each of these classes. UNPROXIED_APIs are ones | 18 // define factory functions for each of these classes. UNPROXIED_APIs are ones |
19 // that exist in the webkit/plugins/ppapi/*_impl.h, but not in the proxy. | 19 // that exist in the webkit/plugins/ppapi/*_impl.h, but not in the proxy. |
20 PROXIED_API(PPB_Audio) | 20 PROXIED_API(PPB_Audio) |
21 PROXIED_API(PPB_Core) | 21 PROXIED_API(PPB_Core) |
22 PROXIED_API(PPB_FileRef) | 22 PROXIED_API(PPB_FileRef) |
23 PROXIED_API(PPB_Graphics3D) | 23 PROXIED_API(PPB_Graphics3D) |
24 PROXIED_API(PPB_ImageData) | 24 PROXIED_API(PPB_ImageData) |
25 PROXIED_API(PPB_Instance) | 25 PROXIED_API(PPB_Instance) |
26 PROXIED_API(PPB_TCPSocket) | |
27 | 26 |
28 // AudioConfig isn't proxied in the normal way, we have only local classes and | 27 // AudioConfig isn't proxied in the normal way, we have only local classes and |
29 // serialize it to a struct when we need it on the host side. | 28 // serialize it to a struct when we need it on the host side. |
30 UNPROXIED_API(PPB_AudioConfig) | 29 UNPROXIED_API(PPB_AudioConfig) |
31 | 30 |
32 // Interfaces | 31 // Interfaces |
33 // ---------- | 32 // ---------- |
34 // Enumerates interfaces as (api_name, interface_name, interface_struct). | 33 // Enumerates interfaces as (api_name, interface_name, interface_struct). |
35 // | 34 // |
36 // The api_name corresponds to the class in the list above for the object | 35 // The api_name corresponds to the class in the list above for the object |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 PROXIED_IFACE(NoAPIName, PPB_WHEEL_INPUT_EVENT_INTERFACE_1_0, | 70 PROXIED_IFACE(NoAPIName, PPB_WHEEL_INPUT_EVENT_INTERFACE_1_0, |
72 PPB_WheelInputEvent_1_0) | 71 PPB_WheelInputEvent_1_0) |
73 PROXIED_IFACE(NoAPIName, PPB_TOUCH_INPUT_EVENT_INTERFACE_1_0, | 72 PROXIED_IFACE(NoAPIName, PPB_TOUCH_INPUT_EVENT_INTERFACE_1_0, |
74 PPB_TouchInputEvent_1_0) | 73 PPB_TouchInputEvent_1_0) |
75 PROXIED_IFACE(PPB_Instance, PPB_FULLSCREEN_INTERFACE_1_0, PPB_Fullscreen_1_0) | 74 PROXIED_IFACE(PPB_Instance, PPB_FULLSCREEN_INTERFACE_1_0, PPB_Fullscreen_1_0) |
76 PROXIED_IFACE(PPB_Instance, PPB_MESSAGING_INTERFACE_1_0, PPB_Messaging_1_0) | 75 PROXIED_IFACE(PPB_Instance, PPB_MESSAGING_INTERFACE_1_0, PPB_Messaging_1_0) |
77 PROXIED_IFACE(PPB_Instance, PPB_MOUSECURSOR_INTERFACE_1_0, PPB_MouseCursor_1_0) | 76 PROXIED_IFACE(PPB_Instance, PPB_MOUSECURSOR_INTERFACE_1_0, PPB_MouseCursor_1_0) |
78 PROXIED_IFACE(PPB_Instance, PPB_MOUSELOCK_INTERFACE_1_0, PPB_MouseLock_1_0) | 77 PROXIED_IFACE(PPB_Instance, PPB_MOUSELOCK_INTERFACE_1_0, PPB_MouseLock_1_0) |
79 PROXIED_IFACE(NoAPIName, PPB_NETADDRESS_INTERFACE_1_0, PPB_NetAddress_1_0) | 78 PROXIED_IFACE(NoAPIName, PPB_NETADDRESS_INTERFACE_1_0, PPB_NetAddress_1_0) |
80 PROXIED_IFACE(NoAPIName, PPB_NETWORKPROXY_INTERFACE_1_0, PPB_NetworkProxy_1_0) | 79 PROXIED_IFACE(NoAPIName, PPB_NETWORKPROXY_INTERFACE_1_0, PPB_NetworkProxy_1_0) |
81 PROXIED_IFACE(PPB_TCPSocket, PPB_TCPSOCKET_INTERFACE_1_0, PPB_TCPSocket_1_0) | 80 PROXIED_IFACE(NoAPIName, PPB_TCPSOCKET_INTERFACE_1_0, PPB_TCPSocket_1_0) |
82 PROXIED_IFACE(NoAPIName, PPB_TEXTINPUTCONTROLLER_INTERFACE_1_0, | 81 PROXIED_IFACE(NoAPIName, PPB_TEXTINPUTCONTROLLER_INTERFACE_1_0, |
83 PPB_TextInputController_1_0) | 82 PPB_TextInputController_1_0) |
84 PROXIED_IFACE(NoAPIName, PPB_UDPSOCKET_INTERFACE_1_0, PPB_UDPSocket_1_0) | 83 PROXIED_IFACE(NoAPIName, PPB_UDPSOCKET_INTERFACE_1_0, PPB_UDPSocket_1_0) |
85 PROXIED_IFACE(NoAPIName, PPB_URLLOADER_INTERFACE_1_0, PPB_URLLoader_1_0) | 84 PROXIED_IFACE(NoAPIName, PPB_URLLOADER_INTERFACE_1_0, PPB_URLLoader_1_0) |
86 PROXIED_IFACE(NoAPIName, PPB_URLREQUESTINFO_INTERFACE_1_0, | 85 PROXIED_IFACE(NoAPIName, PPB_URLREQUESTINFO_INTERFACE_1_0, |
87 PPB_URLRequestInfo_1_0) | 86 PPB_URLRequestInfo_1_0) |
88 PROXIED_IFACE(NoAPIName, PPB_URLRESPONSEINFO_INTERFACE_1_0, | 87 PROXIED_IFACE(NoAPIName, PPB_URLRESPONSEINFO_INTERFACE_1_0, |
89 PPB_URLResponseInfo_1_0) | 88 PPB_URLResponseInfo_1_0) |
90 PROXIED_IFACE(NoAPIName, PPB_VAR_ARRAY_INTERFACE_1_0, PPB_VarArray_1_0) | 89 PROXIED_IFACE(NoAPIName, PPB_VAR_ARRAY_INTERFACE_1_0, PPB_VarArray_1_0) |
91 PROXIED_IFACE(NoAPIName, PPB_VAR_DICTIONARY_INTERFACE_1_0, | 90 PROXIED_IFACE(NoAPIName, PPB_VAR_DICTIONARY_INTERFACE_1_0, |
92 PPB_VarDictionary_1_0) | 91 PPB_VarDictionary_1_0) |
93 PROXIED_IFACE(NoAPIName, PPB_WEBSOCKET_INTERFACE_1_0, PPB_WebSocket_1_0) | 92 PROXIED_IFACE(NoAPIName, PPB_WEBSOCKET_INTERFACE_1_0, PPB_WebSocket_1_0) |
94 | 93 |
95 // Note: PPB_Var and PPB_VarArrayBuffer are special and registered manually. | 94 // Note: PPB_Var and PPB_VarArrayBuffer are special and registered manually. |
96 PROXIED_IFACE(NoAPIName, PPB_VIEW_INTERFACE_1_0, PPB_View_1_0) | 95 PROXIED_IFACE(NoAPIName, PPB_VIEW_INTERFACE_1_0, PPB_View_1_0) |
97 PROXIED_IFACE(NoAPIName, PPB_VIEW_INTERFACE_1_1, PPB_View_1_1) | 96 PROXIED_IFACE(NoAPIName, PPB_VIEW_INTERFACE_1_1, PPB_View_1_1) |
98 | 97 |
99 // This has no corresponding _Proxy object since it does no IPC. | 98 // This has no corresponding _Proxy object since it does no IPC. |
100 PROXIED_IFACE(NoAPIName, PPB_AUDIO_CONFIG_INTERFACE_1_0, PPB_AudioConfig_1_0) | 99 PROXIED_IFACE(NoAPIName, PPB_AUDIO_CONFIG_INTERFACE_1_0, PPB_AudioConfig_1_0) |
101 PROXIED_IFACE(NoAPIName, PPB_AUDIO_CONFIG_INTERFACE_1_1, PPB_AudioConfig_1_1) | 100 PROXIED_IFACE(NoAPIName, PPB_AUDIO_CONFIG_INTERFACE_1_1, PPB_AudioConfig_1_1) |
102 | 101 |
103 #include "ppapi/thunk/interfaces_postamble.h" | 102 #include "ppapi/thunk/interfaces_postamble.h" |
OLD | NEW |