diff options
Diffstat (limited to 'chrome/renderer/webplugin_delegate_pepper.h')
-rw-r--r-- | chrome/renderer/webplugin_delegate_pepper.h | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/chrome/renderer/webplugin_delegate_pepper.h b/chrome/renderer/webplugin_delegate_pepper.h index 7e2f09b..5a7ebf5 100644 --- a/chrome/renderer/webplugin_delegate_pepper.h +++ b/chrome/renderer/webplugin_delegate_pepper.h @@ -21,7 +21,7 @@ #include "chrome/common/transport_dib.h" #include "skia/ext/platform_canvas.h" #include "third_party/npapi/bindings/npapi.h" -#include "webkit/glue/pepper/pepper.h" +#include "third_party/npapi/bindings/npapi_extensions.h" #include "webkit/glue/webcursor.h" #include "webkit/glue/webplugin_delegate.h" @@ -80,6 +80,22 @@ class WebPluginDelegatePepper : public webkit_glue::WebPluginDelegate { bool notify_needed, intptr_t notify_data, intptr_t stream); + virtual NPError Device2DQueryCapability(int32 capability, int32* value); + virtual NPError Device2DQueryConfig(const NPDeviceContext2DConfig* request, + NPDeviceContext2DConfig* obtain); + virtual NPError Device2DInitializeContext( + const NPDeviceContext2DConfig* config, + NPDeviceContext2D* context); + virtual NPError Device2DSetStateContext(NPDeviceContext2D* context, + int32 state, + int32 value); + virtual NPError Device2DGetStateContext(NPDeviceContext2D* context, + int32 state, + int32* value); + virtual NPError Device2DFlushContext(NPDeviceContext2D* context, + NPDeviceFlushContextCallbackPtr callback, + void* user_data); + virtual NPError Device2DDestroyContext(NPDeviceContext2D* context); // End of WebPluginDelegate implementation. bool IsWindowless() const { return true; } @@ -94,15 +110,6 @@ class WebPluginDelegatePepper : public webkit_glue::WebPluginDelegate { NPAPI::PluginInstance *instance); ~WebPluginDelegatePepper(); - //---------------------------- - // used for windowless plugins - virtual NPError InitializeRenderContext(NPRenderType type, - NPRenderContext* context); - virtual NPError DestroyRenderContext(NPRenderContext* context); - virtual NPError FlushRenderContext(NPRenderContext* context); - - virtual NPError OpenFileInSandbox(const char* file_name, void** handle); - // Tells the plugin about the current state of the window. // See NPAPI NPP_SetWindow for more information. void WindowlessSetWindow(bool force_set_window); |