adds vibrancy effect for macos
This commit is contained in:
parent
ad638097b6
commit
8ad50d1e35
9 changed files with 105 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue