mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user