diff options
author | Torne (Richard Coles) <torne@google.com> | 2013-06-11 10:57:03 +0100 |
---|---|---|
committer | Torne (Richard Coles) <torne@google.com> | 2013-06-11 10:57:03 +0100 |
commit | 868fa2fe829687343ffae624259930155e16dbd8 (patch) | |
tree | 54d316199dd9739c57c3aacd131853bbd6554a94 /apps/app_shim/extension_app_shim_handler_mac.h | |
parent | bb1bdbd796f966b5bf11f40ecbea12621c7bfac9 (diff) | |
download | chromium_org-868fa2fe829687343ffae624259930155e16dbd8.tar.gz |
Merge from Chromium at DEPS revision r205460
This commit was generated by merge_to_master.py.
Change-Id: I4a744a5e426bd3bb378d887cfa56fe054742a540
Diffstat (limited to 'apps/app_shim/extension_app_shim_handler_mac.h')
-rw-r--r-- | apps/app_shim/extension_app_shim_handler_mac.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/apps/app_shim/extension_app_shim_handler_mac.h b/apps/app_shim/extension_app_shim_handler_mac.h index ea9a8c7eee..f5a7d668eb 100644 --- a/apps/app_shim/extension_app_shim_handler_mac.h +++ b/apps/app_shim/extension_app_shim_handler_mac.h @@ -14,6 +14,10 @@ class Profile; +namespace extensions { +class Extension; +} + namespace apps { // This app shim handler that handles events for app shims that correspond to an @@ -25,9 +29,10 @@ class ExtensionAppShimHandler : public AppShimHandler, virtual ~ExtensionAppShimHandler(); // AppShimHandler overrides: - virtual bool OnShimLaunch(Host* host) OVERRIDE; + virtual bool OnShimLaunch(Host* host, AppShimLaunchType launch_type) 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*> @@ -38,7 +43,9 @@ class ExtensionAppShimHandler : public AppShimHandler, content::NotificationRegistrar& registrar() { return registrar_; } private: - virtual bool LaunchApp(Profile* profile, const std::string& app_id); + virtual bool LaunchApp(Profile* profile, + const std::string& app_id, + AppShimLaunchType launch_type); // Listen to the NOTIFICATION_EXTENSION_HOST_DESTROYED message to detect when // an app closes. When that happens, call OnAppClosed on the relevant @@ -48,6 +55,8 @@ class ExtensionAppShimHandler : public AppShimHandler, const content::NotificationSource& source, const content::NotificationDetails& details) OVERRIDE; + void StartShim(Profile* profile, const extensions::Extension* extension); + void CloseShim(Profile* profile, const std::string& app_id); HostMap hosts_; |