Fix the bug that minimized panel window might steal focus on Mac
commit3845b97462e35d1b126e0a7b6247b3df70545db8
authorjianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 23 May 2014 07:06:07 +0000 (23 07:06 +0000)
committerjianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 23 May 2014 07:06:07 +0000 (23 07:06 +0000)
tree29396797231516e73fd8ec6f214d5ac6ecc40379
parentf1651c4ad1f7cb6d3206882c7587a64c67343426
Fix the bug that minimized panel window might steal focus on Mac

This is caused by the problem that the minimized panel could still become a key window. We found out a way to deactivate a NSWindow correctly.

BUG=365758

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272420 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/ui/cocoa/panels/panel_window_controller_cocoa.mm