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

Unified Diff: ppapi/c/ppb_message_loop.h

Issue 15004017: Clean up formatting to simplify post-Doxygen processing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Shortened description of file. Created 7 years, 7 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
« no previous file with comments | « ppapi/c/pp_completion_callback.h ('k') | ppapi/cpp/message_loop.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/ppb_message_loop.h
diff --git a/ppapi/c/ppb_message_loop.h b/ppapi/c/ppb_message_loop.h
index d582abc52ca02fa1ffadca50564a9164dbd9adef..0ddce165c15cc8afff9836bf7a72858de652e4ae 100644
--- a/ppapi/c/ppb_message_loop.h
+++ b/ppapi/c/ppb_message_loop.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From ppb_message_loop.idl modified Mon Apr 1 12:14:25 2013. */
+/* From ppb_message_loop.idl modified Thu May 9 14:59:57 2013. */
#ifndef PPAPI_C_PPB_MESSAGE_LOOP_H_
#define PPAPI_C_PPB_MESSAGE_LOOP_H_
@@ -55,15 +55,15 @@
* - Call Run() with the message loop resource.
*
* Your callbacks should look like this:
- * @code
- * void DoMyWork(void* user_data, int32_t status) {
- * if (status != PP_OK) {
- * Cleanup(); // e.g. free user_data.
- * return;
- * }
- * ... do your work...
- * }
- * @endcode
+ * @code
+ * void DoMyWork(void* user_data, int32_t status) {
+ * if (status != PP_OK) {
+ * Cleanup(); // e.g. free user_data.
+ * return;
+ * }
+ * ... do your work...
+ * }
+ * @endcode
* For a C++ example, see ppapi/utility/threading/simple_thread.h
*
* (You can also create the message loop resource on the background thread,
@@ -134,12 +134,12 @@
* Therefore, you should check for errors from PostWork and destroy any
* associated memory to avoid leaks. If you're using the C++
* CompletionCallbackFactory, use the following pattern:
- *
- * pp::CompletionCallback callback = factory_.NewOptionalCallback(...);
- * int32_t result = message_loop.PostWork(callback);
- * if (result != PP_OK)
- * callback.Run(result);
- *
+ * @code
+ * pp::CompletionCallback callback = factory_.NewOptionalCallback(...);
+ * int32_t result = message_loop.PostWork(callback);
+ * if (result != PP_OK)
+ * callback.Run(result);
+ * @endcode
* This will run the callback with an error value, and assumes that the
* implementation of your callback checks the "result" argument and returns
* immediately on error.
« no previous file with comments | « ppapi/c/pp_completion_callback.h ('k') | ppapi/cpp/message_loop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698