OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 WEBKIT_GLUE_PEPPER_PEPPER_H_ | 5 #ifndef WEBKIT_GLUE_PEPPER_PEPPER_H_ |
6 #define WEBKIT_GLUE_PEPPER_PEPPER_H_ | 6 #define WEBKIT_GLUE_PEPPER_PEPPER_H_ |
7 | 7 |
8 #ifdef PEPPER_APIS_ENABLED | 8 #ifdef PEPPER_APIS_ENABLED |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 void* userData); | 142 void* userData); |
143 typedef NPError (*NPInitializeRenderContextPtr)(NPP instance, | 143 typedef NPError (*NPInitializeRenderContextPtr)(NPP instance, |
144 NPRenderType type, | 144 NPRenderType type, |
145 NPRenderContext* context); | 145 NPRenderContext* context); |
146 typedef NPError (*NPFlushRenderContextPtr)(NPP instance, | 146 typedef NPError (*NPFlushRenderContextPtr)(NPP instance, |
147 NPRenderContext* context, | 147 NPRenderContext* context, |
148 NPFlushRenderContextCallbackPtr callb
ack, | 148 NPFlushRenderContextCallbackPtr callb
ack, |
149 void* userData); | 149 void* userData); |
150 typedef NPError (*NPDestroyRenderContextPtr)(NPP instance, | 150 typedef NPError (*NPDestroyRenderContextPtr)(NPP instance, |
151 NPRenderContext* context); | 151 NPRenderContext* context); |
| 152 typedef NPError (*NPOpenFilePtr)(NPP instance, const char* fileName, void** hand
le); |
152 | 153 |
153 typedef struct _NPPepperExtensions | 154 typedef struct _NPPepperExtensions |
154 { | 155 { |
155 /* Renderer extensions */ | 156 /* Renderer extensions */ |
156 NPInitializeRenderContextPtr initializeRender; | 157 NPInitializeRenderContextPtr initializeRender; |
157 NPFlushRenderContextPtr flushRender; | 158 NPFlushRenderContextPtr flushRender; |
158 NPDestroyRenderContextPtr destroyRender; | 159 NPDestroyRenderContextPtr destroyRender; |
159 /* Shared memory extensions */ | 160 /* Shared memory extensions */ |
| 161 |
| 162 /* I/O extensions */ |
| 163 NPOpenFilePtr openFile; |
160 } NPPepperExtensions; | 164 } NPPepperExtensions; |
161 | 165 |
162 #endif /* PEPPER_APIS_ENABLED */ | 166 #endif /* PEPPER_APIS_ENABLED */ |
163 | 167 |
164 #endif /* WEBKIT_GLUE_PEPPER_PEPPER_H_ */ | 168 #endif /* WEBKIT_GLUE_PEPPER_PEPPER_H_ */ |
OLD | NEW |