adds vibrancy effect for macos

This commit is contained in:
gellert 2016-11-07 21:22:41 +01:00 committed by Kevin Sawicki
parent ad638097b6
commit 8ad50d1e35
9 changed files with 105 additions and 0 deletions

View file

@ -786,6 +786,14 @@ bool Window::IsVisibleOnAllWorkspaces() {
return window_->IsVisibleOnAllWorkspaces();
}
void Window::SetVibrancy(const std::string& type) {
window_->SetVibrancy(type);
}
void Window::RemoveVibrancy() {
window_->RemoveVibrancy();
}
int32_t Window::ID() const {
return weak_map_id();
}
@ -901,6 +909,8 @@ void Window::BuildPrototype(v8::Isolate* isolate,
&Window::SetVisibleOnAllWorkspaces)
.SetMethod("isVisibleOnAllWorkspaces",
&Window::IsVisibleOnAllWorkspaces)
.SetMethod("setVibrancy", &Window::SetVibrancy)
.SetMethod("removeVibrancy", &Window::RemoveVibrancy)
#if defined(OS_WIN)
.SetMethod("hookWindowMessage", &Window::HookWindowMessage)
.SetMethod("isWindowMessageHooked", &Window::IsWindowMessageHooked)