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

Unified Diff: athena/ui/sample_task.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
Index: athena/ui/sample_task.h
diff --git a/athena/ui/sample_task.h b/athena/ui/sample_task.h
new file mode 100644
index 0000000000000000000000000000000000000000..b600f8109a3ec782e56d6bb6ca847105ff82d028
--- /dev/null
+++ b/athena/ui/sample_task.h
@@ -0,0 +1,27 @@
+// 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.
+
+#include "athena/task/public/task.h"
+#include "base/memory/scoped_ptr.h"
+
+class SampleTask : public athena::Task {
+ public:
+ SampleTask(SkColor color,
+ SkColor content,
+ const std::string& title);
+ virtual ~SampleTask();
+
+ private:
+ // athena::Task:
+ 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(SampleTask);
+};

Powered by Google App Engine
This is Rietveld 408576698