From bf5bdfffbe033f9bcce95dc0a3c841344fa10adb Mon Sep 17 00:00:00 2001 From: "noelallen@google.com" Date: Tue, 19 Jul 2011 23:25:48 +0000 Subject: Missing changes for IDL To minor changes to comments for the IDL. Updated pp_stdint.idl so that we could generate it instead of checking in pp_stdint.h. In addition it now provides a location for defining built in types. Eventually we can migrate type properties into this file. Review URL: http://codereview.chromium.org/7448005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93125 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/api/pp_stdint.idl | 41 ++++++++++++++++++++++++++++++- ppapi/api/trusted/ppb_file_io_trusted.idl | 8 +++--- 2 files changed, 45 insertions(+), 4 deletions(-) (limited to 'ppapi/api') diff --git a/ppapi/api/pp_stdint.idl b/ppapi/api/pp_stdint.idl index 51a3eeb..fba15dd 100644 --- a/ppapi/api/pp_stdint.idl +++ b/ppapi/api/pp_stdint.idl @@ -9,7 +9,46 @@ * for trusted modules. */ -#inline +label Chrome { + M13 = 0.0, + M14 = 1.0 +}; + +[version=0.0] +describe { + /** Standard Ints. */ + int8_t; + int16_t; + int32_t; + int64_t; + uint8_t; + uint16_t; + uint32_t; + uint64_t; + /** Small and large floats. */ + double_t; + float_t; + + /** Native file handle (int). */ + handle_t; + + /** Interface object (void *). */ + interface_t; + + /** Used for padding, should be (u)int8_t */ + char; + + /** Pointer to memory (void *). */ + mem_t; + + /** Pointer to null terminated string (char *). */ + str_t; + + /** No return value. */ + void; +}; + +#inline c /** * diff --git a/ppapi/api/trusted/ppb_file_io_trusted.idl b/ppapi/api/trusted/ppb_file_io_trusted.idl index 12f167a..a3c35e7 100644 --- a/ppapi/api/trusted/ppb_file_io_trusted.idl +++ b/ppapi/api/trusted/ppb_file_io_trusted.idl @@ -22,9 +22,11 @@ interface PPB_FileIOTrusted { */ int32_t GetOSFileDescriptor([in] PP_Resource file_io); - // Notifies the browser that underlying file will be modified. This gives - // the browser the opportunity to apply quota restrictions and possibly - // return an error to indicate that the write is not allowed. + /** + * Notifies the browser that underlying file will be modified. This gives + * the browser the opportunity to apply quota restrictions and possibly + * return an error to indicate that the write is not allowed. + */ int32_t WillWrite([in] PP_Resource file_io, [in] int64_t offset, [in] int32_t bytes_to_write, -- cgit v1.1