🍎 Add 'Hide' to App API for OS X only

This commit is contained in:
Simon Madine 2016-01-29 12:30:19 +01:00
parent 30b35644f6
commit 7a370ccd0f
4 changed files with 12 additions and 0 deletions

View file

@ -18,6 +18,10 @@ void Browser::Focus() {
[[AtomApplication sharedApplication] activateIgnoringOtherApps:YES];
}
void Browser::Hide() {
[[AtomApplication sharedApplication] hide:nil];
}
void Browser::AddRecentDocument(const base::FilePath& path) {
NSString* path_string = base::mac::FilePathToNSString(path);
if (!path_string)