| 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_Graphics3D) | 23 PROXIED_API(PPB_Graphics3D) |
| 23 PROXIED_API(PPB_ImageData) | 24 PROXIED_API(PPB_ImageData) |
| 24 PROXIED_API(PPB_Instance) | 25 PROXIED_API(PPB_Instance) |
| 25 | 26 |
| 26 // 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 |
| 27 // 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. |
| 28 UNPROXIED_API(PPB_AudioConfig) | 29 UNPROXIED_API(PPB_AudioConfig) |
| 29 | 30 |
| 30 // Interfaces | 31 // Interfaces |
| 31 // ---------- | 32 // ---------- |
| 32 // Enumerates interfaces as (api_name, interface_name, interface_struct). | 33 // Enumerates interfaces as (api_name, interface_name, interface_struct). |
| 33 // | 34 // |
| 34 // 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 |
| 35 // that implements the API. Some things may be special and aren't implemented | 36 // that implements the API. Some things may be special and aren't implemented |
| 36 // by any specific API object, and we use "NoAPIName" for those. Implementors | 37 // by any specific API object, and we use "NoAPIName" for those. Implementors |
| 37 // of these macros should handle this case. There can be more than one line | 38 // of these macros should handle this case. There can be more than one line |
| 38 // referring to the same api_name (typically different versions of the | 39 // referring to the same api_name (typically different versions of the |
| 39 // same interface). | 40 // same interface). |
| 40 // | 41 // |
| 41 // The interface_name is the string that corresponds to the interface. | 42 // The interface_name is the string that corresponds to the interface. |
| 42 // | 43 // |
| 43 // The interface_struct is the typename of the struct corresponding to the | 44 // The interface_struct is the typename of the struct corresponding to the |
| 44 // interface string. | 45 // interface string. |
| 45 // Note: Core is special and is registered manually. | 46 // Note: Core is special and is registered manually. |
| 46 PROXIED_IFACE(PPB_Audio, PPB_AUDIO_INTERFACE_1_0, PPB_Audio_1_0) | 47 PROXIED_IFACE(PPB_Audio, PPB_AUDIO_INTERFACE_1_0, PPB_Audio_1_0) |
| 47 PROXIED_IFACE(NoAPIName, PPB_FILEREF_INTERFACE_1_0, PPB_FileRef_1_0) | 48 PROXIED_IFACE(PPB_FileRef, PPB_FILEREF_INTERFACE_1_0, PPB_FileRef_1_0) |
| 48 PROXIED_IFACE(NoAPIName, PPB_FILEREF_INTERFACE_1_1, PPB_FileRef_1_1) | 49 PROXIED_IFACE(PPB_FileRef, PPB_FILEREF_INTERFACE_1_1, PPB_FileRef_1_1) |
| 49 PROXIED_IFACE(NoAPIName, PPB_FILESYSTEM_INTERFACE_1_0, PPB_FileSystem_1_0) | 50 PROXIED_IFACE(NoAPIName, PPB_FILESYSTEM_INTERFACE_1_0, PPB_FileSystem_1_0) |
| 50 PROXIED_IFACE(PPB_Graphics3D, PPB_GRAPHICS_3D_INTERFACE_1_0, PPB_Graphics3D_1_0) | 51 PROXIED_IFACE(PPB_Graphics3D, PPB_GRAPHICS_3D_INTERFACE_1_0, PPB_Graphics3D_1_0) |
| 51 PROXIED_IFACE(PPB_ImageData, PPB_IMAGEDATA_INTERFACE_1_0, PPB_ImageData_1_0) | 52 PROXIED_IFACE(PPB_ImageData, PPB_IMAGEDATA_INTERFACE_1_0, PPB_ImageData_1_0) |
| 52 PROXIED_IFACE(PPB_Instance, PPB_CONSOLE_INTERFACE_1_0, PPB_Console_1_0) | 53 PROXIED_IFACE(PPB_Instance, PPB_CONSOLE_INTERFACE_1_0, PPB_Console_1_0) |
| 53 PROXIED_IFACE(PPB_Instance, PPB_GAMEPAD_INTERFACE_1_0, PPB_Gamepad_1_0) | 54 PROXIED_IFACE(PPB_Instance, PPB_GAMEPAD_INTERFACE_1_0, PPB_Gamepad_1_0) |
| 54 PROXIED_IFACE(PPB_Instance, PPB_INSTANCE_INTERFACE_1_0, PPB_Instance_1_0) | 55 PROXIED_IFACE(PPB_Instance, PPB_INSTANCE_INTERFACE_1_0, PPB_Instance_1_0) |
| 55 PROXIED_IFACE(NoAPIName, PPB_FILEIO_INTERFACE_1_0, PPB_FileIO_1_0) | 56 PROXIED_IFACE(NoAPIName, PPB_FILEIO_INTERFACE_1_0, PPB_FileIO_1_0) |
| 56 PROXIED_IFACE(NoAPIName, PPB_FILEIO_INTERFACE_1_1, PPB_FileIO_1_1) | 57 PROXIED_IFACE(NoAPIName, PPB_FILEIO_INTERFACE_1_1, PPB_FileIO_1_1) |
| 57 PROXIED_IFACE(NoAPIName, PPB_GRAPHICS_2D_INTERFACE_1_0, PPB_Graphics2D_1_0) | 58 PROXIED_IFACE(NoAPIName, PPB_GRAPHICS_2D_INTERFACE_1_0, PPB_Graphics2D_1_0) |
| 58 PROXIED_IFACE(NoAPIName, PPB_GRAPHICS_2D_INTERFACE_1_1, PPB_Graphics2D_1_1) | 59 PROXIED_IFACE(NoAPIName, PPB_GRAPHICS_2D_INTERFACE_1_1, PPB_Graphics2D_1_1) |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 93 |
| 93 // Note: PPB_Var and PPB_VarArrayBuffer are special and registered manually. | 94 // Note: PPB_Var and PPB_VarArrayBuffer are special and registered manually. |
| 94 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) |
| 95 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) |
| 96 | 97 |
| 97 // This has no corresponding _Proxy object since it does no IPC. | 98 // This has no corresponding _Proxy object since it does no IPC. |
| 98 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) |
| 99 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) |
| 100 | 101 |
| 101 #include "ppapi/thunk/interfaces_postamble.h" | 102 #include "ppapi/thunk/interfaces_postamble.h" |
| OLD | NEW |