| 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_PPB_MESSAGING_H_ | 5 #ifndef PPAPI_C_PPB_MESSAGING_H_ |
| 6 #define PPAPI_C_PPB_MESSAGING_H_ | 6 #define PPAPI_C_PPB_MESSAGING_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_instance.h" | 8 #include "ppapi/c/pp_instance.h" |
| 9 #include "ppapi/c/pp_var.h" | 9 #include "ppapi/c/pp_var.h" |
| 10 | 10 |
| 11 #define PPB_MESSAGING_INTERFACE_0_1 "PPB_Messaging;0.1" | 11 #define PPB_MESSAGING_INTERFACE_0_1 "PPB_Messaging;0.1" |
| 12 #define PPB_MESSAGING_INTERFACE PPB_MESSAGING_INTERFACE_0_1 | 12 #define PPB_MESSAGING_INTERFACE_1_0 "PPB_Messaging;1.0" |
| 13 #define PPB_MESSAGING_INTERFACE PPB_MESSAGING_INTERFACE_1_0 |
| 13 | 14 |
| 14 /** | 15 /** |
| 15 * @file | 16 * @file |
| 16 * This file defines the <code>PPB_Messaging</code> interface implemented | 17 * This file defines the <code>PPB_Messaging</code> interface implemented |
| 17 * by the browser for sending messages to DOM elements associated with a | 18 * by the browser for sending messages to DOM elements associated with a |
| 18 * specific module instance. | 19 * specific module instance. |
| 19 * | 20 * |
| 20 * @addtogroup Interfaces | 21 * @addtogroup Interfaces |
| 21 * @{ | 22 * @{ |
| 22 */ | 23 */ |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 * | 84 * |
| 84 * The browser will pop-up an alert saying "Hello world!" | 85 * The browser will pop-up an alert saying "Hello world!" |
| 85 */ | 86 */ |
| 86 void (*PostMessage)(PP_Instance instance, struct PP_Var message); | 87 void (*PostMessage)(PP_Instance instance, struct PP_Var message); |
| 87 }; | 88 }; |
| 88 /** | 89 /** |
| 89 * @} | 90 * @} |
| 90 */ | 91 */ |
| 91 | 92 |
| 92 #endif /* PPAPI_C_PPB_MESSAGING_H_ */ | 93 #endif /* PPAPI_C_PPB_MESSAGING_H_ */ |
| OLD | NEW |