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

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

Issue 302683002: athena: Add the concept of Activity and related managers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 7 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
« no previous file with comments | « athena/activity/public/activity_manager.h ('k') | athena/activity/public/activity_view_model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/activity/public/activity_view_manager.h
diff --git a/athena/activity/public/activity_view_manager.h b/athena/activity/public/activity_view_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..6ca8b315e4120477b4a3087f043372dea561f213
--- /dev/null
+++ b/athena/activity/public/activity_view_manager.h
@@ -0,0 +1,33 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ATHENA_ACTIVITY_PUBLIC_ACTIVITY_VIEW_MANAGER_H_
+#define ATHENA_ACTIVITY_PUBLIC_ACTIVITY_VIEW_MANAGER_H_
+
+#include "athena/athena_export.h"
+
+namespace athena {
+
+class Activity;
+
+// Manages the views for the activities.
+class ATHENA_EXPORT ActivityViewManager {
+ public:
+ static ActivityViewManager* Create();
+ static ActivityViewManager* Get();
+ static void Shutdown();
+
+ virtual ~ActivityViewManager() {}
+
+ // Adds/Removes a task.
+ virtual void AddActivity(Activity* task) = 0;
+ virtual void RemoveActivity(Activity* task) = 0;
+
+ // Updates the UI when the task color/title changes.
+ virtual void UpdateActivity(Activity* task) = 0;
+};
+
+} // namespace athena
+
+#endif // ATHENA_ACTIVITY_PUBLIC_ACTIVITY_VIEW_MANAGER_H_
« no previous file with comments | « athena/activity/public/activity_manager.h ('k') | athena/activity/public/activity_view_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698