| 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 #ifndef PPAPI_C_PPP_MESSAGING_H_ | 5 #ifndef PPAPI_C_PPP_MESSAGING_H_ |
| 6 #define PPAPI_C_PPP_MESSAGING_H_ | 6 #define PPAPI_C_PPP_MESSAGING_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_instance.h" | 8 #include "ppapi/c/pp_instance.h" |
| 9 | 9 |
| 10 struct PP_Var; | 10 struct PP_Var; |
| 11 | 11 |
| 12 #define PPP_MESSAGING_INTERFACE_0_1 "PPP_Messaging;0.1" | 12 #define PPP_MESSAGING_INTERFACE "PPP_Messaging;0.1" |
| 13 #define PPP_MESSAGING_INTERFACE_1_0 "PPP_Messaging;1.0" | |
| 14 #define PPP_MESSAGING_INTERFACE PPP_MESSAGING_INTERFACE_1_0 | |
| 15 | 13 |
| 16 /** | 14 /** |
| 17 * @file | 15 * @file |
| 18 * This file defines the PPP_Messaging interface containing pointers to | 16 * This file defines the PPP_Messaging interface containing pointers to |
| 19 * functions that you must implement to handle postMessage messages | 17 * functions that you must implement to handle postMessage messages |
| 20 * on the associated DOM element. | 18 * on the associated DOM element. |
| 21 * | 19 * |
| 22 */ | 20 */ |
| 23 | 21 |
| 24 /** @addtogroup Interfaces | 22 /** @addtogroup Interfaces |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 * @endcode | 61 * @endcode |
| 64 * | 62 * |
| 65 */ | 63 */ |
| 66 void (*HandleMessage)(PP_Instance instance, struct PP_Var message); | 64 void (*HandleMessage)(PP_Instance instance, struct PP_Var message); |
| 67 }; | 65 }; |
| 68 /** | 66 /** |
| 69 * @} | 67 * @} |
| 70 */ | 68 */ |
| 71 #endif /* PPAPI_C_PPP_MESSAGING_H_ */ | 69 #endif /* PPAPI_C_PPP_MESSAGING_H_ */ |
| 72 | 70 |
| OLD | NEW |