Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Unified Diff: ppapi/c/pp_errors.h

Issue 8965082: Add API definition and error values for running message loops. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/c/pp_errors.h
diff --git a/ppapi/c/pp_errors.h b/ppapi/c/pp_errors.h
index 724ff9bb3094e38d7668c0d62f17f69a95980f39..76d75df92cca079b3433f7367a8fd7e263ea504b 100644
--- a/ppapi/c/pp_errors.h
+++ b/ppapi/c/pp_errors.h
@@ -1,9 +1,9 @@
-/* Copyright (c) 2011 The Chromium Authors. All rights reserved.
+/* Copyright (c) 2012 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.
*/
-/* From pp_errors.idl modified Wed Sep 14 08:34:03 2011. */
+/* From pp_errors.idl modified Thu Jan 5 10:52:49 2012. */
#ifndef PPAPI_C_PP_ERRORS_H_
#define PPAPI_C_PP_ERRORS_H_
@@ -114,7 +114,18 @@ enum {
* This value indicates that the graphics context was lost due to a
* power management event.
*/
- PP_ERROR_CONTEXT_LOST = -50
+ PP_ERROR_CONTEXT_LOST = -50,
+ /**
+ * Indicates an attempt to make a PPAPI call on a thread without previously
+ * registering a message loop via PPB_MessageLoop.AttachToCurrentThread.
+ * Without this registration step, no PPAPI calls are supported.
+ */
+ PP_ERROR_NO_MESSAGE_LOOP = -51,
+ /**
+ * Indicates that the requested operation is not permitted on the current
+ * thread.
+ */
+ PP_ERROR_WRONG_THREAD = -52
};
/**
* @}

Powered by Google App Engine
This is Rietveld 408576698