Export a setVisualZoomLevelLimits method
This commit is contained in:
parent
3e85d7759b
commit
e887fb69bd
2 changed files with 5 additions and 3 deletions
|
@ -88,7 +88,7 @@ double WebFrame::GetZoomFactor() const {
|
||||||
return blink::WebView::zoomLevelToZoomFactor(GetZoomLevel());
|
return blink::WebView::zoomLevelToZoomFactor(GetZoomLevel());
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebFrame::SetZoomLevelLimits(double min_level, double max_level) {
|
void WebFrame::SetVisualZoomLevelLimits(double min_level, double max_level) {
|
||||||
web_frame_->view()->setDefaultPageScaleLimits(min_level, max_level);
|
web_frame_->view()->setDefaultPageScaleLimits(min_level, max_level);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -231,7 +231,9 @@ void WebFrame::BuildPrototype(
|
||||||
.SetMethod("getZoomLevel", &WebFrame::GetZoomLevel)
|
.SetMethod("getZoomLevel", &WebFrame::GetZoomLevel)
|
||||||
.SetMethod("setZoomFactor", &WebFrame::SetZoomFactor)
|
.SetMethod("setZoomFactor", &WebFrame::SetZoomFactor)
|
||||||
.SetMethod("getZoomFactor", &WebFrame::GetZoomFactor)
|
.SetMethod("getZoomFactor", &WebFrame::GetZoomFactor)
|
||||||
.SetMethod("setZoomLevelLimits", &WebFrame::SetZoomLevelLimits)
|
.SetMethod("setZoomLevelLimits", &WebFrame::SetVisualZoomLevelLimits)
|
||||||
|
.SetMethod("setVisualZoomLevelLimits",
|
||||||
|
&WebFrame::SetVisualZoomLevelLimits)
|
||||||
.SetMethod("setLayoutZoomLevelLimits",
|
.SetMethod("setLayoutZoomLevelLimits",
|
||||||
&WebFrame::SetLayoutZoomLevelLimits)
|
&WebFrame::SetLayoutZoomLevelLimits)
|
||||||
.SetMethod("registerEmbedderCustomElement",
|
.SetMethod("registerEmbedderCustomElement",
|
||||||
|
|
|
@ -45,7 +45,7 @@ class WebFrame : public mate::Wrappable<WebFrame> {
|
||||||
double SetZoomFactor(double factor);
|
double SetZoomFactor(double factor);
|
||||||
double GetZoomFactor() const;
|
double GetZoomFactor() const;
|
||||||
|
|
||||||
void SetZoomLevelLimits(double min_level, double max_level);
|
void SetVisualZoomLevelLimits(double min_level, double max_level);
|
||||||
void SetLayoutZoomLevelLimits(double min_level, double max_level);
|
void SetLayoutZoomLevelLimits(double min_level, double max_level);
|
||||||
|
|
||||||
v8::Local<v8::Value> RegisterEmbedderCustomElement(
|
v8::Local<v8::Value> RegisterEmbedderCustomElement(
|
||||||
|
|
Loading…
Reference in a new issue