diff options
author | jackhou@chromium.org <jackhou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-30 06:40:19 +0000 |
---|---|---|
committer | jackhou@chromium.org <jackhou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-30 06:40:19 +0000 |
commit | f17047c2350711bba987f7af7eddcbc94bdc470a (patch) | |
tree | fd64d4b96204301e50c043a9655c8c760a2b4c1f /apps/app_shim/extension_app_shim_handler_mac.h | |
parent | 9fa2b496bd83e5770c92e86121aea74b1657642f (diff) | |
download | chromium_src-f17047c2350711bba987f7af7eddcbc94bdc470a.zip chromium_src-f17047c2350711bba987f7af7eddcbc94bdc470a.tar.gz chromium_src-f17047c2350711bba987f7af7eddcbc94bdc470a.tar.bz2 |
Close all windows when app shim quits.
This adds a new IPC message QuitApp which is sent by the shim when the user
quits the shim (right click -> Quit). The AppShimHost responds by closing all
windows associated with the app. The shim actually quits when the extension
eventually closes and AppShimHost closes the channel to the shim.
BUG=168080
TEST=Start an app using its shim.
Right click the app in the dock and select quit.
The shell windows of that app should close.
Review URL: https://chromiumcodereview.appspot.com/14579005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203098 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/app_shim/extension_app_shim_handler_mac.h')
-rw-r--r-- | apps/app_shim/extension_app_shim_handler_mac.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_shim/extension_app_shim_handler_mac.h b/apps/app_shim/extension_app_shim_handler_mac.h index ea9a8c7..86c86e1 100644 --- a/apps/app_shim/extension_app_shim_handler_mac.h +++ b/apps/app_shim/extension_app_shim_handler_mac.h @@ -28,6 +28,7 @@ class ExtensionAppShimHandler : public AppShimHandler, virtual bool OnShimLaunch(Host* host) OVERRIDE; virtual void OnShimClose(Host* host) OVERRIDE; virtual void OnShimFocus(Host* host) OVERRIDE; + virtual void OnShimQuit(Host* host) OVERRIDE; protected: typedef std::map<std::pair<Profile*, std::string>, AppShimHandler::Host*> |