| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SIMPLE_PS_H_ | 5 #ifndef PPAPI_SIMPLE_PS_H_ |
| 6 #define PPAPI_SIMPLE_PS_H_ | 6 #define PPAPI_SIMPLE_PS_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_instance.h" | 8 #include "ppapi/c/pp_instance.h" |
| 9 #include "sdk_util/macros.h" | 9 #include "sdk_util/macros.h" |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 * a base class, and overload the appropriate virtual functions such as | 36 * a base class, and overload the appropriate virtual functions such as |
| 37 * Main, ChangeContext, or Render. | 37 * Main, ChangeContext, or Render. |
| 38 */ | 38 */ |
| 39 | 39 |
| 40 /** | 40 /** |
| 41 * PSGetInstanceId | 41 * PSGetInstanceId |
| 42 * | 42 * |
| 43 * Return the PP_Instance id of this instance of the module. This is required | 43 * Return the PP_Instance id of this instance of the module. This is required |
| 44 * by most of the Pepper resource creation routines. | 44 * by most of the Pepper resource creation routines. |
| 45 */ | 45 */ |
| 46 PP_Instance PSGetInstanceId(); | 46 PP_Instance PSGetInstanceId(void); |
| 47 | 47 |
| 48 | 48 |
| 49 /** | 49 /** |
| 50 * PSGetInterface | 50 * PSGetInterface |
| 51 * | 51 * |
| 52 * Return the Pepper instance referred to by 'name'. Will return a pointer | 52 * Return the Pepper instance referred to by 'name'. Will return a pointer |
| 53 * to the interface, or NULL if not found or not available. | 53 * to the interface, or NULL if not found or not available. |
| 54 */ | 54 */ |
| 55 const void* PSGetInterface(const char *name); | 55 const void* PSGetInterface(const char *name); |
| 56 | 56 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 77 #define PPAPI_SIMPLE_USE_MAIN(factory, func) \ | 77 #define PPAPI_SIMPLE_USE_MAIN(factory, func) \ |
| 78 void* PSUserCreateInstance(PP_Instance inst) { \ | 78 void* PSUserCreateInstance(PP_Instance inst) { \ |
| 79 return factory(inst, func); \ | 79 return factory(inst, func); \ |
| 80 } | 80 } |
| 81 | 81 |
| 82 | 82 |
| 83 EXTERN_C_END | 83 EXTERN_C_END |
| 84 | 84 |
| 85 | 85 |
| 86 #endif // PPAPI_SIMPLE_PS_H_ | 86 #endif // PPAPI_SIMPLE_PS_H_ |
| OLD | NEW |