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

Side by Side Diff: athena/activity/public/activity_manager_observer.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 unified diff | Download patch
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_OBSERVER_H_ 5 #ifndef ATHENA_ACTIVITY_PUBLIC_ACTIVITY_MANAGER_OBSERVER_H_
6 #define ATHENA_ACTIVITY_PUBLIC_ACTIVITY_MANAGER_OBSERVER_H_ 6 #define ATHENA_ACTIVITY_PUBLIC_ACTIVITY_MANAGER_OBSERVER_H_
7 7
8 #include "athena/athena_export.h" 8 #include "athena/athena_export.h"
9 9
10 namespace athena { 10 namespace athena {
11 11
12 class Activity; 12 class Activity;
13 13
14 class ATHENA_EXPORT ActivityManagerObserver { 14 class ATHENA_EXPORT ActivityManagerObserver {
15 public: 15 public:
16 virtual ~ActivityManagerObserver() {} 16 virtual ~ActivityManagerObserver() {}
17 17
18 // Called after an |activity| got created. 18 // Called after an |activity| got created.
19 virtual void OnActivityStarted(Activity* activity) = 0; 19 virtual void OnActivityStarted(Activity* activity) = 0;
20 20
21 // Called before an |activity| gets destroyed. 21 // Called before an |activity| gets destroyed.
22 virtual void OnActivityEnding(Activity* activity) = 0; 22 virtual void OnActivityEnding(Activity* activity) = 0;
23
24 // Called when the order of the activities in the list has changed.
25 virtual void OnActivityOrderChanged() = 0;
23 }; 26 };
24 27
25 } // namespace athena 28 } // namespace athena
26 29
27 #endif // ATHENA_ACTIVITY_PUBLIC_ACTIVITY_MANAGER_OBSERVER_H_ 30 #endif // ATHENA_ACTIVITY_PUBLIC_ACTIVITY_MANAGER_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698