🎨
This commit is contained in:
parent
37c9d76cd5
commit
2fe21ecdd0
1 changed files with 6 additions and 7 deletions
|
@ -189,16 +189,16 @@ static NSString* const ImageScrubberItemIdentifier = @"scrubber.image.item";
|
||||||
details);
|
details);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)scrubber:(NSScrubber *)scrubber didSelectItemAtIndex:(NSInteger)selectedIndex {
|
- (void)scrubber:(NSScrubber*)scrubber didSelectItemAtIndex:(NSInteger)selectedIndex {
|
||||||
base::DictionaryValue details;
|
base::DictionaryValue details;
|
||||||
details.SetInteger("selectedIndex", (long)selectedIndex);
|
details.SetInteger("selectedIndex", selectedIndex);
|
||||||
details.SetString("type", "select");
|
details.SetString("type", "select");
|
||||||
window_->NotifyTouchBarItemInteraction([scrubber.identifier UTF8String], details);
|
window_->NotifyTouchBarItemInteraction([scrubber.identifier UTF8String], details);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)scrubber:(NSScrubber *)scrubber didHighlightItemAtIndex:(NSInteger)highlightedIndex {
|
- (void)scrubber:(NSScrubber*)scrubber didHighlightItemAtIndex:(NSInteger)highlightedIndex {
|
||||||
base::DictionaryValue details;
|
base::DictionaryValue details;
|
||||||
details.SetInteger("highlightedIndex", (long)highlightedIndex);
|
details.SetInteger("highlightedIndex", highlightedIndex);
|
||||||
details.SetString("type", "highlight");
|
details.SetString("type", "highlight");
|
||||||
window_->NotifyTouchBarItemInteraction([scrubber.identifier UTF8String], details);
|
window_->NotifyTouchBarItemInteraction([scrubber.identifier UTF8String], details);
|
||||||
}
|
}
|
||||||
|
@ -529,7 +529,6 @@ static NSString* const ImageScrubberItemIdentifier = @"scrubber.image.item";
|
||||||
|
|
||||||
- (void)updateScrubber:(NSCustomTouchBarItem*)item
|
- (void)updateScrubber:(NSCustomTouchBarItem*)item
|
||||||
withSettings:(const mate::PersistentDictionary&)settings {
|
withSettings:(const mate::PersistentDictionary&)settings {
|
||||||
|
|
||||||
NSScrubber* scrubber = item.view;
|
NSScrubber* scrubber = item.view;
|
||||||
|
|
||||||
std::vector<mate::PersistentDictionary> items;
|
std::vector<mate::PersistentDictionary> items;
|
||||||
|
|
Loading…
Reference in a new issue