Chromium Code Reviews| Index: ppapi/c/ppb.h |
| =================================================================== |
| --- ppapi/c/ppb.h (revision 73808) |
| +++ ppapi/c/ppb.h (working copy) |
| @@ -7,8 +7,8 @@ |
| /** |
| * @file |
| - * Defines the API ... |
| - * |
| + * This file defines a type for storing a pointer to an interface supported |
| + * by the browser. |
|
dmichael(do not use this one)
2011/02/08 17:04:38
Not sure about this wording... maybe instead say
jond
2011/02/09 16:42:04
Done.
jond
2011/02/09 16:42:04
Done.
|
| */ |
| /** |
| @@ -17,8 +17,16 @@ |
| */ |
| /** |
| - * Returns an interface pointer for the interface of the given name, or NULL |
| - * if the interface is not supported. Interface names should be ASCII. |
| + * This value contains a pointer to an interface supported by the browser |
|
dmichael(do not use this one)
2011/02/08 21:51:17
This is defining a function type, not a value. It
jond
2011/02/09 16:42:04
I think I got it. You'll have to check. On 2011/02
|
| + * (given the interface name). Browser interface names should be ASCII |
|
dmichael(do not use this one)
2011/02/08 21:51:17
"should be ASCII" is worded for PPAPI developers w
jond
2011/02/09 16:42:04
Done.
jond
2011/02/09 16:42:04
Done.
|
| + * and are generally defined in the header file for the interface, such |
| + * as PP_AUDIO_INTERFACE found in ppb.audio.h or PPB_GRAPHICS_2D_INTERFACE in |
| + * ppb_graphics_2d.h. |
| + * |
| + * A generic PPB_GetInterface pointer is passed to PPP_InitializedModule when |
| + * your module is loaded. You can use this pointer to request a pointer to a |
| + * specific browser interface. |
| + * This value will be NULL if the interface is not supported on the browser. |
| */ |
| typedef const void* (*PPB_GetInterface)(const char* interface_name); |
| /** |