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