Index: athena/activity/public/activity_manager.h |
diff --git a/athena/activity/public/activity_manager.h b/athena/activity/public/activity_manager.h |
index 99d8e75a049fdc1999de56c629403bf364430806..576350c486bfef28adb7347b3082eedd651533d3 100644 |
--- a/athena/activity/public/activity_manager.h |
+++ b/athena/activity/public/activity_manager.h |
@@ -5,6 +5,8 @@ |
#ifndef ATHENA_ACTIVITY_PUBLIC_ACTIVITY_MANAGER_H_ |
#define ATHENA_ACTIVITY_PUBLIC_ACTIVITY_MANAGER_H_ |
+#include <vector> |
+ |
#include "athena/athena_export.h" |
namespace aura { |
@@ -16,6 +18,8 @@ namespace athena { |
class Activity; |
class ActivityManagerObserver; |
+using ActivityList = std::vector<Activity*>; |
+ |
// Manages a set of activities. |
class ATHENA_EXPORT ActivityManager { |
public: |
@@ -29,13 +33,17 @@ class ATHENA_EXPORT ActivityManager { |
virtual void AddActivity(Activity* activity) = 0; |
virtual void RemoveActivity(Activity* activity) = 0; |
+ // Updates the UI when the task color/title changes. |
+ virtual void UpdateActivity(Activity* activity) = 0; |
oshima
2014/11/04 00:26:03
off topic: I think we should get rid of this and r
sadrul
2014/11/04 03:43:46
One option is to introduce an ActivityViewModelObs
|
+ |
+ // Returns a list of activities, sorted in their activation order (the most |
+ // recently used activity is at the front of the returned list). |
+ virtual const ActivityList& GetActivities() = 0; |
oshima
2014/11/04 00:26:03
I was just thinking something similiar for differe
sadrul
2014/11/04 03:43:46
Done.
|
+ |
// Returns the activity that has a |window| as toplevel window, or |
// nullptr if such activity does not exist. |
virtual Activity* GetActivityForWindow(aura::Window* window) = 0; |
- // Updates the UI when the task color/title changes. |
- virtual void UpdateActivity(Activity* activity) = 0; |
- |
virtual void AddObserver(ActivityManagerObserver* observer) = 0; |
virtual void RemoveObserver(ActivityManagerObserver* observer) = 0; |
}; |