[Mac] NativeAppWindowCocoa::Activate should do the same as Show.
commit45ba91c93609b865b23fc22e00e0d2570ec89449
authorjackhou <jackhou@chromium.org>
Mon, 25 May 2015 06:02:09 +0000 (24 23:02 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 25 May 2015 06:02:45 +0000 (25 06:02 +0000)
treebe89d5bf983849167b43ecc0838aaff4cc99de53
parent178c34e97ead3ff388afd7716336dfb664ec7430
[Mac] NativeAppWindowCocoa::Activate should do the same as Show.

I.e. if the window is_hidden_with_app_ and has a shim it should
request attention instead of showing.

This CL also adds a test for this behavior.

BUG=489924

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

Cr-Commit-Position: refs/heads/master@{#331263}
chrome/browser/apps/app_shim/app_shim_host_manager_browsertest_mac.mm
chrome/browser/apps/app_shim/app_shim_host_manager_mac.h
chrome/browser/apps/app_shim/app_shim_host_manager_mac.mm
chrome/browser/apps/app_shim/extension_app_shim_handler_mac.h
chrome/browser/apps/app_shim/test/app_shim_host_manager_test_api_mac.cc
chrome/browser/apps/app_shim/test/app_shim_host_manager_test_api_mac.h
chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm
chrome/browser/ui/cocoa/apps/native_app_window_cocoa_browsertest.mm