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

Side by Side Diff: ppapi/api/ppp_messaging.idl

Issue 9421037: Added @code/@endcode and removed .html (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 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 /** 6 /**
7 * This file defines the PPP_Messaging interface containing pointers to 7 * This file defines the PPP_Messaging interface containing pointers to
8 * functions that you must implement to handle postMessage messages 8 * functions that you must implement to handle postMessage messages
9 * on the associated DOM element. 9 * on the associated DOM element.
10 * 10 *
(...skipping 21 matching lines...) Expand all
32 * @param[in] message A <code>PP_Var</code> containing the data to be sent 32 * @param[in] message A <code>PP_Var</code> containing the data to be sent
33 * to JavaScript. Message can have an int32_t, double, bool, or string value 33 * to JavaScript. Message can have an int32_t, double, bool, or string value
34 * (objects are not supported). 34 * (objects are not supported).
35 * 35 *
36 * The following JavaScript code invokes <code>HandleMessage</code>, passing 36 * The following JavaScript code invokes <code>HandleMessage</code>, passing
37 * the module instance on which it was invoked, with <code>message</code> 37 * the module instance on which it was invoked, with <code>message</code>
38 * being a string <code>PP_Var</code> containing "Hello world!" 38 * being a string <code>PP_Var</code> containing "Hello world!"
39 * 39 *
40 * <strong>Example:</strong> 40 * <strong>Example:</strong>
41 * 41 *
42 * <code> 42 * @code
43 * 43 *
44 * <body> 44 * <body>
45 * <object id="plugin" 45 * <object id="plugin"
46 * type="application/x-ppapi-postMessage-example"/> 46 * type="application/x-ppapi-postMessage-example"/>
47 * <script type="text/javascript"> 47 * <script type="text/javascript">
48 * document.getElementById('plugin').postMessage("Hello world!"); 48 * document.getElementById('plugin').postMessage("Hello world!");
49 * </script> 49 * </script>
50 * </body> 50 * </body>
51 * 51 *
52 * </code> 52 * @endcode
53 * 53 *
54 */ 54 */
55 void HandleMessage([in] PP_Instance instance, [in] PP_Var message); 55 void HandleMessage([in] PP_Instance instance, [in] PP_Var message);
56 }; 56 };
57 57
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698