[Mac] Add app.dock.getBadge() API.
This commit is contained in:
parent
b1f88d680b
commit
ea1f81aa52
5 changed files with 16 additions and 1 deletions
|
@ -42,4 +42,9 @@ void Browser::DockSetBadgeText(const std::string& label) {
|
|||
[tile setBadgeLabel:base::SysUTF8ToNSString(label)];
|
||||
}
|
||||
|
||||
std::string Browser::DockGetBadgeText() {
|
||||
NSDockTile *tile = [[AtomApplication sharedApplication] dockTile];
|
||||
return base::SysNSStringToUTF8([tile badgeLabel]);
|
||||
}
|
||||
|
||||
} // namespace atom
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue