From b03794d3a1bb536655207d73a78f115e3722893d Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Fri, 26 Mar 2010 19:57:52 +0000 Subject: 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 --- third_party/npapi/bindings/npapi_extensions.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'third_party/npapi') 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_ */ -- cgit v1.1