summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/webplugin_delegate_pepper.cc
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 /chrome/renderer/webplugin_delegate_pepper.cc
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 'chrome/renderer/webplugin_delegate_pepper.cc')
-rw-r--r--chrome/renderer/webplugin_delegate_pepper.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/renderer/webplugin_delegate_pepper.cc b/chrome/renderer/webplugin_delegate_pepper.cc
index 70ce34e..8f9d49c 100644
--- a/chrome/renderer/webplugin_delegate_pepper.cc
+++ b/chrome/renderer/webplugin_delegate_pepper.cc
@@ -355,6 +355,13 @@ void WebPluginDelegatePepper::SelectedFindResultChanged(int index) {
find_identifier_, index + 1, WebKit::WebRect());
}
+void WebPluginDelegatePepper::Zoom(int factor) {
+ NPPExtensions* extensions = NULL;
+ instance()->NPP_GetValue(NPPVPepperExtensions, &extensions);
+ if (extensions && extensions->zoom)
+ extensions->zoom(instance()->npp(), factor);
+}
+
NPError WebPluginDelegatePepper::Device2DQueryCapability(int32 capability,
int32* value) {
return NPERR_GENERIC_ERROR;