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 "utils/macros.h" | 9 #include "sdk_util/macros.h" |
10 | 10 |
11 EXTERN_C_BEGIN | 11 EXTERN_C_BEGIN |
12 | 12 |
13 /** | 13 /** |
14 * The ppapi_simple library simplifies the use of the Pepper interfaces by | 14 * The ppapi_simple library simplifies the use of the Pepper interfaces by |
15 * providing a more traditional 'C' or 'C++' style framework. The library | 15 * providing a more traditional 'C' or 'C++' style framework. The library |
16 * creates an PSInstance derived object based on the ppapi_cpp library and | 16 * creates an PSInstance derived object based on the ppapi_cpp library and |
17 * initializes the nacl_io library to provide a POSIX friendly I/O environment. | 17 * initializes the nacl_io library to provide a POSIX friendly I/O environment. |
18 * | 18 * |
19 * In order to provide a standard blocking environment, the library will hide | 19 * In order to provide a standard blocking environment, the library will hide |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 void* PSUserCreateInstance(PP_Instance inst) { \ | 104 void* PSUserCreateInstance(PP_Instance inst) { \ |
105 PPAPI_SIMPLE_DECLARE_PARAMS(params, ##__VA_ARGS__, NULL, NULL) \ | 105 PPAPI_SIMPLE_DECLARE_PARAMS(params, ##__VA_ARGS__, NULL, NULL) \ |
106 return (void *) new classname(inst, params); \ | 106 return (void *) new classname(inst, params); \ |
107 } | 107 } |
108 | 108 |
109 EXTERN_C_END | 109 EXTERN_C_END |
110 | 110 |
111 | 111 |
112 #endif // PPAPI_SIMPLE_PPAPI_SIMPLE_H | 112 #endif // PPAPI_SIMPLE_PPAPI_SIMPLE_H |
113 | 113 |
OLD | NEW |