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

Unified Diff: athena/activity/public/activity_view_model.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_view_manager.h ('k') | athena/athena.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/activity/public/activity_view_model.h
diff --git a/athena/activity/public/activity_view_model.h b/athena/activity/public/activity_view_model.h
new file mode 100644
index 0000000000000000000000000000000000000000..8384bba8d8a4fd1f7b436d33a58963f2f6c474ce
--- /dev/null
+++ b/athena/activity/public/activity_view_model.h
@@ -0,0 +1,36 @@
+// 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_MODEL_H_
+#define ATHENA_ACTIVITY_PUBLIC_ACTIVITY_VIEW_MODEL_H_
+
+#include <string>
+
+#include "athena/athena_export.h"
+
+typedef unsigned int SkColor;
+
+namespace aura {
+class Window;
+}
+
+namespace athena {
+
+class ATHENA_EXPORT ActivityViewModel {
+ public:
+ virtual ~ActivityViewModel() {}
+
+ // Returns a color most representative of this activity.
+ virtual SkColor GetRepresentativeColor() = 0;
+
+ // Returns a title for the activity.
+ virtual std::string GetTitle() = 0;
+
+ // Returns the native window containing the activity.
+ virtual aura::Window* GetNativeWindow() = 0;
+};
+
+} // namespace athena
+
+#endif // ATHENA_ACTIVITY_PUBLIC_ACTIVITY_VIEW_MODEL_H_
« no previous file with comments | « athena/activity/public/activity_view_manager.h ('k') | athena/athena.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698