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

Side by Side Diff: ppapi/thunk/interfaces_ppb_public_stable.h

Issue 10699066: Add PPB_ImageData and PPB_Graphics2D to the untrusted NaCl build of the proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.cc ('k') | ppapi/thunk/resource_creation_api.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_Core) 20 PROXIED_API(PPB_Core)
21 PROXIED_API(PPB_FileIO) 21 PROXIED_API(PPB_FileIO)
22 PROXIED_API(PPB_FileRef) 22 PROXIED_API(PPB_FileRef)
23 PROXIED_API(PPB_FileSystem) 23 PROXIED_API(PPB_FileSystem)
24 PROXIED_API(PPB_Graphics2D)
25 PROXIED_API(PPB_ImageData)
24 PROXIED_API(PPB_Instance) 26 PROXIED_API(PPB_Instance)
25 PROXIED_API(PPB_URLLoader) 27 PROXIED_API(PPB_URLLoader)
26 PROXIED_API(PPB_URLResponseInfo) 28 PROXIED_API(PPB_URLResponseInfo)
27 29
28 #if !defined(OS_NACL) // TODO(bbudge) Port to NaCl. 30 #if !defined(OS_NACL) // TODO(bbudge) Port to NaCl.
29 PROXIED_API(PPB_Audio) 31 PROXIED_API(PPB_Audio)
30 // AudioConfig isn't proxied in the normal way, we have only local classes and 32 // AudioConfig isn't proxied in the normal way, we have only local classes and
31 // serialize it to a struct when we need it on the host side. 33 // serialize it to a struct when we need it on the host side.
32 UNPROXIED_API(PPB_AudioConfig) 34 UNPROXIED_API(PPB_AudioConfig)
33 PROXIED_API(PPB_Graphics2D)
34 PROXIED_API(PPB_ImageData)
35 #endif // !defined(OS_NACL) 35 #endif // !defined(OS_NACL)
36 36
37 // Interfaces 37 // Interfaces
38 // ---------- 38 // ----------
39 // Enumerates interfaces as (api_name, interface_name, interface_struct). 39 // Enumerates interfaces as (api_name, interface_name, interface_struct).
40 // 40 //
41 // The api_name corresponds to the class in the list above for the object 41 // The api_name corresponds to the class in the list above for the object
42 // that implements the API. Some things may be special and aren't implemented 42 // that implements the API. Some things may be special and aren't implemented
43 // by any specific API object, and we use "NoAPIName" for those. Implementors 43 // by any specific API object, and we use "NoAPIName" for those. Implementors
44 // of these macros should handle this case. There can be more than one line 44 // of these macros should handle this case. There can be more than one line
45 // referring to the same api_name (typically different versions of the 45 // referring to the same api_name (typically different versions of the
46 // same interface). 46 // same interface).
47 // 47 //
48 // The interface_name is the string that corresponds to the interface. 48 // The interface_name is the string that corresponds to the interface.
49 // 49 //
50 // The interface_struct is the typename of the struct corresponding to the 50 // The interface_struct is the typename of the struct corresponding to the
51 // interface string. 51 // interface string.
52 // Note: Core is special and is registered manually. 52 // Note: Core is special and is registered manually.
53 PROXIED_IFACE(PPB_FileIO, PPB_FILEIO_INTERFACE_1_0, PPB_FileIO_1_0) 53 PROXIED_IFACE(PPB_FileIO, PPB_FILEIO_INTERFACE_1_0, PPB_FileIO_1_0)
54 PROXIED_IFACE(PPB_FileRef, PPB_FILEREF_INTERFACE_1_0, PPB_FileRef_1_0) 54 PROXIED_IFACE(PPB_FileRef, PPB_FILEREF_INTERFACE_1_0, PPB_FileRef_1_0)
55 PROXIED_IFACE(PPB_FileSystem, PPB_FILESYSTEM_INTERFACE_1_0, PPB_FileSystem_1_0) 55 PROXIED_IFACE(PPB_FileSystem, PPB_FILESYSTEM_INTERFACE_1_0, PPB_FileSystem_1_0)
56 PROXIED_IFACE(PPB_Graphics2D, PPB_GRAPHICS_2D_INTERFACE_1_0, PPB_Graphics2D_1_0)
57 PROXIED_IFACE(PPB_ImageData, PPB_IMAGEDATA_INTERFACE_1_0, PPB_ImageData_1_0)
56 PROXIED_IFACE(PPB_Instance, PPB_GAMEPAD_INTERFACE_1_0, PPB_Gamepad_1_0) 58 PROXIED_IFACE(PPB_Instance, PPB_GAMEPAD_INTERFACE_1_0, PPB_Gamepad_1_0)
57 PROXIED_IFACE(PPB_Instance, PPB_INSTANCE_INTERFACE_1_0, PPB_Instance_1_0) 59 PROXIED_IFACE(PPB_Instance, PPB_INSTANCE_INTERFACE_1_0, PPB_Instance_1_0)
58 PROXIED_IFACE(NoAPIName, PPB_INPUT_EVENT_INTERFACE_1_0, PPB_InputEvent_1_0) 60 PROXIED_IFACE(NoAPIName, PPB_INPUT_EVENT_INTERFACE_1_0, PPB_InputEvent_1_0)
59 PROXIED_IFACE(NoAPIName, PPB_KEYBOARD_INPUT_EVENT_INTERFACE_1_0, 61 PROXIED_IFACE(NoAPIName, PPB_KEYBOARD_INPUT_EVENT_INTERFACE_1_0,
60 PPB_KeyboardInputEvent_1_0) 62 PPB_KeyboardInputEvent_1_0)
61 PROXIED_IFACE(NoAPIName, PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0, 63 PROXIED_IFACE(NoAPIName, PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0,
62 PPB_MouseInputEvent_1_0) 64 PPB_MouseInputEvent_1_0)
63 PROXIED_IFACE(NoAPIName, PPB_MOUSE_INPUT_EVENT_INTERFACE_1_1, 65 PROXIED_IFACE(NoAPIName, PPB_MOUSE_INPUT_EVENT_INTERFACE_1_1,
64 PPB_MouseInputEvent_1_1) 66 PPB_MouseInputEvent_1_1)
65 PROXIED_IFACE(NoAPIName, PPB_WHEEL_INPUT_EVENT_INTERFACE_1_0, 67 PROXIED_IFACE(NoAPIName, PPB_WHEEL_INPUT_EVENT_INTERFACE_1_0,
66 PPB_WheelInputEvent_1_0) 68 PPB_WheelInputEvent_1_0)
67 PROXIED_IFACE(PPB_Instance, PPB_FULLSCREEN_INTERFACE_1_0, PPB_Fullscreen_1_0) 69 PROXIED_IFACE(PPB_Instance, PPB_FULLSCREEN_INTERFACE_1_0, PPB_Fullscreen_1_0)
68 PROXIED_IFACE(PPB_Instance, PPB_MESSAGING_INTERFACE_1_0, PPB_Messaging_1_0) 70 PROXIED_IFACE(PPB_Instance, PPB_MESSAGING_INTERFACE_1_0, PPB_Messaging_1_0)
69 PROXIED_IFACE(PPB_Instance, PPB_MOUSELOCK_INTERFACE_1_0, PPB_MouseLock_1_0) 71 PROXIED_IFACE(PPB_Instance, PPB_MOUSELOCK_INTERFACE_1_0, PPB_MouseLock_1_0)
70 PROXIED_IFACE(PPB_URLLoader, PPB_URLLOADER_INTERFACE_1_0, PPB_URLLoader_1_0) 72 PROXIED_IFACE(PPB_URLLoader, PPB_URLLOADER_INTERFACE_1_0, PPB_URLLoader_1_0)
71 PROXIED_IFACE(NoAPIName, PPB_URLREQUESTINFO_INTERFACE_1_0, 73 PROXIED_IFACE(NoAPIName, PPB_URLREQUESTINFO_INTERFACE_1_0,
72 PPB_URLRequestInfo_1_0) 74 PPB_URLRequestInfo_1_0)
73 PROXIED_IFACE(PPB_URLResponseInfo, PPB_URLRESPONSEINFO_INTERFACE_1_0, 75 PROXIED_IFACE(PPB_URLResponseInfo, PPB_URLRESPONSEINFO_INTERFACE_1_0,
74 PPB_URLResponseInfo_1_0) 76 PPB_URLResponseInfo_1_0)
75 77
76 // Note: PPB_Var and PPB_VarArrayBuffer are special and registered manually. 78 // Note: PPB_Var and PPB_VarArrayBuffer are special and registered manually.
77 PROXIED_IFACE(NoAPIName, PPB_VIEW_INTERFACE_1_0, PPB_View_1_0) 79 PROXIED_IFACE(NoAPIName, PPB_VIEW_INTERFACE_1_0, PPB_View_1_0)
78 80
79 #if !defined(OS_NACL) // TODO(bbudge) Port to NaCl. 81 #if !defined(OS_NACL) // TODO(bbudge) Port to NaCl.
80 PROXIED_IFACE(PPB_Audio, PPB_AUDIO_INTERFACE_1_0, PPB_Audio_1_0) 82 PROXIED_IFACE(PPB_Audio, PPB_AUDIO_INTERFACE_1_0, PPB_Audio_1_0)
81 // This has no corresponding _Proxy object since it does no IPC. 83 // This has no corresponding _Proxy object since it does no IPC.
82 PROXIED_IFACE(NoAPIName, PPB_AUDIO_CONFIG_INTERFACE_1_0, PPB_AudioConfig_1_0) 84 PROXIED_IFACE(NoAPIName, PPB_AUDIO_CONFIG_INTERFACE_1_0, PPB_AudioConfig_1_0)
83 PROXIED_IFACE(NoAPIName, PPB_AUDIO_CONFIG_INTERFACE_1_1, PPB_AudioConfig_1_1) 85 PROXIED_IFACE(NoAPIName, PPB_AUDIO_CONFIG_INTERFACE_1_1, PPB_AudioConfig_1_1)
84 PROXIED_IFACE(PPB_Graphics2D, PPB_GRAPHICS_2D_INTERFACE_1_0, PPB_Graphics2D_1_0)
85 PROXIED_IFACE(PPB_Graphics3D, PPB_GRAPHICS_3D_INTERFACE_1_0, PPB_Graphics3D_1_0) 86 PROXIED_IFACE(PPB_Graphics3D, PPB_GRAPHICS_3D_INTERFACE_1_0, PPB_Graphics3D_1_0)
86 PROXIED_IFACE(PPB_ImageData, PPB_IMAGEDATA_INTERFACE_1_0, PPB_ImageData_1_0)
87 PROXIED_IFACE(PPB_Instance, PPB_MOUSECURSOR_INTERFACE_1_0, PPB_MouseCursor_1_0) 87 PROXIED_IFACE(PPB_Instance, PPB_MOUSECURSOR_INTERFACE_1_0, PPB_MouseCursor_1_0)
88 #endif // !defined(OS_NACL) 88 #endif // !defined(OS_NACL)
89 89
90 #include "ppapi/thunk/interfaces_postamble.h" 90 #include "ppapi/thunk/interfaces_postamble.h"
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.cc ('k') | ppapi/thunk/resource_creation_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698