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

Unified Diff: webkit/glue/webplugin_delegate.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 | « webkit/glue/plugins/plugin_host.cc ('k') | webkit/tools/pepper_test_plugin/plugin_object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webplugin_delegate.h
===================================================================
--- webkit/glue/webplugin_delegate.h (revision 33478)
+++ webkit/glue/webplugin_delegate.h (working copy)
@@ -12,7 +12,7 @@
#include "base/string16.h"
#include "build/build_config.h"
#include "third_party/npapi/bindings/npapi.h"
-#include "webkit/glue/pepper/pepper.h"
+#include "third_party/npapi/bindings/npapi_extensions.h"
#include "third_party/WebKit/WebKit/chromium/public/WebCanvas.h"
class FilePath;
@@ -127,24 +127,40 @@
intptr_t notify_data,
intptr_t stream) = 0;
- // The following two methods are for use in implementing Pepper renderers.
+ // The following methods are for use in implementing Pepper renderers.
// They should not be called outside of that context.
- virtual NPError InitializeRenderContext(NPRenderType type,
- NPRenderContext* context) {
+
+ // Pepper 2D device API.
+ virtual NPError Device2DQueryCapability(int32 capability, int32* value) {
return NPERR_GENERIC_ERROR;
}
-
- virtual NPError DestroyRenderContext(NPRenderContext* context) {
+ virtual NPError Device2DQueryConfig(const NPDeviceContext2DConfig* request,
+ NPDeviceContext2DConfig* obtain) {
return NPERR_GENERIC_ERROR;
}
-
- virtual NPError FlushRenderContext(NPRenderContext* context) {
+ virtual NPError Device2DInitializeContext(
+ const NPDeviceContext2DConfig* config,
+ NPDeviceContext2D* context) {
return NPERR_GENERIC_ERROR;
}
-
- virtual NPError OpenFileInSandbox(const char* file_name, void** handle) {
+ virtual NPError Device2DSetStateContext(NPDeviceContext2D* context,
+ int32 state,
+ int32 value) {
return NPERR_GENERIC_ERROR;
}
+ virtual NPError Device2DGetStateContext(NPDeviceContext2D* context,
+ int32 state,
+ int32* value) {
+ return NPERR_GENERIC_ERROR;
+ }
+ virtual NPError Device2DFlushContext(NPDeviceContext2D* context,
+ NPDeviceFlushContextCallbackPtr callback,
+ void* user_data) {
+ return NPERR_GENERIC_ERROR;
+ }
+ virtual NPError Device2DDestroyContext(NPDeviceContext2D* context) {
+ return NPERR_GENERIC_ERROR;
+ }
};
} // namespace webkit_glue
« no previous file with comments | « webkit/glue/plugins/plugin_host.cc ('k') | webkit/tools/pepper_test_plugin/plugin_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698