Chromium Code Reviews| Index: apps/app_shim/extension_app_shim_handler_mac.cc |
| diff --git a/apps/app_shim/extension_app_shim_handler_mac.cc b/apps/app_shim/extension_app_shim_handler_mac.cc |
| index 48f4eeeccd7dd27ce7b4de5eaa8795f6ddd31909..4ec7e1732fb83ed1a42ac8810568a03dc83fdfe1 100644 |
| --- a/apps/app_shim/extension_app_shim_handler_mac.cc |
| +++ b/apps/app_shim/extension_app_shim_handler_mac.cc |
| @@ -292,6 +292,21 @@ bool ExtensionAppShimHandler::RequestUserAttentionForWindow( |
| } |
| } |
| +// static |
| +void ExtensionAppShimHandler::OnChromeWillHide() { |
| + // Send OnAppHide to all the shims so that they go into the hidden state. |
| + // This is necessary so that when the shim is next focused, it will know to |
| + // unhide. |
| + ExtensionAppShimHandler* handler = g_browser_process->platform_part() |
|
tapted
2014/07/18 06:24:34
nit: WDYT about adding a GetHandler/GetInstance()
jackhou1
2014/07/21 01:11:27
Done.
|
| + ->app_shim_host_manager() |
| + ->extension_app_shim_handler(); |
| + for (HostMap::iterator it = handler->hosts_.begin(); |
| + it != handler->hosts_.end(); |
| + ++it) { |
| + it->second->OnAppHide(); |
| + } |
| +} |
| + |
| void ExtensionAppShimHandler::OnShimLaunch( |
| Host* host, |
| AppShimLaunchType launch_type, |