Add zoom support (issue #116).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@167 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-01-25 15:34:50 +00:00
parent 8420cbbff1
commit c9b8e88dd9
14 changed files with 202 additions and 2 deletions

View File

@@ -196,6 +196,22 @@ void CefBrowserCToCpp::StopFinding(bool clearSelection)
struct_->stop_finding(struct_, clearSelection);
}
double CefBrowserCToCpp::GetZoomLevel()
{
if(CEF_MEMBER_MISSING(struct_, get_zoom_level))
return 0.0;
return struct_->get_zoom_level(struct_);
}
void CefBrowserCToCpp::SetZoomLevel(double zoomLevel)
{
if(CEF_MEMBER_MISSING(struct_, set_zoom_level))
return;
return struct_->set_zoom_level(struct_, zoomLevel);
}
#ifdef _DEBUG
template<> long CefCToCpp<CefBrowserCToCpp, CefBrowser,