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