summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/webplugin_delegate_pepper.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-07 21:11:52 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-07 21:11:52 +0000
commitf5cf88a21918e04a52c9aa7fc8e13ff24b7bf196 (patch)
tree3ec448569179f66949795be7dafc0cd2ec62f8d4 /chrome/renderer/webplugin_delegate_pepper.h
parent886a17e3ef3bce4bed8318d9734e6a7ce09feee5 (diff)
downloadchromium_src-f5cf88a21918e04a52c9aa7fc8e13ff24b7bf196.zip
chromium_src-f5cf88a21918e04a52c9aa7fc8e13ff24b7bf196.tar.gz
chromium_src-f5cf88a21918e04a52c9aa7fc8e13ff24b7bf196.tar.bz2
Refactor the pepper API implementation to make it more scalable as we add more
device types. Implement a stub of the 3D device API. Fix style in some of the plugin related code. TEST=run the pepper_test_plugin BUG=none Review URL: http://codereview.chromium.org/468012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33989 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/webplugin_delegate_pepper.h')
-rw-r--r--chrome/renderer/webplugin_delegate_pepper.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/chrome/renderer/webplugin_delegate_pepper.h b/chrome/renderer/webplugin_delegate_pepper.h
index afb6630..aa798d7 100644
--- a/chrome/renderer/webplugin_delegate_pepper.h
+++ b/chrome/renderer/webplugin_delegate_pepper.h
@@ -80,6 +80,8 @@ class WebPluginDelegatePepper : public webkit_glue::WebPluginDelegate {
bool notify_needed,
intptr_t notify_data,
intptr_t stream);
+
+ // WebPlugin2DDeviceDelegate implementation.
virtual NPError Device2DQueryCapability(int32 capability, int32* value);
virtual NPError Device2DQueryConfig(const NPDeviceContext2DConfig* request,
NPDeviceContext2DConfig* obtain);
@@ -92,10 +94,30 @@ class WebPluginDelegatePepper : public webkit_glue::WebPluginDelegate {
virtual NPError Device2DGetStateContext(NPDeviceContext2D* context,
int32 state,
int32* value);
- virtual NPError Device2DFlushContext(NPDeviceContext2D* context,
+ virtual NPError Device2DFlushContext(NPP id,
+ NPDeviceContext2D* context,
NPDeviceFlushContextCallbackPtr callback,
void* user_data);
virtual NPError Device2DDestroyContext(NPDeviceContext2D* context);
+
+ // WebPlugin3DDeviceDelegate implementation.
+ virtual NPError Device3DQueryCapability(int32 capability, int32* value);
+ virtual NPError Device3DQueryConfig(const NPDeviceContext3DConfig* request,
+ NPDeviceContext3DConfig* obtain);
+ virtual NPError Device3DInitializeContext(
+ const NPDeviceContext3DConfig* config,
+ NPDeviceContext3D* context);
+ virtual NPError Device3DSetStateContext(NPDeviceContext3D* context,
+ int32 state,
+ int32 value);
+ virtual NPError Device3DGetStateContext(NPDeviceContext3D* context,
+ int32 state,
+ int32* value);
+ virtual NPError Device3DFlushContext(NPP id,
+ NPDeviceContext3D* context,
+ NPDeviceFlushContextCallbackPtr callback,
+ void* user_data);
+ virtual NPError Device3DDestroyContext(NPDeviceContext3D* context);
// End of WebPluginDelegate implementation.
bool IsWindowless() const { return true; }