From aded6eb5272ccb4f9b90ee529bdb014ffaa59031 Mon Sep 17 00:00:00 2001 From: Tommi Komulainen Date: Tue, 25 Aug 2009 15:05:32 +0000 Subject: browser-plugin: add zoom property Example: plugin.zoom = plugin.zoom * 1.5; --- (limited to 'browser-plugin/plugin.cpp') diff --git a/browser-plugin/plugin.cpp b/browser-plugin/plugin.cpp index 8398db3..7d79100 100644 --- a/browser-plugin/plugin.cpp +++ b/browser-plugin/plugin.cpp @@ -80,6 +80,19 @@ Plugin::ZoomOut () } void +Plugin::SetZoom (double zoom) +{ + ev_view_set_sizing_mode (EV_VIEW (mView), EV_SIZING_FREE); + ev_view_set_zoom (EV_VIEW (mView), zoom, FALSE); +} + +double +Plugin::GetZoom (void) const +{ + return ev_view_get_zoom (EV_VIEW (mView)); +} + +void Plugin::FindNext (const char *text) { } -- cgit v0.9.1