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

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

Issue 6286018: Updated descriptions to several functions, structs, enums (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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
« ppapi/c/pp_var.h ('K') | « ppapi/c/pp_var.h ('k') | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2010 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_H_ 5 #ifndef PPAPI_C_PPP_H_
6 #define PPAPI_C_PPP_H_ 6 #define PPAPI_C_PPP_H_
7 7
8 #include "ppapi/c/pp_module.h" 8 #include "ppapi/c/pp_module.h"
9 #include "ppapi/c/pp_stdint.h" 9 #include "ppapi/c/pp_stdint.h"
10 #include "ppapi/c/ppb.h" 10 #include "ppapi/c/ppb.h"
(...skipping 17 matching lines...) Expand all
28 #ifdef __cplusplus 28 #ifdef __cplusplus
29 extern "C" { 29 extern "C" {
30 #endif 30 #endif
31 31
32 /** 32 /**
33 * @addtogroup Functions 33 * @addtogroup Functions
34 * @{ 34 * @{
35 */ 35 */
36 36
37 /** 37 /**
38 * Entrypoint for the module. 38 * PPP_InitializeModule() is the entry point for a Native Client module and is
39 * called by the browser when your module loads. Your code will implement this
dmichael(do not use this one) 2011/02/01 22:17:22 maybe change 'will' to 'must'?
jond 2011/02/02 16:54:51 Fixed. On 2011/02/01 22:17:22, dmichael wrote:
40 * function.
39 * 41 *
40 * Returns PP_OK on success, any other value on failure. Failure indicates to 42 * Failure indicates to the browser that this plugin can not be used. In this
41 * the browser that this plugin can not be used. In this case, the plugin will 43 * case, the plugin will be unloaded and ShutdownModule will NOT be called.
42 * be unloaded and ShutdownModule will NOT be called. 44 *
45 * @param[in] module A handle to one Native Client module
46 * @param[in] get_browser_interface An interface pointer
47 * @return PP_OK on success. Any other value on failure
dmichael(do not use this one) 2011/02/01 22:17:22 Two spaces after the period. I would also maybe p
jond 2011/02/02 16:54:51 Fixed. On 2011/02/01 22:17:22, dmichael wrote:
43 * 48 *
44 */ 49 */
45 PP_EXPORT int32_t PPP_InitializeModule(PP_Module module, 50 PP_EXPORT int32_t PPP_InitializeModule(PP_Module module,
46 PPB_GetInterface get_browser_interface); 51 PPB_GetInterface get_browser_interface);
47 /** 52 /**
48 * @} 53 * @}
49 */ 54 */
50 55
51 /** 56 /**
52 * @addtogroup Functions 57 * @addtogroup Functions
53 * @{ 58 * @{
54 */ 59 */
55 60
56 /** Called before the plugin module is unloaded. */ 61 /** PPP_ShutdownModule() is called before the Native Client module is unloaded.
62 * Your code will implement this function.
dmichael(do not use this one) 2011/02/01 22:17:22 will->must?
jond 2011/02/02 16:54:51 Fixed. On 2011/02/01 22:17:22, dmichael wrote:
63 */
57 PP_EXPORT void PPP_ShutdownModule(); 64 PP_EXPORT void PPP_ShutdownModule();
58 /** 65 /**
59 * @} 66 * @}
60 */ 67 */
61 68
62 /** 69 /**
63 * @addtogroup Functions 70 * @addtogroup Functions
64 * @{ 71 * @{
65 */ 72 */
66 73
67 /** 74 /**
68 * Returns an interface pointer for the interface of the given name, or NULL 75 * PPP_GetInterface() is called by the browser to determine the PPP_Instance
69 * if the interface is not supported. Interface names should be ASCII. 76 * functions that the Native Client module implements. PPP_Instance is
77 * an interface (struct) that contains pointers to several functions your
78 * module must implement in some form (all functions can be empty, but
79 * must be implemented). If you care about things such as keyboard events
80 * or our module gaining or loosing focus on a page, these functions will
Sang Ahn 2011/02/01 19:19:00 s/loosing/losing
dmichael(do not use this one) 2011/02/01 22:17:22 our->your, will->must
jond 2011/02/02 16:54:51 Fixed. On 2011/02/01 22:17:22, dmichael wrote:
81 * have code to handle those events. Refer to PPP_Instance interface for
82 * more information on these functions.
dmichael(do not use this one) 2011/02/01 22:17:22 Is it really accurate to focus on PPP_Instance so
83 *
84 * @param[in] interface_name A pointer to an interface name. Interface names
85 * should be ASCII
86 * @return An interface pointer for the interface or NULL if the interface is
87 * not supported
70 */ 88 */
71 PP_EXPORT const void* PPP_GetInterface(const char* interface_name); 89 PP_EXPORT const void* PPP_GetInterface(const char* interface_name);
72 /** 90 /**
73 * @} 91 * @}
74 */ 92 */
75 93
76 #ifdef __cplusplus 94 #ifdef __cplusplus
77 } /* extern "C" */ 95 } /* extern "C" */
78 #endif 96 #endif
79 97
80 #endif /* PPAPI_C_PPP_H_ */ 98 #endif /* PPAPI_C_PPP_H_ */
81 99
OLDNEW
« ppapi/c/pp_var.h ('K') | « ppapi/c/pp_var.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698