summaryrefslogtreecommitdiffstats
path: root/apps/app_window_registry.h
diff options
context:
space:
mode:
authorcalamity@chromium.org <calamity@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-01 21:53:21 +0000
committercalamity@chromium.org <calamity@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-01 21:53:21 +0000
commit8f471efe17352dd8d4831f97f5f5c03812b6f082 (patch)
tree45e4f92e4062991ad772a4386e6c250f4d36415d /apps/app_window_registry.h
parent1dca97bbf3d4c109ae93be900cf6823dc87c154f (diff)
downloadchromium_src-8f471efe17352dd8d4831f97f5f5c03812b6f082.zip
chromium_src-8f471efe17352dd8d4831f97f5f5c03812b6f082.tar.gz
chromium_src-8f471efe17352dd8d4831f97f5f5c03812b6f082.tar.bz2
Reland a portion of https://codereview.chromium.org/234673002/
This CL is a reland of a portion of https://codereview.chromium.org/234673002/ with all changes #ifdefed for ChromeOS only. This will allow for a ChromeOS only merge of the fix. BUG=360896 TBR=stevenjb@chromium.org, skuhne@chromium.org Review URL: https://codereview.chromium.org/269613003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267639 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/app_window_registry.h')
-rw-r--r--apps/app_window_registry.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/app_window_registry.h b/apps/app_window_registry.h
index cc3ee35..895bbe2 100644
--- a/apps/app_window_registry.h
+++ b/apps/app_window_registry.h
@@ -37,9 +37,17 @@ class AppWindowRegistry : public KeyedService {
virtual void OnAppWindowIconChanged(apps::AppWindow* app_window) = 0;
// Called just after a app window was removed.
virtual void OnAppWindowRemoved(apps::AppWindow* app_window) = 0;
+#if defined(OS_CHROMEOS)
+ // Called just after a app window was hidden. This is different from
+ // window visibility as a minimize does not hide a window, but does make
+ // it not visible.
+ virtual void OnAppWindowHidden(apps::AppWindow* app_window);
+ // Called just after a app window was shown.
+ virtual void OnAppWindowShown(apps::AppWindow* app_window);
+#endif
protected:
- virtual ~Observer() {}
+ virtual ~Observer();
};
typedef std::list<apps::AppWindow*> AppWindowList;
@@ -58,6 +66,10 @@ class AppWindowRegistry : public KeyedService {
void AppWindowIconChanged(apps::AppWindow* app_window);
// Called by |app_window| when it is activated.
void AppWindowActivated(apps::AppWindow* app_window);
+#if defined(OS_CHROMEOS)
+ void AppWindowHidden(apps::AppWindow* app_window);
+ void AppWindowShown(apps::AppWindow* app_window);
+#endif
void RemoveAppWindow(apps::AppWindow* app_window);
void AddObserver(Observer* observer);