Add BrowserWindow.getOpacity for consistency
This commit is contained in:
parent
7df5182901
commit
7570ec9d39
9 changed files with 29 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue