| OLD | NEW |
| 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 /* From ppb_messaging.idl modified Mon Feb 27 13:31:21 2012. */ | 6 /* From ppb_messaging.idl modified Thu Apr 26 13:16:11 2012. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PPB_MESSAGING_H_ | 8 #ifndef PPAPI_C_PPB_MESSAGING_H_ |
| 9 #define PPAPI_C_PPB_MESSAGING_H_ | 9 #define PPAPI_C_PPB_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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 * | 60 * |
| 61 * <strong>Example:</strong> | 61 * <strong>Example:</strong> |
| 62 * | 62 * |
| 63 * @code | 63 * @code |
| 64 * | 64 * |
| 65 * <body> | 65 * <body> |
| 66 * <object id="plugin" | 66 * <object id="plugin" |
| 67 * type="application/x-ppapi-postMessage-example"/> | 67 * type="application/x-ppapi-postMessage-example"/> |
| 68 * <script type="text/javascript"> | 68 * <script type="text/javascript"> |
| 69 * var plugin = document.getElementById('plugin'); | 69 * var plugin = document.getElementById('plugin'); |
| 70 * plugin.AddEventListener("message", | 70 * plugin.addEventListener("message", |
| 71 * function(message) { alert(message.data); }, | 71 * function(message) { alert(message.data); }, |
| 72 * false); | 72 * false); |
| 73 * </script> | 73 * </script> |
| 74 * </body> | 74 * </body> |
| 75 * | 75 * |
| 76 * @endcode | 76 * @endcode |
| 77 * | 77 * |
| 78 * The module instance then invokes PostMessage() as follows: | 78 * The module instance then invokes PostMessage() as follows: |
| 79 * | 79 * |
| 80 * @code | 80 * @code |
| (...skipping 12 matching lines...) Expand all Loading... |
| 93 void (*PostMessage)(PP_Instance instance, struct PP_Var message); | 93 void (*PostMessage)(PP_Instance instance, struct PP_Var message); |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 typedef struct PPB_Messaging_1_0 PPB_Messaging; | 96 typedef struct PPB_Messaging_1_0 PPB_Messaging; |
| 97 /** | 97 /** |
| 98 * @} | 98 * @} |
| 99 */ | 99 */ |
| 100 | 100 |
| 101 #endif /* PPAPI_C_PPB_MESSAGING_H_ */ | 101 #endif /* PPAPI_C_PPB_MESSAGING_H_ */ |
| 102 | 102 |
| OLD | NEW |