From b75b829359b4b432d0462ab5011542f99f2021a5 Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Fri, 1 Oct 2010 07:28:25 +0000 Subject: Chrome side of consolidating zoom code for pepper plugins (i.e. pdf) and the rest of Chrome. Allows plugins to have different zoom ranges, and also to update zoom on its own. Review URL: http://codereview.chromium.org/3419023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61153 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/plugins/pepper_plugin_instance.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'webkit/glue/plugins/pepper_plugin_instance.h') diff --git a/webkit/glue/plugins/pepper_plugin_instance.h b/webkit/glue/plugins/pepper_plugin_instance.h index 4eb956f..97e026e 100644 --- a/webkit/glue/plugins/pepper_plugin_instance.h +++ b/webkit/glue/plugins/pepper_plugin_instance.h @@ -25,6 +25,7 @@ struct PP_Var; struct PPB_Instance; struct PPB_Find_Dev; struct PPB_Fullscreen_Dev; +struct PPB_Zoom_Dev; struct PPP_Find_Dev; struct PPP_Instance; struct PPP_Zoom_Dev; @@ -67,6 +68,7 @@ class PluginInstance : public base::RefCounted { // exposed to the plugin. static const PPB_Find_Dev* GetFindInterface(); static const PPB_Fullscreen_Dev* GetFullscreenInterface(); + static const PPB_Zoom_Dev* GetZoomInterface(); PluginDelegate* delegate() const { return delegate_; } PluginModule* module() const { return module_.get(); } @@ -134,7 +136,7 @@ class PluginInstance : public base::RefCounted { gfx::Rect* clip); string16 GetSelectedText(bool html); - void Zoom(float factor, bool text_only); + void Zoom(double factor, bool text_only); bool StartFind(const string16& search_text, bool case_sensitive, int identifier); -- cgit v1.1