initial work on updating touch bar item config without rerender

This commit is contained in:
Samuel Attard 2016-12-16 17:24:51 +11:00 committed by Kevin Sawicki
parent 61949657f0
commit dd09c91cf2
10 changed files with 98 additions and 27 deletions

View file

@ -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)