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

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

Issue 536013002: Decoupling visibility states from webcontent, adding visibility management in ResourceManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a few more unittests 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 side-by-side diff with in-line comments
Download patch
Index: athena/activity/public/activity.h
diff --git a/athena/activity/public/activity.h b/athena/activity/public/activity.h
index 041449b6721cadd043ada2540febd38746be5470..231897ccbe6221a1a0aa7bd4396d4b9a7313cecd 100644
--- a/athena/activity/public/activity.h
+++ b/athena/activity/public/activity.h
@@ -60,7 +60,8 @@ class ATHENA_EXPORT Activity {
ACTIVITY_MEDIA_STATE_AUDIO_PLAYING // Audible audio is playing in activity.
};
- virtual ~Activity();
+ // Close an activity.
+ static void CloseActivity(Activity* activity);
// The Activity retains ownership of the returned view-model.
virtual ActivityViewModel* GetActivityViewModel() = 0;
@@ -80,6 +81,9 @@ class ATHENA_EXPORT Activity {
// Returns the window for the activity. This can be used to determine the
// stacking order of this activity against others.
virtual aura::Window* GetWindow() = 0;
+
+ protected:
+ virtual ~Activity() {}
};
} // namespace athena

Powered by Google App Engine
This is Rietveld 408576698