summaryrefslogtreecommitdiffstats
path: root/ppapi/api/pp_errors.idl
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/api/pp_errors.idl')
-rw-r--r--ppapi/api/pp_errors.idl57
1 files changed, 57 insertions, 0 deletions
diff --git a/ppapi/api/pp_errors.idl b/ppapi/api/pp_errors.idl
new file mode 100644
index 0000000..59db3455
--- /dev/null
+++ b/ppapi/api/pp_errors.idl
@@ -0,0 +1,57 @@
+/* Copyright (c) 2011 The Chromium Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/* This file defines an enumeration of all PPAPI errors. */
+
+/* This enumeration contains enumerators of all PPAPI errors.
+ * Errors are negative valued.
+ */
+enum PP_Error {
+ PP_OK = 0,
+ /* This value is returned by a function that accepts a PP_CompletionCallback
+ * and cannot complete synchronously. This error indicates that the given
+ * callback will be asynchronously notified of the final result once it is
+ * available.
+ */
+ PP_ERROR_WOULDBLOCK = -1,
+ /* This value indicates failure for unspecified reasons. */
+ PP_ERROR_FAILED = -2,
+ /* This value indicates failure due to an asynchronous operation being
+ * interrupted, typically as a result of user action. */
+ PP_ERROR_ABORTED = -3,
+ /* This value indicates failure due to an invalid argument. */
+ PP_ERROR_BADARGUMENT = -4,
+ /* This value indicates failure due to an invalid PP_Resource. */
+ PP_ERROR_BADRESOURCE = -5,
+ /* This value indicates failure due to an unavailable PPAPI interface. */
+ PP_ERROR_NOINTERFACE = -6,
+ /* This value indicates failure due to insufficient privileges. */
+ PP_ERROR_NOACCESS = -7,
+ /* This value indicates failure due to insufficient memory. */
+ PP_ERROR_NOMEMORY = -8,
+ /* This value indicates failure due to insufficient storage space. */
+ PP_ERROR_NOSPACE = -9,
+ /* This value indicates failure due to insufficient storage quota. */
+ PP_ERROR_NOQUOTA = -10,
+ /* This value indicates failure due to an action already being in progress. */
+ PP_ERROR_INPROGRESS = -11,
+ /* This value indicates failure due to a file that does not exist. */
+ PP_ERROR_FILENOTFOUND = -20,
+ /* This value indicates failure due to a file that already exists. */
+ PP_ERROR_FILEEXISTS = -21,
+ /* This value indicates failure due to a file that is too big. */
+ PP_ERROR_FILETOOBIG = -22,
+ /* This value indicates failure due to a file having been modified
+ * unexpectedly.
+ */
+ PP_ERROR_FILECHANGED = -23,
+ /* This value indicates failure due to a time limit being exceeded. */
+ PP_ERROR_TIMEDOUT = -30,
+ /* This value indicates that the user cancelled rather than providing expected
+ * input.
+ */
+ PP_ERROR_USERCANCEL = -40
+};
+