initial work on updating touch bar item config without rerender
This commit is contained in:
parent
61949657f0
commit
dd09c91cf2
10 changed files with 98 additions and 27 deletions
|
@ -853,6 +853,10 @@ void Window::SetTouchBar(mate::Arguments* args) {
|
|||
window_->SetTouchBar(args);
|
||||
}
|
||||
|
||||
void Window::RefreshTouchBarItem(mate::Arguments* args) {
|
||||
window_->RefreshTouchBarItem(args);
|
||||
}
|
||||
|
||||
int32_t Window::ID() const {
|
||||
return weak_map_id();
|
||||
}
|
||||
|
@ -975,6 +979,7 @@ void Window::BuildPrototype(v8::Isolate* isolate,
|
|||
.SetMethod("setVibrancy", &Window::SetVibrancy)
|
||||
.SetMethod("_destroyTouchBar", &Window::DestroyTouchBar)
|
||||
.SetMethod("_setTouchBar", &Window::SetTouchBar)
|
||||
.SetMethod("_refreshTouchBarItem", &Window::RefreshTouchBarItem)
|
||||
#if defined(OS_WIN)
|
||||
.SetMethod("hookWindowMessage", &Window::HookWindowMessage)
|
||||
.SetMethod("isWindowMessageHooked", &Window::IsWindowMessageHooked)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue