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

Side by Side Diff: trunk/src/athena/activity/public/activity.h

Issue 497013002: Revert 291221 "Athena: Adding basic resource management framewor..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | trunk/src/athena/athena.gyp » ('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_H_ 5 #ifndef ATHENA_ACTIVITY_PUBLIC_ACTIVITY_H_
6 #define ATHENA_ACTIVITY_PUBLIC_ACTIVITY_H_ 6 #define ATHENA_ACTIVITY_PUBLIC_ACTIVITY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "athena/athena_export.h" 10 #include "athena/athena_export.h"
11 11
12 namespace aura {
13 class Window;
14 }
15
16 namespace athena { 12 namespace athena {
17 13
18 class ActivityViewModel; 14 class ActivityViewModel;
19 15
20 // This class is a high level abstraction of an activity (which could be either 16 // This class is a high level abstraction of an activity (which could be either
21 // a web page or a V1/V2 app/extension). Through this class the activity can 17 // a web page or a V1/V2 app/extension). Through this class the activity can
22 // be controlled (e.g. loaded / unloaded). 18 // be controlled (e.g. loaded / unloaded).
23 // An Activity gets created with state |ACTIVITY_UNLOADED|. 19 // An Activity gets created with state |ACTIVITY_UNLOADED|.
24 // Requesting |ACTIVITY_VISIBLE| or |ACTIVITY_INVISIBLE| will load it. 20 // Requesting |ACTIVITY_VISIBLE| or |ACTIVITY_INVISIBLE| will load it.
25 // Once an activity was |ACTIVITY_INVISIBLE| for a while it can be transitioned 21 // Once an activity was |ACTIVITY_INVISIBLE| for a while it can be transitioned
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual void SetCurrentState(ActivityState state) = 0; 65 virtual void SetCurrentState(ActivityState state) = 0;
70 66
71 // Returns the current state of the activity. 67 // Returns the current state of the activity.
72 virtual ActivityState GetCurrentState() = 0; 68 virtual ActivityState GetCurrentState() = 0;
73 69
74 // Returns if the activity is visible or not. 70 // Returns if the activity is visible or not.
75 virtual bool IsVisible() = 0; 71 virtual bool IsVisible() = 0;
76 72
77 // Returns the current media state. 73 // Returns the current media state.
78 virtual ActivityMediaState GetMediaState() = 0; 74 virtual ActivityMediaState GetMediaState() = 0;
79
80 // Returns the window for the activity. This can be used to determine the
81 // stacking order of this activity against others.
82 virtual aura::Window* GetWindow() = 0;
83 }; 75 };
84 76
85 } // namespace athena 77 } // namespace athena
86 78
87 #endif // ATHENA_ACTIVITY_PUBLIC_ACTIVITY_H_ 79 #endif // ATHENA_ACTIVITY_PUBLIC_ACTIVITY_H_
OLDNEW
« no previous file with comments | « no previous file | trunk/src/athena/athena.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698