summaryrefslogtreecommitdiffstats
path: root/chrome/app_shim
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/app_shim')
-rw-r--r--chrome/app_shim/chrome_main_app_mode_mac.mm10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/app_shim/chrome_main_app_mode_mac.mm b/chrome/app_shim/chrome_main_app_mode_mac.mm
index 7babb4a..ca3d271 100644
--- a/chrome/app_shim/chrome_main_app_mode_mac.mm
+++ b/chrome/app_shim/chrome_main_app_mode_mac.mm
@@ -128,6 +128,10 @@ class AppShimController : public IPC::Listener {
// Hide this app.
void OnHide();
+ // Set this app to the unhidden state. Happens when an app window shows
+ // itself.
+ void OnUnhideWithoutActivation();
+
// Requests user attention.
void OnRequestUserAttention();
void OnSetUserAttention(apps::AppShimAttentionType attention_type);
@@ -282,6 +286,8 @@ bool AppShimController::OnMessageReceived(const IPC::Message& message) {
IPC_BEGIN_MESSAGE_MAP(AppShimController, message)
IPC_MESSAGE_HANDLER(AppShimMsg_LaunchApp_Done, OnLaunchAppDone)
IPC_MESSAGE_HANDLER(AppShimMsg_Hide, OnHide)
+ IPC_MESSAGE_HANDLER(AppShimMsg_UnhideWithoutActivation,
+ OnUnhideWithoutActivation)
IPC_MESSAGE_HANDLER(AppShimMsg_RequestUserAttention, OnRequestUserAttention)
IPC_MESSAGE_HANDLER(AppShimMsg_SetUserAttention, OnSetUserAttention)
IPC_MESSAGE_UNHANDLED(handled = false)
@@ -311,6 +317,10 @@ void AppShimController::OnHide() {
[NSApp hide:nil];
}
+void AppShimController::OnUnhideWithoutActivation() {
+ [NSApp unhideWithoutActivation];
+}
+
void AppShimController::OnRequestUserAttention() {
OnSetUserAttention(apps::APP_SHIM_ATTENTION_INFORMATIONAL);
}