summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/webplugin_delegate_pepper.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-07 18:09:38 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-07 18:09:38 +0000
commit4b5ea27735e55571b5c745e5827fc1e217d97447 (patch)
treecda78aa3bf86fa440525126f8daf2404782450fc /chrome/renderer/webplugin_delegate_pepper.h
parent18b0832d7e012df21a196777add97c67e4b72cd9 (diff)
downloadchromium_src-4b5ea27735e55571b5c745e5827fc1e217d97447.zip
chromium_src-4b5ea27735e55571b5c745e5827fc1e217d97447.tar.gz
chromium_src-4b5ea27735e55571b5c745e5827fc1e217d97447.tar.bz2
Add new widget API to Pepper to replace the old theming API. The implementation is a copy of the WebKit code, I will figure out how to reuse it soon.
Review URL: http://codereview.chromium.org/2011004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46710 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/webplugin_delegate_pepper.h')
-rw-r--r--chrome/renderer/webplugin_delegate_pepper.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/chrome/renderer/webplugin_delegate_pepper.h b/chrome/renderer/webplugin_delegate_pepper.h
index 9ca3858..7f861fc 100644
--- a/chrome/renderer/webplugin_delegate_pepper.h
+++ b/chrome/renderer/webplugin_delegate_pepper.h
@@ -88,11 +88,13 @@ class WebPluginDelegatePepper : public webkit_glue::WebPluginDelegate,
virtual void StopFind();
virtual void NumberOfFindResultsChanged(int total, bool final_result);
virtual void SelectedFindResultChanged(int index);
- virtual void Zoom(int factor);
virtual bool ChooseFile(const char* mime_types,
int mode,
NPChooseFileCallback callback,
void* user_data);
+ virtual NPWidgetExtensions* GetWidgetExtensions();
+
+ virtual void Zoom(int factor);
// WebPlugin2DDeviceDelegate implementation.
virtual NPError Device2DQueryCapability(int32 capability, int32* value);
@@ -112,11 +114,6 @@ class WebPluginDelegatePepper : public webkit_glue::WebPluginDelegate,
NPDeviceFlushContextCallbackPtr callback,
void* user_data);
virtual NPError Device2DDestroyContext(NPDeviceContext2D* context);
- virtual NPError Device2DThemeGetSize(NPThemeItem item,
- int* width,
- int* height);
- virtual NPError Device2DThemePaint(NPDeviceContext2D* context,
- NPThemeParams* params);
// WebPlugin3DDeviceDelegate implementation.
virtual NPError Device3DQueryCapability(int32 capability, int32* value);
@@ -200,6 +197,8 @@ class WebPluginDelegatePepper : public webkit_glue::WebPluginDelegate,
void RenderViewInitiatedPaint();
void RenderViewFlushedPaint();
+ Graphics2DDeviceContext* GetGraphicsContext(NPDeviceContext2D* context);
+
private:
WebPluginDelegatePepper(
const base::WeakPtr<RenderView>& render_view,