Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2392)

Unified Diff: athena/activity/activity_manager_impl.h

Issue 596623005: Do not show the activity widget in ActivityManager::AddActivity (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « athena/activity/activity.cc ('k') | athena/activity/activity_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/activity/activity_manager_impl.h
diff --git a/athena/activity/activity_manager_impl.h b/athena/activity/activity_manager_impl.h
index 35e627ca48da5e410ef9c44056816345c38c1b09..2e99be11679f5bce827edad633311e2f7a492210 100644
--- a/athena/activity/activity_manager_impl.h
+++ b/athena/activity/activity_manager_impl.h
@@ -8,12 +8,14 @@
#include "base/macros.h"
#include "base/observer_list.h"
+#include "ui/views/widget/widget_observer.h"
namespace athena {
class ActivityManagerObserver;
-class ActivityManagerImpl : public ActivityManager {
+class ActivityManagerImpl : public ActivityManager,
+ public views::WidgetObserver {
public:
ActivityManagerImpl();
virtual ~ActivityManagerImpl();
@@ -27,6 +29,9 @@ class ActivityManagerImpl : public ActivityManager {
virtual void AddObserver(ActivityManagerObserver* observer) OVERRIDE;
virtual void RemoveObserver(ActivityManagerObserver* observer) OVERRIDE;
+ // views::WidgetObserver
+ virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE;
+
private:
std::vector<Activity*> activities_;
« no previous file with comments | « athena/activity/activity.cc ('k') | athena/activity/activity_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698