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

Unified Diff: athena/main/sample_activity.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/main/placeholder_content.cc ('k') | athena/main/sample_activity.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/main/sample_activity.h
diff --git a/athena/main/sample_activity.h b/athena/main/sample_activity.h
new file mode 100644
index 0000000000000000000000000000000000000000..bbd8b585a6d5aa5154c68defcbc0e8852bc038a2
--- /dev/null
+++ b/athena/main/sample_activity.h
@@ -0,0 +1,35 @@
+// 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_MAIN_SAMPLE_ACTIVITY_H_
+#define ATHENA_MAIN_SAMPLE_ACTIVITY_H_
+
+#include "athena/activity/public/activity.h"
+#include "athena/activity/public/activity_view_model.h"
+#include "base/memory/scoped_ptr.h"
+
+class SampleActivity : public athena::Activity,
+ public athena::ActivityViewModel {
+ public:
+ SampleActivity(SkColor color, SkColor content, const std::string& title);
+ virtual ~SampleActivity();
+
+ private:
+ // athena::Activity:
+ virtual athena::ActivityViewModel* GetActivityViewModel() OVERRIDE;
+
+ // athena::ActivityViewModel:
+ virtual SkColor GetRepresentativeColor() OVERRIDE;
+ virtual std::string GetTitle() OVERRIDE;
+ virtual aura::Window* GetNativeWindow() OVERRIDE;
+
+ SkColor color_;
+ SkColor content_color_;
+ std::string title_;
+ scoped_ptr<aura::Window> window_;
+
+ DISALLOW_COPY_AND_ASSIGN(SampleActivity);
+};
+
+#endif // ATHENA_MAIN_SAMPLE_ACTIVITY_H_
« no previous file with comments | « athena/main/placeholder_content.cc ('k') | athena/main/sample_activity.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698