Commit b7880609 authored by neb@chromium.org's avatar neb@chromium.org

Revert of revert 69309 - switch handles to 32 bit in PPAPI.

David Sehr helped me get the NaCl side working so I'll try to land this again.

Previous CL at http://codereview.chromium.org/5837001

BUG=69474
TEST=compiles

Review URL: http://codereview.chromium.org/6231003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71419 0039d316-1c4b-4281-b951-d872f2087c98
parent 502b937c
...@@ -7,7 +7,7 @@ vars = { ...@@ -7,7 +7,7 @@ vars = {
"webkit_revision": "75765", "webkit_revision": "75765",
"chromium_git": "http://git.chromium.org/git", "chromium_git": "http://git.chromium.org/git",
"swig_revision": "69281", "swig_revision": "69281",
"nacl_revision": "4113", "nacl_revision": "4139",
"libjingle_revision": "50", "libjingle_revision": "50",
"libvpx_revision": "65287", "libvpx_revision": "65287",
"ffmpeg_revision": "70984", "ffmpeg_revision": "70984",
......
...@@ -223,6 +223,11 @@ struct PP_VideoCompressedDataBuffer_Dev { ...@@ -223,6 +223,11 @@ struct PP_VideoCompressedDataBuffer_Dev {
// Bit mask of PP_VideoFrameInfoFlag. // Bit mask of PP_VideoFrameInfoFlag.
uint32_t flags; uint32_t flags;
// Padding to ensure the PP_Resource is 8-byte aligned relative to the
// start of the struct. This helps ensure PP_VideoFrameBuffer_Dev has
// consistent size and alignment across compilers.
int32_t padding;
// Time stamp of the frame in microsecond. // Time stamp of the frame in microsecond.
uint64_t time_stamp_us; uint64_t time_stamp_us;
}; };
...@@ -236,11 +241,6 @@ struct PP_VideoFrameBuffer_Dev { ...@@ -236,11 +241,6 @@ struct PP_VideoFrameBuffer_Dev {
int32_t height; int32_t height;
int32_t stride; int32_t stride;
// Padding to ensure the PP_Resource is 8-byte aligned relative to the
// start of the struct. This helps ensure PP_VideoFrameBuffer_Dev has
// consistent size and alignment across compilers.
int32_t padding;
// TODO(wjia): uint8* would be better for some cases. // TODO(wjia): uint8* would be better for some cases.
PP_Resource buffer; PP_Resource buffer;
} data_plane[PP_VIDEOFRAMEBUFFER_MAXNUMBERPLANES]; } data_plane[PP_VIDEOFRAMEBUFFER_MAXNUMBERPLANES];
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include "ppapi/c/pp_resource.h" #include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_stdint.h" #include "ppapi/c/pp_stdint.h"
#define PPB_AUDIO_DEV_INTERFACE "PPB_Audio(Dev);0.3" #define PPB_AUDIO_DEV_INTERFACE "PPB_Audio(Dev);0.4"
// Callback function type for SetCallback. // Callback function type for SetCallback.
typedef void (*PPB_Audio_Callback)(void* sample_buffer, typedef void (*PPB_Audio_Callback)(void* sample_buffer,
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "ppapi/c/pp_instance.h" #include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_resource.h" #include "ppapi/c/pp_resource.h"
#define PPB_AUDIO_TRUSTED_DEV_INTERFACE "PPB_AudioTrusted(Dev);0.2" #define PPB_AUDIO_TRUSTED_DEV_INTERFACE "PPB_AudioTrusted(Dev);0.3"
/** /**
* This interface is to be used by proxy implementations. All * This interface is to be used by proxy implementations. All
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include "ppapi/c/pp_resource.h" #include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_stdint.h" #include "ppapi/c/pp_stdint.h"
#define PPB_BUFFER_DEV_INTERFACE "PPB_Buffer(Dev);0.3" #define PPB_BUFFER_DEV_INTERFACE "PPB_Buffer(Dev);0.4"
struct PPB_Buffer_Dev { struct PPB_Buffer_Dev {
// Allocates a buffer of the given size in bytes. The return value will have // Allocates a buffer of the given size in bytes. The return value will have
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include "ppapi/c/pp_stdint.h" #include "ppapi/c/pp_stdint.h"
#include "ppapi/c/pp_var.h" #include "ppapi/c/pp_var.h"
#define PPB_CHAR_SET_DEV_INTERFACE "PPB_CharSet(Dev);0.3" #define PPB_CHAR_SET_DEV_INTERFACE "PPB_CharSet(Dev);0.4"
// Specifies the error behavior for the character set conversion functions. // Specifies the error behavior for the character set conversion functions.
// This will affect two cases: where the input is not encoded correctly, and // This will affect two cases: where the input is not encoded correctly, and
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include "ppapi/c/pp_point.h" #include "ppapi/c/pp_point.h"
#include "ppapi/c/pp_resource.h" #include "ppapi/c/pp_resource.h"
#define PPB_CURSOR_CONTROL_DEV_INTERFACE "PPB_CursorControl(Dev);0.2" #define PPB_CURSOR_CONTROL_DEV_INTERFACE "PPB_CursorControl(Dev);0.3"
struct PPB_CursorControl_Dev { struct PPB_CursorControl_Dev {
// Set a cursor. If "type" is PP_CURSOR_TYPE_CUSTOM, then "custom_image" // Set a cursor. If "type" is PP_CURSOR_TYPE_CUSTOM, then "custom_image"
......
...@@ -16,17 +16,10 @@ struct PP_CompletionCallback; ...@@ -16,17 +16,10 @@ struct PP_CompletionCallback;
struct PP_DirectoryEntry_Dev { struct PP_DirectoryEntry_Dev {
PP_Resource file_ref; PP_Resource file_ref;
PP_FileType_Dev file_type; PP_FileType_Dev file_type;
/** Ensure that this struct is 16-bytes wide by padding the end. Because
* PP_Resource is an 8-byte type, some compilers align this struct on 8-byte
* boundaries and pad it to 16 bytes even without @a padding. This makes its
* size consistent across compilers.
*/
int32_t padding;
}; };
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_DirectoryEntry_Dev, 16); PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_DirectoryEntry_Dev, 8);
#define PPB_DIRECTORYREADER_DEV_INTERFACE "PPB_DirectoryReader(Dev);0.3" #define PPB_DIRECTORYREADER_DEV_INTERFACE "PPB_DirectoryReader(Dev);0.4"
struct PPB_DirectoryReader_Dev { struct PPB_DirectoryReader_Dev {
// Creates a DirectoryReader for the given directory. Upon success, the // Creates a DirectoryReader for the given directory. Upon success, the
......
...@@ -30,7 +30,7 @@ struct PP_FileChooserOptions_Dev { ...@@ -30,7 +30,7 @@ struct PP_FileChooserOptions_Dev {
const char* accept_mime_types; const char* accept_mime_types;
}; };
#define PPB_FILECHOOSER_DEV_INTERFACE "PPB_FileChooser(Dev);0.2" #define PPB_FILECHOOSER_DEV_INTERFACE "PPB_FileChooser(Dev);0.3"
struct PPB_FileChooser_Dev { struct PPB_FileChooser_Dev {
// Creates a file chooser dialog with the specified options. The chooser is // Creates a file chooser dialog with the specified options. The chooser is
......
...@@ -39,7 +39,7 @@ typedef enum { ...@@ -39,7 +39,7 @@ typedef enum {
} PP_FileOpenFlags_Dev; } PP_FileOpenFlags_Dev;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FileOpenFlags_Dev, 4); PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FileOpenFlags_Dev, 4);
#define PPB_FILEIO_DEV_INTERFACE "PPB_FileIO(Dev);0.2" #define PPB_FILEIO_DEV_INTERFACE "PPB_FileIO(Dev);0.3"
// Use this interface to operate on a regular file (PP_FileType_Regular). // Use this interface to operate on a regular file (PP_FileType_Regular).
struct PPB_FileIO_Dev { struct PPB_FileIO_Dev {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
struct PP_CompletionCallback; struct PP_CompletionCallback;
#define PPB_FILEIOTRUSTED_DEV_INTERFACE "PPB_FileIOTrusted(Dev);0.1" #define PPB_FILEIOTRUSTED_DEV_INTERFACE "PPB_FileIOTrusted(Dev);0.2"
// Available only to trusted implementations. // Available only to trusted implementations.
struct PPB_FileIOTrusted_Dev { struct PPB_FileIOTrusted_Dev {
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include "ppapi/c/pp_resource.h" #include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_var.h" #include "ppapi/c/pp_var.h"
#define PPB_FILEREF_DEV_INTERFACE "PPB_FileRef(Dev);0.4" #define PPB_FILEREF_DEV_INTERFACE "PPB_FileRef(Dev);0.5"
// A FileRef is a "weak pointer" to a file in a file system. It contains a // A FileRef is a "weak pointer" to a file in a file system. It contains a
// PP_FileSystemType identifier and a file path string. // PP_FileSystemType identifier and a file path string.
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
struct PP_CompletionCallback; struct PP_CompletionCallback;
#define PPB_FILESYSTEM_DEV_INTERFACE "PPB_FileSystem(Dev);0.2" #define PPB_FILESYSTEM_DEV_INTERFACE "PPB_FileSystem(Dev);0.3"
struct PPB_FileSystem_Dev { struct PPB_FileSystem_Dev {
// Creates a weak pointer to the filesystem of the given type. // Creates a weak pointer to the filesystem of the given type.
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "ppapi/c/pp_instance.h" #include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_stdint.h" #include "ppapi/c/pp_stdint.h"
#define PPB_FIND_DEV_INTERFACE "PPB_Find(Dev);0.2" #define PPB_FIND_DEV_INTERFACE "PPB_Find(Dev);0.3"
struct PPB_Find_Dev { struct PPB_Find_Dev {
// Updates the number of find results for the current search term. If // Updates the number of find results for the current search term. If
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#include "ppapi/c/pp_stdint.h" #include "ppapi/c/pp_stdint.h"
#include "ppapi/c/pp_var.h" #include "ppapi/c/pp_var.h"
#define PPB_FONT_DEV_INTERFACE "PPB_Font(Dev);0.4" #define PPB_FONT_DEV_INTERFACE "PPB_Font(Dev);0.5"
struct PP_Point; struct PP_Point;
struct PP_Rect; struct PP_Rect;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "ppapi/c/pp_instance.h" #include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_stdint.h" #include "ppapi/c/pp_stdint.h"
#define PPB_FULLSCREEN_DEV_INTERFACE "PPB_Fullscreen(Dev);0.2" #define PPB_FULLSCREEN_DEV_INTERFACE "PPB_Fullscreen(Dev);0.3"
// Use this interface to change a plugin instance to fullscreen mode. // Use this interface to change a plugin instance to fullscreen mode.
struct PPB_Fullscreen_Dev { struct PPB_Fullscreen_Dev {
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
// core->ReleaseResource(context); // core->ReleaseResource(context);
// core->ReleaseResource(surface); // core->ReleaseResource(surface);
#define PPB_GRAPHICS_3D_DEV_INTERFACE "PPB_Graphics3D(Dev);0.2" #define PPB_GRAPHICS_3D_DEV_INTERFACE "PPB_Graphics3D(Dev);0.3"
struct PPB_Graphics3D_Dev { struct PPB_Graphics3D_Dev {
// TODO(alokp): Do these functions need module argument. // TODO(alokp): Do these functions need module argument.
......
...@@ -21,7 +21,7 @@ typedef enum { ...@@ -21,7 +21,7 @@ typedef enum {
} PP_ScrollBy_Dev; } PP_ScrollBy_Dev;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_ScrollBy_Dev, 4); PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_ScrollBy_Dev, 4);
#define PPB_SCROLLBAR_DEV_INTERFACE "PPB_Scrollbar(Dev);0.2" #define PPB_SCROLLBAR_DEV_INTERFACE "PPB_Scrollbar(Dev);0.3"
// The interface for a scrollbar. A scrollbar is a widget, so the functions // The interface for a scrollbar. A scrollbar is a widget, so the functions
// in PPB_Widget can also be used with scrollbar objects. // in PPB_Widget can also be used with scrollbar objects.
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
struct PP_Point; struct PP_Point;
#define PPB_TESTING_DEV_INTERFACE "PPB_Testing(Dev);0.3" #define PPB_TESTING_DEV_INTERFACE "PPB_Testing(Dev);0.4"
// This interface contains functions used for unit testing. Do not use in // This interface contains functions used for unit testing. Do not use in
// production code. They are not guaranteed to be available in normal plugin // production code. They are not guaranteed to be available in normal plugin
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include "ppapi/c/pp_stdint.h" #include "ppapi/c/pp_stdint.h"
#include "ppapi/c/pp_var.h" #include "ppapi/c/pp_var.h"
#define PPB_TRANSPORT_DEV_INTERFACE "PPB_Transport;0.3" #define PPB_TRANSPORT_DEV_INTERFACE "PPB_Transport;0.4"
struct PPB_Transport_Dev { struct PPB_Transport_Dev {
// Creates a new transport object with the specified name // Creates a new transport object with the specified name
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include "ppapi/c/pp_stdint.h" #include "ppapi/c/pp_stdint.h"
#include "ppapi/c/pp_var.h" #include "ppapi/c/pp_var.h"
#define PPB_URLUTIL_DEV_INTERFACE "PPB_UrlUtil(Dev);0.3" #define PPB_URLUTIL_DEV_INTERFACE "PPB_UrlUtil(Dev);0.4"
// A component specifies the range of the part of the URL. The begin specifies // A component specifies the range of the part of the URL. The begin specifies
// the index into the string of the first character of that component. The len // the index into the string of the first character of that component. The len
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#include "ppapi/c/pp_stdint.h" #include "ppapi/c/pp_stdint.h"
#include "ppapi/c/pp_completion_callback.h" #include "ppapi/c/pp_completion_callback.h"
#define PPB_VIDEODECODER_DEV_INTERFACE "PPB_VideoDecoder(Dev);0.3" #define PPB_VIDEODECODER_DEV_INTERFACE "PPB_VideoDecoder(Dev);0.4"
struct PPB_VideoDecoder_Dev { struct PPB_VideoDecoder_Dev {
// Queries capability of the decoder for |codec|. // Queries capability of the decoder for |codec|.
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "ppapi/c/pp_instance.h" #include "ppapi/c/pp_instance.h"
// Zoom interface should only apply to those full-page "plugin-document". // Zoom interface should only apply to those full-page "plugin-document".
#define PPB_ZOOM_DEV_INTERFACE "PPB_Zoom(Dev);0.1" #define PPB_ZOOM_DEV_INTERFACE "PPB_Zoom(Dev);0.2"
struct PPB_Zoom_Dev { struct PPB_Zoom_Dev {
// Informs the browser about the new zoom factor for the plugin (see // Informs the browser about the new zoom factor for the plugin (see
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "ppapi/c/pp_instance.h" #include "ppapi/c/pp_instance.h"
#define PPP_CURSOR_CONTROL_DEV_INTERFACE "PPP_CursorControl(Dev);0.1" #define PPP_CURSOR_CONTROL_DEV_INTERFACE "PPP_CursorControl(Dev);0.2"
struct PPP_CursorControl_Dev { struct PPP_CursorControl_Dev {
// Called when the instance looses the cursor lock, e.g. because the user // Called when the instance looses the cursor lock, e.g. because the user
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "ppapi/c/pp_bool.h" #include "ppapi/c/pp_bool.h"
#include "ppapi/c/pp_instance.h" #include "ppapi/c/pp_instance.h"
#define PPP_FIND_DEV_INTERFACE "PPP_Find(Dev);0.2" #define PPP_FIND_DEV_INTERFACE "PPP_Find(Dev);0.3"
struct PPP_Find_Dev { struct PPP_Find_Dev {
// Finds the given UTF-8 text starting at the current selection. The number of // Finds the given UTF-8 text starting at the current selection. The number of
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "ppapi/c/pp_instance.h" #include "ppapi/c/pp_instance.h"
#define PPP_GRAPHICS_3D_DEV_INTERFACE "PPP_Graphics_3D(Dev);0.1" #define PPP_GRAPHICS_3D_DEV_INTERFACE "PPP_Graphics_3D(Dev);0.2"
struct PPP_Graphics3D_Dev { struct PPP_Graphics3D_Dev {
// Called when the OpenGL ES window is invalidated and needs to be repainted. // Called when the OpenGL ES window is invalidated and needs to be repainted.
......
...@@ -46,7 +46,7 @@ struct PP_PrintPageNumberRange_Dev { ...@@ -46,7 +46,7 @@ struct PP_PrintPageNumberRange_Dev {
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintPageNumberRange_Dev, 8); PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintPageNumberRange_Dev, 8);
// Interface for the plugin to implement printing. // Interface for the plugin to implement printing.
#define PPP_PRINTING_DEV_INTERFACE "PPP_Printing(Dev);0.2" #define PPP_PRINTING_DEV_INTERFACE "PPP_Printing(Dev);0.3"
struct PPP_Printing_Dev { struct PPP_Printing_Dev {
// Returns array of supported print output formats. The array is allocated // Returns array of supported print output formats. The array is allocated
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include "ppapi/c/pp_stdint.h" #include "ppapi/c/pp_stdint.h"
// Interface for the plugin to implement when using a scrollbar widget. // Interface for the plugin to implement when using a scrollbar widget.
#define PPP_SCROLLBAR_DEV_INTERFACE "PPP_Scrollbar(Dev);0.1" #define PPP_SCROLLBAR_DEV_INTERFACE "PPP_Scrollbar(Dev);0.2"
struct PPP_Scrollbar_Dev { struct PPP_Scrollbar_Dev {
// Informs the instance that the scrollbar's value has changed. // Informs the instance that the scrollbar's value has changed.
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "ppapi/c/pp_instance.h" #include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_var.h" #include "ppapi/c/pp_var.h"
#define PPP_SELECTION_DEV_INTERFACE "PPP_Selection(Dev);0.2" #define PPP_SELECTION_DEV_INTERFACE "PPP_Selection(Dev);0.3"
struct PPP_Selection_Dev { struct PPP_Selection_Dev {
/** /**
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include "ppapi/c/pp_rect.h" #include "ppapi/c/pp_rect.h"
// Interface for the plugin to implement when using a widget. // Interface for the plugin to implement when using a widget.
#define PPP_WIDGET_DEV_INTERFACE "PPP_Widget(Dev);0.1" #define PPP_WIDGET_DEV_INTERFACE "PPP_Widget(Dev);0.2"
struct PPP_Widget_Dev { struct PPP_Widget_Dev {
// Informs the instance that the given rectangle needs to be repainted. // Informs the instance that the given rectangle needs to be repainted.
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "ppapi/c/pp_instance.h" #include "ppapi/c/pp_instance.h"
// Zoom interface should only apply to those full-page "plugin-document". // Zoom interface should only apply to those full-page "plugin-document".
#define PPP_ZOOM_DEV_INTERFACE "PPP_Zoom(Dev);0.2" #define PPP_ZOOM_DEV_INTERFACE "PPP_Zoom(Dev);0.3"
struct PPP_Zoom_Dev { struct PPP_Zoom_Dev {
// Instruct plug-in to zoom according to the given factor and whether the zoom // Instruct plug-in to zoom according to the given factor and whether the zoom
......
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
* is guaranteed never to be 0, so a plugin can initialize it to 0 to * is guaranteed never to be 0, so a plugin can initialize it to 0 to
* indicate a "NULL handle." * indicate a "NULL handle."
*/ */
typedef int64_t PP_Instance; typedef int32_t PP_Instance;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Instance, 8); PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Instance, 4);
/** /**
* @} * @}
......
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
* handle assigned by the browser to the plugin. It is guaranteed never to be * handle assigned by the browser to the plugin. It is guaranteed never to be
* 0, so a plugin can initialize it to 0 to indicate a "NULL handle." * 0, so a plugin can initialize it to 0 to indicate a "NULL handle."
*/ */
typedef int64_t PP_Module; typedef int32_t PP_Module;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Module, 8); PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Module, 4);
/** /**
* @} * @}
......
...@@ -30,8 +30,8 @@ ...@@ -30,8 +30,8 @@
* it to 0 to indicate a "NULL handle." Some interfaces may return a NULL * it to 0 to indicate a "NULL handle." Some interfaces may return a NULL
* resource to indicate failure. * resource to indicate failure.
*/ */
typedef int64_t PP_Resource; typedef int32_t PP_Resource;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Resource, 8); PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Resource, 4);
/** /**
* @} * @}
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include "ppapi/c/pp_var.h" #include "ppapi/c/pp_var.h"
#include "ppapi/c/ppb_var.h" #include "ppapi/c/ppb_var.h"
#define PPB_CLASS_INTERFACE "PPB_Class;0.3" #define PPB_CLASS_INTERFACE "PPB_Class;0.4"
/** /**
* @file * @file
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
struct PP_CompletionCallback; struct PP_CompletionCallback;
#define PPB_CORE_INTERFACE "PPB_Core;0.2" #define PPB_CORE_INTERFACE "PPB_Core;0.3"
/** /**
* @file * @file
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include "ppapi/c/pp_resource.h" #include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_var.h" #include "ppapi/c/pp_var.h"
#define PPB_INSTANCE_INTERFACE "PPB_Instance;0.3" #define PPB_INSTANCE_INTERFACE "PPB_Instance;0.4"
/** /**
* @file * @file
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
struct PP_CompletionCallback; struct PP_CompletionCallback;
#define PPB_URLLOADER_INTERFACE "PPB_URLLoader;1" #define PPB_URLLOADER_INTERFACE "PPB_URLLoader;0.1"
// The interface for loading URLs. // The interface for loading URLs.
// //
......
...@@ -35,7 +35,7 @@ typedef enum { ...@@ -35,7 +35,7 @@ typedef enum {
} PP_URLRequestProperty; } PP_URLRequestProperty;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLRequestProperty, 4); PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLRequestProperty, 4);
#define PPB_URLREQUESTINFO_INTERFACE "PPB_URLRequestInfo;1.1" #define PPB_URLREQUESTINFO_INTERFACE "PPB_URLRequestInfo;0.1"
struct PPB_URLRequestInfo { struct PPB_URLRequestInfo {
// Create a new URLRequestInfo object. Returns 0 if the module is invalid. // Create a new URLRequestInfo object. Returns 0 if the module is invalid.
......
...@@ -20,7 +20,7 @@ typedef enum { ...@@ -20,7 +20,7 @@ typedef enum {
} PP_URLResponseProperty; } PP_URLResponseProperty;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLResponseProperty, 4); PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLResponseProperty, 4);
#define PPB_URLRESPONSEINFO_INTERFACE "PPB_URLResponseInfo;1.1" #define PPB_URLRESPONSEINFO_INTERFACE "PPB_URLResponseInfo;0.1"
struct PPB_URLResponseInfo { struct PPB_URLResponseInfo {
// Returns PP_TRUE if the given resource is an URLResponseInfo. Returns // Returns PP_TRUE if the given resource is an URLResponseInfo. Returns
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include "ppapi/c/pp_stdint.h" #include "ppapi/c/pp_stdint.h"
#include "ppapi/c/pp_var.h" #include "ppapi/c/pp_var.h"
#define PPB_VAR_INTERFACE "PPB_Var;0.3" #define PPB_VAR_INTERFACE "PPB_Var;0.4"
/** /**
* @file * @file
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "ppapi/c/pp_stdint.h" #include "ppapi/c/pp_stdint.h"
#include "ppapi/c/pp_resource.h" #include "ppapi/c/pp_resource.h"
#define PPB_IMAGEDATA_TRUSTED_INTERFACE "PPB_ImageDataTrusted;0.3" #define PPB_IMAGEDATA_TRUSTED_INTERFACE "PPB_ImageDataTrusted;0.4"
struct PPB_ImageDataTrusted { struct PPB_ImageDataTrusted {
/** /**
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "ppapi/c/pp_resource.h" #include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_stdint.h" #include "ppapi/c/pp_stdint.h"
#define PPB_URLLOADERTRUSTED_INTERFACE "PPB_URLLoaderTrusted;0.2" #define PPB_URLLOADERTRUSTED_INTERFACE "PPB_URLLoaderTrusted;0.3"
// Callback that indicates the status of the download and upload for the // Callback that indicates the status of the download and upload for the
// given URLLoader resource. // given URLLoader resource.
......
...@@ -25,7 +25,7 @@ PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_ClassProperty, 20); ...@@ -25,7 +25,7 @@ PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_ClassProperty, 20);
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_CompletionCallback, 8); PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_CompletionCallback, 8);
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_FileChooserOptions_Dev, 8); PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_FileChooserOptions_Dev, 8);
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoDecoderConfig_Dev, 20); PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoDecoderConfig_Dev, 20);
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoFrameBuffer_Dev, 112); PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoFrameBuffer_Dev, 80);
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoUncompressedDataBuffer_Dev, 136); PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoUncompressedDataBuffer_Dev, 104);
#endif /* PPAPI_TESTS_ARCH_DEPENDENT_SIZES_32_H_ */ #endif /* PPAPI_TESTS_ARCH_DEPENDENT_SIZES_32_H_ */
...@@ -25,7 +25,7 @@ PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_ClassProperty, 40); ...@@ -25,7 +25,7 @@ PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_ClassProperty, 40);
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_CompletionCallback, 16); PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_CompletionCallback, 16);
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_FileChooserOptions_Dev, 16); PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_FileChooserOptions_Dev, 16);
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoDecoderConfig_Dev, 40); PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoDecoderConfig_Dev, 40);
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoFrameBuffer_Dev, 120); PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoFrameBuffer_Dev, 88);
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoUncompressedDataBuffer_Dev, 152); PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoUncompressedDataBuffer_Dev, 120);
#endif /* PPAPI_TESTS_ARCH_DEPENDENT_SIZES_64_H_ */ #endif /* PPAPI_TESTS_ARCH_DEPENDENT_SIZES_64_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment