[Mac] Add app.dock.getBadge() API.

This commit is contained in:
Cheng Zhao 2013-08-06 16:39:31 +08:00
parent b1f88d680b
commit ea1f81aa52
5 changed files with 16 additions and 1 deletions

View file

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