| OLD | NEW |
| 1 /* Copyright 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright 2014 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_message_handler.idl modified Fri May 30 15:49:17 2014. */ | 6 /* From ppp_message_handler.idl modified Tue Jun 3 16:50:26 2014. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PPP_MESSAGE_HANDLER_H_ | 8 #ifndef PPAPI_C_PPP_MESSAGE_HANDLER_H_ |
| 9 #define PPAPI_C_PPP_MESSAGE_HANDLER_H_ | 9 #define PPAPI_C_PPP_MESSAGE_HANDLER_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 25 matching lines...) Expand all Loading... |
| 42 * DOM element. | 42 * DOM element. |
| 43 * | 43 * |
| 44 * @param[in] instance A <code>PP_Instance</code> identifying one instance | 44 * @param[in] instance A <code>PP_Instance</code> identifying one instance |
| 45 * of a module. | 45 * of a module. |
| 46 * @param[in] user_data is the same pointer which was provided by a call to | 46 * @param[in] user_data is the same pointer which was provided by a call to |
| 47 * RegisterMessageHandler. | 47 * RegisterMessageHandler. |
| 48 * @param[in] message A copy of the parameter that JavaScript provided to | 48 * @param[in] message A copy of the parameter that JavaScript provided to |
| 49 * postMessage(). | 49 * postMessage(). |
| 50 */ | 50 */ |
| 51 void (*HandleMessage)(PP_Instance instance, | 51 void (*HandleMessage)(PP_Instance instance, |
| 52 const void* user_data, | 52 void* user_data, |
| 53 struct PP_Var message); | 53 struct PP_Var message); |
| 54 /** | 54 /** |
| 55 * Invoked as a result of JavaScript invoking postMessageAndAwaitResponse() | 55 * Invoked as a result of JavaScript invoking postMessageAndAwaitResponse() |
| 56 * on the plugin's DOM element. | 56 * on the plugin's DOM element. |
| 57 * | 57 * |
| 58 * @param[in] instance A <code>PP_Instance</code> identifying one instance | 58 * @param[in] instance A <code>PP_Instance</code> identifying one instance |
| 59 * of a module. | 59 * of a module. |
| 60 * @param[in] user_data is the same pointer which was provided by a call to | 60 * @param[in] user_data is the same pointer which was provided by a call to |
| 61 * RegisterMessageHandler. | 61 * RegisterMessageHandler. |
| 62 * @param[in] message is a copy of the parameter that JavaScript provided | 62 * @param[in] message is a copy of the parameter that JavaScript provided |
| (...skipping 15 matching lines...) Expand all Loading... |
| 78 * RegisterMessageHandler. | 78 * RegisterMessageHandler. |
| 79 */ | 79 */ |
| 80 void (*Destroy)(PP_Instance instance, void* user_data); | 80 void (*Destroy)(PP_Instance instance, void* user_data); |
| 81 }; | 81 }; |
| 82 /** | 82 /** |
| 83 * @} | 83 * @} |
| 84 */ | 84 */ |
| 85 | 85 |
| 86 #endif /* PPAPI_C_PPP_MESSAGE_HANDLER_H_ */ | 86 #endif /* PPAPI_C_PPP_MESSAGE_HANDLER_H_ */ |
| 87 | 87 |
| OLD | NEW |