diff options
author | benwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-15 07:15:50 +0000 |
---|---|---|
committer | benwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-15 07:15:50 +0000 |
commit | 7aadf69a4bbc972a89bd03929c0f054b885708e4 (patch) | |
tree | 95dec7bd5b3cb9caeac1fcbb5ebfa22be3e080c9 /apps/app_lifetime_monitor.h | |
parent | 4e53cb3b926bde438d2175dcb006dd534e5becab (diff) | |
download | chromium_src-7aadf69a4bbc972a89bd03929c0f054b885708e4.zip chromium_src-7aadf69a4bbc972a89bd03929c0f054b885708e4.tar.gz chromium_src-7aadf69a4bbc972a89bd03929c0f054b885708e4.tar.bz2 |
Don't send onLaunched to apps with only hidden windows when they reload.
This also stops apps with only hidden windows getting sent the
onLaunched if they don't listen to onRestarted and the system is
restarted.
BUG=268755
Review URL: https://codereview.chromium.org/270273002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270614 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/app_lifetime_monitor.h')
-rw-r--r-- | apps/app_lifetime_monitor.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/app_lifetime_monitor.h b/apps/app_lifetime_monitor.h index a9fed9c..9e4aa56 100644 --- a/apps/app_lifetime_monitor.h +++ b/apps/app_lifetime_monitor.h @@ -62,12 +62,15 @@ class AppLifetimeMonitor : public KeyedService, const content::NotificationDetails& details) OVERRIDE; // AppWindowRegistry::Observer overrides: - virtual void OnAppWindowAdded(AppWindow* app_window) OVERRIDE; virtual void OnAppWindowRemoved(AppWindow* app_window) OVERRIDE; + virtual void OnAppWindowHidden(apps::AppWindow* app_window) OVERRIDE; + virtual void OnAppWindowShown(apps::AppWindow* app_window) OVERRIDE; // KeyedService overrides: virtual void Shutdown() OVERRIDE; + bool HasVisibleAppWindows(apps::AppWindow* app_window) const; + void NotifyAppStart(const std::string& app_id); void NotifyAppActivated(const std::string& app_id); void NotifyAppDeactivated(const std::string& app_id); |