Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / ppapi / thunk / interfaces_ppb_public_stable.h
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
3 // found in the LICENSE file.
4
5 #include "ppapi/thunk/interfaces_preamble.h"
6
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
9 // to do specific registration tasks for each supported interface.
10 //
11 // When adding an interface, you must also add the hash value for the
12 // interface's name to tools/metrics/histograms/histograms.xml. This is so we
13 // get human-readable UMA tracking for interface usage.
14 //
15 // Use the 'pepper_hash_for_uma' tool in ppapi/tools to determine the hash for
16 // a given interface string.
17
18 // Api categories
19 // --------------
20 // Enumerates the categories of APIs. These correspnd to the *_api.h files in
21 // this directory. One API may implement one or more actual interfaces.
22 //
23 // For PROXIED_APIs, these also correspond to *_Proxy objects. The proxied ones
24 // define factory functions for each of these classes. UNPROXIED_APIs are ones
25 // that exist in the webkit/plugins/ppapi/*_impl.h, but not in the proxy.
26 PROXIED_API(PPB_Audio)
27 PROXIED_API(PPB_Core)
28 PROXIED_API(PPB_Graphics3D)
29 PROXIED_API(PPB_ImageData)
30 PROXIED_API(PPB_Instance)
31
32 // AudioConfig isn't proxied in the normal way, we have only local classes and
33 // serialize it to a struct when we need it on the host side.
34 UNPROXIED_API(PPB_AudioConfig)
35
36 // Interfaces
37 // ----------
38 // Enumerates interfaces as (api_name, interface_name, interface_struct).
39 //
40 // The api_name corresponds to the class in the list above for the object
41 // that implements the API. Some things may be special and aren't implemented
42 // by any specific API object, and we use "NoAPIName" for those. Implementors
43 // of these macros should handle this case. There can be more than one line
44 // referring to the same api_name (typically different versions of the
45 // same interface).
46 //
47 // The interface_name is the string that corresponds to the interface.
48 //
49 // The interface_struct is the typename of the struct corresponding to the
50 // interface string.
51 // Note: Core is special and is registered manually.
52 PROXIED_IFACE(PPB_AUDIO_INTERFACE_1_0, PPB_Audio_1_0)
53 PROXIED_IFACE(PPB_AUDIO_INTERFACE_1_1, PPB_Audio_1_1)
54 PROXIED_IFACE(PPB_FILEREF_INTERFACE_1_0, PPB_FileRef_1_0)
55 PROXIED_IFACE(PPB_FILEREF_INTERFACE_1_1, PPB_FileRef_1_1)
56 PROXIED_IFACE(PPB_FILEREF_INTERFACE_1_2, PPB_FileRef_1_2)
57 PROXIED_IFACE(PPB_FILESYSTEM_INTERFACE_1_0, PPB_FileSystem_1_0)
58 PROXIED_IFACE(PPB_GRAPHICS_3D_INTERFACE_1_0, PPB_Graphics3D_1_0)
59 PROXIED_IFACE(PPB_IMAGEDATA_INTERFACE_1_0, PPB_ImageData_1_0)
60 PROXIED_IFACE(PPB_CONSOLE_INTERFACE_1_0, PPB_Console_1_0)
61 PROXIED_IFACE(PPB_GAMEPAD_INTERFACE_1_0, PPB_Gamepad_1_0)
62 PROXIED_IFACE(PPB_INSTANCE_INTERFACE_1_0, PPB_Instance_1_0)
63 PROXIED_IFACE(PPB_FILEIO_INTERFACE_1_0, PPB_FileIO_1_0)
64 PROXIED_IFACE(PPB_FILEIO_INTERFACE_1_1, PPB_FileIO_1_1)
65 PROXIED_IFACE(PPB_GRAPHICS_2D_INTERFACE_1_0, PPB_Graphics2D_1_0)
66 PROXIED_IFACE(PPB_GRAPHICS_2D_INTERFACE_1_1, PPB_Graphics2D_1_1)
67 PROXIED_IFACE(PPB_HOSTRESOLVER_INTERFACE_1_0, PPB_HostResolver_1_0)
68 PROXIED_IFACE(PPB_IME_INPUT_EVENT_INTERFACE_1_0, PPB_IMEInputEvent_1_0)
69 PROXIED_IFACE(PPB_INPUT_EVENT_INTERFACE_1_0, PPB_InputEvent_1_0)
70 PROXIED_IFACE(PPB_KEYBOARD_INPUT_EVENT_INTERFACE_1_0,
71               PPB_KeyboardInputEvent_1_0)
72 PROXIED_IFACE(PPB_KEYBOARD_INPUT_EVENT_INTERFACE_1_2,
73               PPB_KeyboardInputEvent_1_2)
74 PROXIED_IFACE(PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0, PPB_MouseInputEvent_1_0)
75 PROXIED_IFACE(PPB_MOUSE_INPUT_EVENT_INTERFACE_1_1, PPB_MouseInputEvent_1_1)
76 PROXIED_IFACE(PPB_WHEEL_INPUT_EVENT_INTERFACE_1_0, PPB_WheelInputEvent_1_0)
77 PROXIED_IFACE(PPB_TOUCH_INPUT_EVENT_INTERFACE_1_0, PPB_TouchInputEvent_1_0)
78 PROXIED_IFACE(PPB_FULLSCREEN_INTERFACE_1_0, PPB_Fullscreen_1_0)
79 PROXIED_IFACE(PPB_MESSAGING_INTERFACE_1_0, PPB_Messaging_1_0)
80 PROXIED_IFACE(PPB_MOUSECURSOR_INTERFACE_1_0, PPB_MouseCursor_1_0)
81 PROXIED_IFACE(PPB_MOUSELOCK_INTERFACE_1_0, PPB_MouseLock_1_0)
82 PROXIED_IFACE(PPB_NETADDRESS_INTERFACE_1_0, PPB_NetAddress_1_0)
83 PROXIED_IFACE(PPB_NETWORKLIST_INTERFACE_1_0, PPB_NetworkList_1_0)
84 PROXIED_IFACE(PPB_NETWORKMONITOR_INTERFACE_1_0, PPB_NetworkMonitor_1_0)
85 PROXIED_IFACE(PPB_NETWORKPROXY_INTERFACE_1_0, PPB_NetworkProxy_1_0)
86 PROXIED_IFACE(PPB_TCPSOCKET_INTERFACE_1_0, PPB_TCPSocket_1_0)
87 PROXIED_IFACE(PPB_TCPSOCKET_INTERFACE_1_1, PPB_TCPSocket_1_1)
88 PROXIED_IFACE(PPB_TEXTINPUTCONTROLLER_INTERFACE_1_0,
89               PPB_TextInputController_1_0)
90 PROXIED_IFACE(PPB_UDPSOCKET_INTERFACE_1_0, PPB_UDPSocket_1_0)
91 PROXIED_IFACE(PPB_URLLOADER_INTERFACE_1_0, PPB_URLLoader_1_0)
92 PROXIED_IFACE(PPB_URLREQUESTINFO_INTERFACE_1_0, PPB_URLRequestInfo_1_0)
93 PROXIED_IFACE(PPB_URLRESPONSEINFO_INTERFACE_1_0, PPB_URLResponseInfo_1_0)
94 PROXIED_IFACE(PPB_VAR_ARRAY_INTERFACE_1_0, PPB_VarArray_1_0)
95 PROXIED_IFACE(PPB_VAR_DICTIONARY_INTERFACE_1_0, PPB_VarDictionary_1_0)
96 PROXIED_IFACE(PPB_WEBSOCKET_INTERFACE_1_0, PPB_WebSocket_1_0)
97
98 // Note: PPB_Var and PPB_VarArrayBuffer are special and registered manually.
99 PROXIED_IFACE(PPB_VIEW_INTERFACE_1_0, PPB_View_1_0)
100 PROXIED_IFACE(PPB_VIEW_INTERFACE_1_1, PPB_View_1_1)
101
102 // This has no corresponding _Proxy object since it does no IPC.
103 PROXIED_IFACE(PPB_AUDIO_CONFIG_INTERFACE_1_0, PPB_AudioConfig_1_0)
104 PROXIED_IFACE(PPB_AUDIO_CONFIG_INTERFACE_1_1, PPB_AudioConfig_1_1)
105
106 #include "ppapi/thunk/interfaces_postamble.h"