diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-13 02:43:33 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-13 02:43:33 +0000 |
commit | 03f54587d056d2c0812358fb9897b3c665ce12e0 (patch) | |
tree | 863553808fcc6e0a21ee8a744b0d4de66994d807 /ppapi/api | |
parent | 01fe08ad788807e609ef24c0e230f3cb0dff6409 (diff) | |
download | chromium_src-03f54587d056d2c0812358fb9897b3c665ce12e0.zip chromium_src-03f54587d056d2c0812358fb9897b3c665ce12e0.tar.gz chromium_src-03f54587d056d2c0812358fb9897b3c665ce12e0.tar.bz2 |
Add values to all (non-dev, non-private) Pepper .idl enumerations.
This reduces the warnings when running the generator and makes the definitions
more robust (or at least makes it more obvious when someone changes things).
TBR=dmichael@chromium.org
Review URL: http://codereview.chromium.org/8538038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109817 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/api')
-rw-r--r-- | ppapi/api/pp_file_info.idl | 12 | ||||
-rw-r--r-- | ppapi/api/pp_var.idl | 18 | ||||
-rw-r--r-- | ppapi/api/ppb_url_request_info.idl | 26 | ||||
-rw-r--r-- | ppapi/api/ppb_url_response_info.idl | 12 |
4 files changed, 34 insertions, 34 deletions
diff --git a/ppapi/api/pp_file_info.idl b/ppapi/api/pp_file_info.idl index d974044..dab34abc 100644 --- a/ppapi/api/pp_file_info.idl +++ b/ppapi/api/pp_file_info.idl @@ -13,11 +13,11 @@ [assert_size(4)] enum PP_FileType { /** A regular file type */ - PP_FILETYPE_REGULAR, + PP_FILETYPE_REGULAR = 0, /** A directory */ - PP_FILETYPE_DIRECTORY, + PP_FILETYPE_DIRECTORY = 1, /** A catch-all for unidentified types */ - PP_FILETYPE_OTHER + PP_FILETYPE_OTHER = 2 }; /** @@ -28,11 +28,11 @@ enum PP_FileSystemType { /** For identified invalid return values */ PP_FILESYSTEMTYPE_INVALID = 0, /** For external file system types */ - PP_FILESYSTEMTYPE_EXTERNAL, + PP_FILESYSTEMTYPE_EXTERNAL = 1, /** For local persistant file system types */ - PP_FILESYSTEMTYPE_LOCALPERSISTENT, + PP_FILESYSTEMTYPE_LOCALPERSISTENT = 2, /** For local temporary file system types */ - PP_FILESYSTEMTYPE_LOCALTEMPORARY + PP_FILESYSTEMTYPE_LOCALTEMPORARY = 3 }; /** diff --git a/ppapi/api/pp_var.idl b/ppapi/api/pp_var.idl index 5927cbc..1a6ad7e 100644 --- a/ppapi/api/pp_var.idl +++ b/ppapi/api/pp_var.idl @@ -17,42 +17,42 @@ enum PP_VarType { /** * An undefined value. */ - PP_VARTYPE_UNDEFINED, + PP_VARTYPE_UNDEFINED = 0, /** * A NULL value. This is similar to undefined, but JavaScript differentiates * the two so it is exposed here as well. */ - PP_VARTYPE_NULL, + PP_VARTYPE_NULL = 1, /** * A boolean value, use the <code>as_bool</code> member of the var. */ - PP_VARTYPE_BOOL, + PP_VARTYPE_BOOL = 2, /** * A 32-bit integer value. Use the <code>as_int</code> member of the var. */ - PP_VARTYPE_INT32, + PP_VARTYPE_INT32 = 3, /** * A double-precision floating point value. Use the <code>as_double</code> * member of the var. */ - PP_VARTYPE_DOUBLE, + PP_VARTYPE_DOUBLE = 4, /** * The Var represents a string. The <code>as_id</code> field is used to * identify the string, which may be created and retrieved from the * <code>PPB_Var</code> interface. */ - PP_VARTYPE_STRING, + PP_VARTYPE_STRING = 5, /** * Represents a JavaScript object. This vartype is not currently usable * from modules, although it is used internally for some tasks. */ - PP_VARTYPE_OBJECT, + PP_VARTYPE_OBJECT = 6, /** * Arrays and dictionaries are not currently supported but will be added @@ -60,8 +60,8 @@ enum PP_VarType { * to properly AddRef/Release them as you would with strings to ensure your * module will continue to work with future versions of the API. */ - PP_VARTYPE_ARRAY, - PP_VARTYPE_DICTIONARY + PP_VARTYPE_ARRAY = 7, + PP_VARTYPE_DICTIONARY = 8 }; diff --git a/ppapi/api/ppb_url_request_info.idl b/ppapi/api/ppb_url_request_info.idl index 793101f..99e6cce 100644 --- a/ppapi/api/ppb_url_request_info.idl +++ b/ppapi/api/ppb_url_request_info.idl @@ -18,7 +18,7 @@ label Chrome { [assert_size(4)] enum PP_URLRequestProperty { /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ - PP_URLREQUESTPROPERTY_URL, + PP_URLREQUESTPROPERTY_URL = 0, /** * This corresponds to a string (<code>PP_VARTYPE_STRING</code>); either @@ -27,7 +27,7 @@ enum PP_URLRequestProperty { * Methods</a> documentation for further information. * */ - PP_URLREQUESTPROPERTY_METHOD, + PP_URLREQUESTPROPERTY_METHOD = 1, /** * This corresponds to a string (<code>PP_VARTYPE_STRING</code>); \n @@ -35,7 +35,7 @@ enum PP_URLRequestProperty { * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html"Header * Field Definitions</a> documentaiton for further information. */ - PP_URLREQUESTPROPERTY_HEADERS, + PP_URLREQUESTPROPERTY_HEADERS = 2, /** * This corresponds to a <code>PP_Bool</code> (<code>PP_VARTYPE_BOOL</code>; @@ -44,7 +44,7 @@ enum PP_URLRequestProperty { * to a file. Use PPB_URLLoader.FinishStreamingToFile() to complete the * download. */ - PP_URLREQUESTPROPERTY_STREAMTOFILE, + PP_URLREQUESTPROPERTY_STREAMTOFILE = 3, /** * This corresponds to a <code>PP_Bool</code> (<code>PP_VARTYPE_BOOL</code>; @@ -53,7 +53,7 @@ enum PP_URLRequestProperty { * PPB_URLLoader.FollowRedirects() to follow the redirects only after * examining redirect headers. */ - PP_URLREQUESTPROPERTY_FOLLOWREDIRECTS, + PP_URLREQUESTPROPERTY_FOLLOWREDIRECTS = 4, /** * This corresponds to a <code>PP_Bool</code> (<code>PP_VARTYPE_BOOL</code>; @@ -61,7 +61,7 @@ enum PP_URLRequestProperty { * Set this value to <code>PP_TRUE</code> if you want to be able to poll the * download progress using PPB_URLLoader.GetDownloadProgress(). */ - PP_URLREQUESTPROPERTY_RECORDDOWNLOADPROGRESS, + PP_URLREQUESTPROPERTY_RECORDDOWNLOADPROGRESS = 5, /** * This corresponds to a <code>PP_Bool</code> @@ -69,7 +69,7 @@ enum PP_URLRequestProperty { * you want to be able to poll the upload progress using * PPB_URLLoader.GetUplaodProgress(). */ - PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS, + PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS = 6, /** * This corresponds to a string (<code>PP_VARTYPE_STRING)</code> or may be @@ -81,7 +81,7 @@ enum PP_URLRequestProperty { * referrer; if given to a loader without universal access, * <code>PP_ERROR_NOACCESS</code> will result. */ - PP_URLREQUESTPROPERTY_CUSTOMREFERRERURL, + PP_URLREQUESTPROPERTY_CUSTOMREFERRERURL = 7, /** * This corresponds to a <code>PP_Bool</code> (<code>PP_VARTYPE_BOOL</code>; @@ -92,7 +92,7 @@ enum PP_URLRequestProperty { * the <a href="http://www.w3.org/TR/access-control">Cross-Origin Resource * Sharing</a> documentation. */ - PP_URLREQUESTPROPERTY_ALLOWCROSSORIGINREQUESTS, + PP_URLREQUESTPROPERTY_ALLOWCROSSORIGINREQUESTS = 8, /** * This corresponds to a <code>PP_Bool</code> (<code>PP_VARTYPE_BOOL</code>; @@ -101,7 +101,7 @@ enum PP_URLRequestProperty { * no credentials are sent with the request and cookies are ignored in the * response. If the request is not cross-origin, this property is ignored. */ - PP_URLREQUESTPROPERTY_ALLOWCREDENTIALS, + PP_URLREQUESTPROPERTY_ALLOWCREDENTIALS = 9, /** * This corresponds to a string (<code>PP_VARTYPE_STRING</code>) or may be @@ -113,7 +113,7 @@ enum PP_URLRequestProperty { * to set a custom content transfer encoding; if given to a loader without * universal access, <code>PP_ERROR_NOACCESS</code> will result. */ - PP_URLREQUESTPROPERTY_CUSTOMCONTENTTRANSFERENCODING, + PP_URLREQUESTPROPERTY_CUSTOMCONTENTTRANSFERENCODING = 10, /** * This corresponds to an integer (<code>PP_VARTYPE_INT32</code>); default @@ -126,7 +126,7 @@ enum PP_URLRequestProperty { * <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERERTHRESHOLD</code> must also * be set. Behavior is undefined if the former is <= the latter. */ - PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD, + PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD = 11, /** * This corresponds to an integer (<code>PP_VARTYPE_INT32</code>); default is @@ -140,7 +140,7 @@ enum PP_URLRequestProperty { * <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD</code> must also * be set. Behavior is undefined if the former is >= the latter. */ - PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERTHRESHOLD + PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERTHRESHOLD = 12 }; /** diff --git a/ppapi/api/ppb_url_response_info.idl b/ppapi/api/ppb_url_response_info.idl index 53b00a2..a896720 100644 --- a/ppapi/api/ppb_url_response_info.idl +++ b/ppapi/api/ppb_url_response_info.idl @@ -26,7 +26,7 @@ enum PP_URLResponseProperty { * <a href="http://www.w3.org/TR/html4/struct/links.html#h-12.4.1"> * HTML Resolving Relative URIs</a> documentation for further information. */ - PP_URLRESPONSEPROPERTY_URL, + PP_URLRESPONSEPROPERTY_URL = 0, /** * This corresponds to a string (PP_VARTYPE_STRING); the absolute URL returned @@ -35,7 +35,7 @@ enum PP_URLResponseProperty { * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3"> * HTTP Status Codes - Redirection</a> documentation for further information. */ - PP_URLRESPONSEPROPERTY_REDIRECTURL, + PP_URLRESPONSEPROPERTY_REDIRECTURL = 1, /** * This corresponds to a string (PP_VARTYPE_STRING); the HTTP method to be @@ -44,7 +44,7 @@ enum PP_URLResponseProperty { * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3"> * HTTP Status Codes - Redirection</a> documentation for further information. */ - PP_URLRESPONSEPROPERTY_REDIRECTMETHOD, + PP_URLRESPONSEPROPERTY_REDIRECTMETHOD = 2, /** * This corresponds to an int32 (PP_VARETYPE_INT32); the status code from the @@ -53,7 +53,7 @@ enum PP_URLResponseProperty { * HTTP Status Code and Reason Phrase</a> documentation for further * information. */ - PP_URLRESPONSEPROPERTY_STATUSCODE, + PP_URLRESPONSEPROPERTY_STATUSCODE = 3, /** * This corresponds to a string (PP_VARTYPE_STRING); the status line @@ -61,7 +61,7 @@ enum PP_URLResponseProperty { * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1"> * HTTP Response Status Line</a> documentation for further information. */ - PP_URLRESPONSEPROPERTY_STATUSLINE, + PP_URLRESPONSEPROPERTY_STATUSLINE = 4, /** * This corresponds to a string(PP_VARTYPE_STRING), a \n-delimited list of @@ -70,7 +70,7 @@ enum PP_URLResponseProperty { * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14"> * HTTP Header Field Definitions</a> documentation for further information. */ - PP_URLRESPONSEPROPERTY_HEADERS + PP_URLRESPONSEPROPERTY_HEADERS = 5 }; |