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

Side by Side Diff: ppapi/c/ppp_messaging.h

Issue 7715005: Changed all @code to <code> and @endcode to </code> as per dmichael (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 /* From ppp_messaging.idl modified Wed Jul 13 16:51:47 2011. */ 6 /* From ppp_messaging.idl modified Tue Aug 23 14:02:02 2011. */
7 7
8 #ifndef PPAPI_C_PPP_MESSAGING_H_ 8 #ifndef PPAPI_C_PPP_MESSAGING_H_
9 #define PPAPI_C_PPP_MESSAGING_H_ 9 #define PPAPI_C_PPP_MESSAGING_H_
10 10
11 #include "ppapi/c/pp_bool.h" 11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_instance.h" 12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_macros.h" 13 #include "ppapi/c/pp_macros.h"
14 #include "ppapi/c/pp_stdint.h" 14 #include "ppapi/c/pp_stdint.h"
15 #include "ppapi/c/pp_var.h" 15 #include "ppapi/c/pp_var.h"
16 16
(...skipping 20 matching lines...) Expand all
37 * DOM element. 37 * DOM element.
38 */ 38 */
39 struct PPP_Messaging { 39 struct PPP_Messaging {
40 /** 40 /**
41 * HandleMessage() is a function that the browser calls when PostMessage() 41 * HandleMessage() is a function that the browser calls when PostMessage()
42 * is invoked on the DOM element for the module instance in JavaScript. Note 42 * is invoked on the DOM element for the module instance in JavaScript. Note
43 * that PostMessage() in the JavaScript interface is asynchronous, meaning 43 * that PostMessage() in the JavaScript interface is asynchronous, meaning
44 * JavaScript execution will not be blocked while HandleMessage() is 44 * JavaScript execution will not be blocked while HandleMessage() is
45 * processing the message. 45 * processing the message.
46 * 46 *
47 * @param[in] instance A <code>PP_Instance</code> indentifying one instance 47 * @param[in] instance A <code>PP_Instance</code> identifying one instance
48 * of a module. 48 * of a module.
49 * @param[in] message A <code>PP_Var</code> containing the data to be sent 49 * @param[in] message A <code>PP_Var</code> containing the data to be sent
50 * to JavaScript. Message can have an int32_t, double, bool, or string value 50 * to JavaScript. Message can have an int32_t, double, bool, or string value
51 * (objects are not supported). 51 * (objects are not supported).
52 * 52 *
53 * <strong>Example:</strong>
54 *
55 * The following JavaScript code invokes <code>HandleMessage</code>, passing 53 * The following JavaScript code invokes <code>HandleMessage</code>, passing
56 * the module instance on which it was invoked, with <code>message</code> 54 * the module instance on which it was invoked, with <code>message</code>
57 * being a string <code>PP_Var</code> containing "Hello world!" 55 * being a string <code>PP_Var</code> containing "Hello world!"
58 * 56 *
59 * @code 57 * <strong>Example:</strong>
58 *
59 * <code>
60 * 60 *
61 * <body> 61 * <body>
62 * <object id="plugin" 62 * <object id="plugin"
63 * type="application/x-ppapi-postMessage-example"/> 63 * type="application/x-ppapi-postMessage-example"/>
64 * <script type="text/javascript"> 64 * <script type="text/javascript">
65 * document.getElementById('plugin').postMessage("Hello world!"); 65 * document.getElementById('plugin').postMessage("Hello world!");
66 * </script> 66 * </script>
67 * </body> 67 * </body>
68 * 68 *
69 * @endcode 69 * </code>
70 * 70 *
71 */ 71 */
72 void (*HandleMessage)(PP_Instance instance, struct PP_Var message); 72 void (*HandleMessage)(PP_Instance instance, struct PP_Var message);
73 }; 73 };
74 /** 74 /**
75 * @} 75 * @}
76 */ 76 */
77 77
78 #endif /* PPAPI_C_PPP_MESSAGING_H_ */ 78 #endif /* PPAPI_C_PPP_MESSAGING_H_ */
79 79
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698