base::Bind(&Browser::SetAppUserModelID, browser))
#if defined(OS_MACOSX)
.SetMethod("hide", base::Bind(&Browser::Hide, browser))
+ .SetMethod("show", base::Bind(&Browser::Show, browser))
#endif
#if defined(OS_WIN)
.SetMethod("setUserTasks",
// Hide the application.
void Hide();
+ // Show the application.
+ void Show();
+
// Bounce the dock icon.
enum BounceType {
BOUNCE_CRITICAL = 0,
[[AtomApplication sharedApplication] hide:nil];
}
+void Browser::Show() {
+ [[AtomApplication sharedApplication] unhide:nil];
+}
+
void Browser::AddRecentDocument(const base::FilePath& path) {
NSString* path_string = base::mac::FilePathToNSString(path);
if (!path_string)
Hides all application windows without minimising them.
+### `app.show()` _OS X_
+
+Shows application windows after they were hidden. Does not automatically focus them.
+
### `app.exit(exitCode)`
* `exitCode` Integer