Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 10:45:08 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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> | 53 * <strong>Example:</strong> |
| 54 * | 54 * |
| 55 * The following JavaScript code invokes <code>HandleMessage</code>, passing | 55 * The following JavaScript code invokes <code>HandleMessage</code>, passing |
| 56 * the module instance on which it was invoked, with <code>message</code> | 56 * the module instance on which it was invoked, with <code>message</code> |
| 57 * being a string <code>PP_Var</code> containing "Hello world!" | 57 * being a string <code>PP_Var</code> containing "Hello world!" |
| 58 * | 58 * |
| 59 * @code | 59 * <strong>Example:</strong> |
|
dmichael (off chromium)
2011/08/23 16:53:52
Now there are two 'Example:' lines. Please remove
jond
2011/08/23 20:02:36
Oops. Good catch.
On 2011/08/23 16:53:52, dmichae
| |
| 60 * | |
| 61 * <code> | |
| 60 * | 62 * |
| 61 * <body> | 63 * <body> |
| 62 * <object id="plugin" | 64 * <object id="plugin" |
| 63 * type="application/x-ppapi-postMessage-example"/> | 65 * type="application/x-ppapi-postMessage-example"/> |
| 64 * <script type="text/javascript"> | 66 * <script type="text/javascript"> |
| 65 * document.getElementById('plugin').postMessage("Hello world!"); | 67 * document.getElementById('plugin').postMessage("Hello world!"); |
| 66 * </script> | 68 * </script> |
| 67 * </body> | 69 * </body> |
| 68 * | 70 * |
| 69 * @endcode | 71 * </code> |
| 70 * | 72 * |
| 71 */ | 73 */ |
| 72 void (*HandleMessage)(PP_Instance instance, struct PP_Var message); | 74 void (*HandleMessage)(PP_Instance instance, struct PP_Var message); |
| 73 }; | 75 }; |
| 74 /** | 76 /** |
| 75 * @} | 77 * @} |
| 76 */ | 78 */ |
| 77 | 79 |
| 78 #endif /* PPAPI_C_PPP_MESSAGING_H_ */ | 80 #endif /* PPAPI_C_PPP_MESSAGING_H_ */ |
| 79 | 81 |
| OLD | NEW |