Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(955)

Side by Side Diff: ppapi/c/ppb_messaging.h

Issue 7399016: More trivial cleanupi of ppapi/c headers (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/c/ppb_instance.h ('k') | ppapi/c/ppb_url_loader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
6 /* From ppb_messaging.idl modified Wed Jul 13 16:51:56 2011. */
7
5 #ifndef PPAPI_C_PPB_MESSAGING_H_ 8 #ifndef PPAPI_C_PPB_MESSAGING_H_
6 #define PPAPI_C_PPB_MESSAGING_H_ 9 #define PPAPI_C_PPB_MESSAGING_H_
7 10
11 #include "ppapi/c/pp_bool.h"
8 #include "ppapi/c/pp_instance.h" 12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_macros.h"
14 #include "ppapi/c/pp_stdint.h"
9 #include "ppapi/c/pp_var.h" 15 #include "ppapi/c/pp_var.h"
10 16
11 #define PPB_MESSAGING_INTERFACE_0_1 "PPB_Messaging;0.1"
12 #define PPB_MESSAGING_INTERFACE_1_0 "PPB_Messaging;1.0"
13 #define PPB_MESSAGING_INTERFACE PPB_MESSAGING_INTERFACE_1_0
14
15 /** 17 /**
16 * @file 18 * @file
17 * This file defines the <code>PPB_Messaging</code> interface implemented 19 * This file defines the <code>PPB_Messaging</code> interface implemented
18 * by the browser for sending messages to DOM elements associated with a 20 * by the browser for sending messages to DOM elements associated with a
19 * specific module instance. 21 * specific module instance.
20 */ 22 */
21 23
24
22 /** 25 /**
23 * @addtogroup Interfaces 26 * @addtogroup Interfaces
24 * @{ 27 * @{
25 */ 28 */
26
27 /** 29 /**
28 * The <code>PPB_Messaging</code> interface is implemented by the browser 30 * The <code>PPB_Messaging</code> interface is implemented by the browser
29 * and is related to sending messages to JavaScript message event listeners on 31 * and is related to sending messages to JavaScript message event listeners on
30 * the DOM element associated with specific module instance. 32 * the DOM element associated with specific module instance.
31 */ 33 */
34 #define PPB_MESSAGING_INTERFACE_0_1 "PPB_Messaging;0.1"
35 #define PPB_MESSAGING_INTERFACE_1_0 "PPB_Messaging;1.0"
36 #define PPB_MESSAGING_INTERFACE PPB_MESSAGING_INTERFACE_1_0
37
32 struct PPB_Messaging { 38 struct PPB_Messaging {
33 /** 39 /**
34 * PostMessage() asynchronously invokes any listeners for message events on 40 * PostMessage() asynchronously invokes any listeners for message events on
35 * the DOM element for the given module instance. A call to PostMessage() 41 * the DOM element for the given module instance. A call to PostMessage()
36 * will not block while the message is processed. 42 * will not block while the message is processed.
37 * 43 *
38 * @param[in] instance A <code>PP_Instance</code> indentifying one instance 44 * @param[in] instance A <code>PP_Instance</code> indentifying one instance
39 * of a module. 45 * of a module.
40 * @param[in] message A <code>PP_Var</code> containing the data to be sent to 46 * @param[in] message A <code>PP_Var</code> containing the data to be sent to
41 * JavaScript. 47 * JavaScript.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 * 92 *
87 * The browser will pop-up an alert saying "Hello world!" 93 * The browser will pop-up an alert saying "Hello world!"
88 */ 94 */
89 void (*PostMessage)(PP_Instance instance, struct PP_Var message); 95 void (*PostMessage)(PP_Instance instance, struct PP_Var message);
90 }; 96 };
91 /** 97 /**
92 * @} 98 * @}
93 */ 99 */
94 100
95 #endif /* PPAPI_C_PPB_MESSAGING_H_ */ 101 #endif /* PPAPI_C_PPB_MESSAGING_H_ */
102
OLDNEW
« no previous file with comments | « ppapi/c/ppb_instance.h ('k') | ppapi/c/ppb_url_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698