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

Side by Side Diff: athena/activity/public/activity_manager.h

Issue 603033002: Get FileSelect dialog work on athena (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reformat 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 unified diff | Download patch
« no previous file with comments | « athena/activity/public/activity.h ('k') | athena/content/app_activity.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ATHENA_ACTIVITY_PUBLIC_ACTIVITY_MANAGER_H_ 5 #ifndef ATHENA_ACTIVITY_PUBLIC_ACTIVITY_MANAGER_H_
6 #define ATHENA_ACTIVITY_PUBLIC_ACTIVITY_MANAGER_H_ 6 #define ATHENA_ACTIVITY_PUBLIC_ACTIVITY_MANAGER_H_
7 7
8 #include "athena/athena_export.h" 8 #include "athena/athena_export.h"
9 9
10 namespace aura {
11 class Window;
12 }
13
10 namespace athena { 14 namespace athena {
11 15
12 class Activity; 16 class Activity;
13 class ActivityManagerObserver; 17 class ActivityManagerObserver;
14 18
15 // Manages a set of activities. 19 // Manages a set of activities.
16 class ATHENA_EXPORT ActivityManager { 20 class ATHENA_EXPORT ActivityManager {
17 public: 21 public:
18 static ActivityManager* Create(); 22 static ActivityManager* Create();
19 static ActivityManager* Get(); 23 static ActivityManager* Get();
20 static void Shutdown(); 24 static void Shutdown();
21 25
22 virtual ~ActivityManager() {} 26 virtual ~ActivityManager() {}
23 27
24 // Adds/Removes an activity. ActivityManager owns the activities. 28 // Adds/Removes an activity. ActivityManager owns the activities.
25 virtual void AddActivity(Activity* activity) = 0; 29 virtual void AddActivity(Activity* activity) = 0;
26 virtual void RemoveActivity(Activity* activity) = 0; 30 virtual void RemoveActivity(Activity* activity) = 0;
27 31
32 // Returns the activity that has a |window| as toplevel window, or
33 // NULL if such activity does not exist.
34 virtual Activity* GetActivityForWindow(aura::Window* window) = 0;
35
28 // Updates the UI when the task color/title changes. 36 // Updates the UI when the task color/title changes.
29 virtual void UpdateActivity(Activity* activity) = 0; 37 virtual void UpdateActivity(Activity* activity) = 0;
30 38
31 virtual void AddObserver(ActivityManagerObserver* observer) = 0; 39 virtual void AddObserver(ActivityManagerObserver* observer) = 0;
32 virtual void RemoveObserver(ActivityManagerObserver* observer) = 0; 40 virtual void RemoveObserver(ActivityManagerObserver* observer) = 0;
33 }; 41 };
34 42
35 } // namespace athena 43 } // namespace athena
36 44
37 #endif // ATHENA_ACTIVITY_PUBLIC_ACTIVITY_MANAGER_H_ 45 #endif // ATHENA_ACTIVITY_PUBLIC_ACTIVITY_MANAGER_H_
OLDNEW
« no previous file with comments | « athena/activity/public/activity.h ('k') | athena/content/app_activity.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698