[Mac] AppWindow.show() and focus() should unhide the shim.
commitf409bb4d411ba07422ecb6d49be186bda0aa2f5f
authorjackhou <jackhou@chromium.org>
Fri, 29 May 2015 00:29:18 +0000 (28 17:29 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 29 May 2015 00:29:51 +0000 (29 00:29 +0000)
treeb38b65df8193f11b774ecdcaa14481faa0506c3f
parent0d16f706d9a0d023fa19b8ba8ce56e755f6eb9db
[Mac] AppWindow.show() and focus() should unhide the shim.

Previously, the shim would request attention (bounce in the dock). The
only way to unhide the shim would be for a user to activate it.

This does not work for apps that should become focused due to other
events, e.g. when responding to a notification action.

BUG=489924

Review URL: https://codereview.chromium.org/1157203002

Cr-Commit-Position: refs/heads/master@{#331890}
14 files changed:
chrome/app_shim/chrome_main_app_mode_mac.mm
chrome/browser/apps/app_shim/app_shim_handler_mac.h
chrome/browser/apps/app_shim/app_shim_host_mac.cc
chrome/browser/apps/app_shim/app_shim_host_mac.h
chrome/browser/apps/app_shim/app_shim_quit_interactive_uitest_mac.mm
chrome/browser/apps/app_shim/extension_app_shim_handler_mac.cc
chrome/browser/apps/app_shim/extension_app_shim_handler_mac.h
chrome/browser/apps/app_shim/extension_app_shim_handler_mac_unittest.cc
chrome/browser/ui/app_list/app_list_service_mac_interactive_uitest.mm
chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm
chrome/browser/ui/cocoa/apps/native_app_window_cocoa_browsertest.mm
chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.h
chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.mm
chrome/common/mac/app_shim_messages.h