Add BrowserWindow.getOpacity for consistency

This commit is contained in:
Taeho Kim 2017-10-03 00:08:10 +09:00
parent 7df5182901
commit 7570ec9d39
9 changed files with 29 additions and 2 deletions

View file

@ -635,6 +635,10 @@ void Window::SetOpacity(const double opacity) {
window_->SetOpacity(opacity);
}
double Window::GetOpacity() {
return window_->GetOpacity();
}
void Window::FocusOnWebView() {
window_->FocusOnWebView();
}
@ -1061,6 +1065,7 @@ void Window::BuildPrototype(v8::Isolate* isolate,
.SetMethod("setHasShadow", &Window::SetHasShadow)
.SetMethod("hasShadow", &Window::HasShadow)
.SetMethod("setOpacity", &Window::SetOpacity)
.SetMethod("getOpacity", &Window::GetOpacity)
.SetMethod("setRepresentedFilename", &Window::SetRepresentedFilename)
.SetMethod("getRepresentedFilename", &Window::GetRepresentedFilename)
.SetMethod("setDocumentEdited", &Window::SetDocumentEdited)