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

Unified Diff: athena/activity/public/activity_manager.h

Issue 694353004: athena: Expose the list of activities from the ActivityManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 1 month 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_manager_unittest.cc ('k') | athena/activity/public/activity_manager_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..4eadf87bac8727f195d3c93bf1e2aae0bf846472 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;
+
+ // 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& GetActivityList() = 0;
+
// 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;
};
« no previous file with comments | « athena/activity/activity_manager_unittest.cc ('k') | athena/activity/public/activity_manager_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698