Use vector of dictionaries instead of mate::Arguments
This commit is contained in:
parent
98f5858b11
commit
823b3baed0
6 changed files with 15 additions and 14 deletions
|
@ -1374,12 +1374,10 @@ void NativeWindowMac::DestroyTouchBar() {
|
|||
[window_ resetTouchBar];
|
||||
}
|
||||
|
||||
void NativeWindowMac::SetTouchBar(mate::Arguments* args) {
|
||||
std::vector<mate::PersistentDictionary> items;
|
||||
if (args->GetNext(&items)) {
|
||||
touch_bar_items_ = items;
|
||||
[window_ resetTouchBar];
|
||||
}
|
||||
void NativeWindowMac::SetTouchBar(
|
||||
const std::vector<mate::PersistentDictionary>& items) {
|
||||
touch_bar_items_ = items;
|
||||
[window_ resetTouchBar];
|
||||
}
|
||||
|
||||
void NativeWindowMac::RefreshTouchBarItem(const std::string& item_id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue