Make hidden app windows have no shelf presence [ChromeOS].
commit25276657bde07f815a1d9da04c90975a49eb5d72
authorcalamity@chromium.org <calamity@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 24 Apr 2014 10:56:41 +0000 (24 10:56 +0000)
committercalamity@chromium.org <calamity@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 24 Apr 2014 10:56:41 +0000 (24 10:56 +0000)
treeebceec923e9af23092598db8b2f756c460acb472
parent7d2273ef29a218a41c7540488ad9db744f106d70
Make hidden app windows have no shelf presence [ChromeOS].

This CL fixes an issue with hidden app windows appearing in the shelf by
unregistering the app windows when they are hidden and registering them
again when shown.

Window visibility wasn't enough here as the window is not visible
if it is minimized.

This CL adds OnAppWindowShown() and OnAppWindowHidden() methods to
AppWindowObserver.

BUG=360896

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265903 0039d316-1c4b-4281-b951-d872f2087c98
apps/app_window.cc
apps/app_window_registry.cc
apps/app_window_registry.h
chrome/browser/ui/ash/launcher/app_window_launcher_controller.cc
chrome/browser/ui/ash/launcher/app_window_launcher_controller.h
chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc
chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc
chrome/browser/ui/ash/launcher/multi_profile_app_window_launcher_controller.cc
chrome/browser/ui/ash/launcher/multi_profile_app_window_launcher_controller.h