.SetMethod("quit", base::Bind(&Browser::Quit, browser))
.SetMethod("exit", base::Bind(&Browser::Exit, browser))
.SetMethod("focus", base::Bind(&Browser::Focus, browser))
- .SetMethod("hide", base::Bind(&Browser::Hide, browser))
.SetMethod("getVersion", base::Bind(&Browser::GetVersion, browser))
.SetMethod("setVersion", base::Bind(&Browser::SetVersion, browser))
.SetMethod("getName", base::Bind(&Browser::GetName, browser))
base::Bind(&Browser::ClearRecentDocuments, browser))
.SetMethod("setAppUserModelId",
base::Bind(&Browser::SetAppUserModelID, browser))
+#if defined(OS_MACOSX)
+ .SetMethod("hide", base::Bind(&Browser::Hide, browser))
+#endif
#if defined(OS_WIN)
.SetMethod("setUserTasks",
base::Bind(&Browser::SetUserTasks, browser))
// Focus the application.
void Focus();
- // Focus the application.
- void Hide();
-
// Returns the version of the executable (or bundle).
std::string GetVersion() const;
void SetAppUserModelID(const base::string16& name);
#if defined(OS_MACOSX)
+ // Hide the application.
+ void Hide();
+
// Bounce the dock icon.
enum BounceType {
BOUNCE_CRITICAL = 0,