summaryrefslogtreecommitdiffstats
path: root/third_party/npapi/bindings
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-26 19:57:52 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-26 19:57:52 +0000
commitb03794d3a1bb536655207d73a78f115e3722893d (patch)
tree5d068db8f7e9bf9668c5c9efb145ed7737637238 /third_party/npapi/bindings
parent0b48014c5105ebe720a6eb50e0cb764d3b4aa8f9 (diff)
downloadchromium_src-b03794d3a1bb536655207d73a78f115e3722893d.zip
chromium_src-b03794d3a1bb536655207d73a78f115e3722893d.tar.gz
chromium_src-b03794d3a1bb536655207d73a78f115e3722893d.tar.bz2
Add zooming notifications to Pepper. This allows the plugin to respond to full page zooms without hardcoding the shortcuts for each platform/browser and allows the menus to work.
Review URL: http://codereview.chromium.org/1320007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42799 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/npapi/bindings')
-rw-r--r--third_party/npapi/bindings/npapi_extensions.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/third_party/npapi/bindings/npapi_extensions.h b/third_party/npapi/bindings/npapi_extensions.h
index 38bc886..f7ac489 100644
--- a/third_party/npapi/bindings/npapi_extensions.h
+++ b/third_party/npapi/bindings/npapi_extensions.h
@@ -573,9 +573,15 @@ typedef struct _NPPFindExtensions {
/* Returns NULL if the plugin does not support find extensions. */
typedef NPPFindExtensions* (*NPPGetFindExtensionsPtr)(NPP instance);
+/* Zooms plugins. 0 means reset, -1 means zoom out, and +1 means zoom in. */
+typedef NPError (*NPPZoomPtr) (
+ NPP instance,
+ int factor);
+
typedef struct _NPPExtensions {
NPPGetPrintExtensionsPtr getPrintExtensions;
NPPGetFindExtensionsPtr getFindExtensions;
+ NPPZoomPtr zoom;
} NPPExtensions;
#endif /* _NP_EXTENSIONS_H_ */