Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1268)

Unified Diff: chrome/renderer/webplugin_delegate_pepper.h

Issue 453015: Update the Pepper APIs to the latest spec for the 2D demo plugin.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/reference_builds/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/webplugin_delegate_pepper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/webplugin_delegate_pepper.h
===================================================================
--- chrome/renderer/webplugin_delegate_pepper.h (revision 33478)
+++ chrome/renderer/webplugin_delegate_pepper.h (working copy)
@@ -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 @@
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 @@
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);
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/webplugin_delegate_pepper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698