summaryrefslogtreecommitdiffstats
path: root/webkit
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 /webkit
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 'webkit')
-rw-r--r--webkit/glue/webplugin_delegate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/webkit/glue/webplugin_delegate.h b/webkit/glue/webplugin_delegate.h
index 19eee7a..31ebe19 100644
--- a/webkit/glue/webplugin_delegate.h
+++ b/webkit/glue/webplugin_delegate.h
@@ -148,6 +148,10 @@ class WebPluginDelegate : public WebPlugin2DDeviceDelegate,
virtual void StopFind() {}
virtual void NumberOfFindResultsChanged(int total, bool final_result) {}
virtual void SelectedFindResultChanged(int index) {}
+
+ // Used for zooming of full page plugins. 0 means reset, while -1 means zoom
+ // out and +1 means zoom in.
+ virtual void Zoom(int factor) {}
};
} // namespace webkit_glue