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

Side by Side 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, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « athena/main/placeholder_content.cc ('k') | athena/main/sample_activity.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ATHENA_MAIN_SAMPLE_ACTIVITY_H_
6 #define ATHENA_MAIN_SAMPLE_ACTIVITY_H_
7
8 #include "athena/activity/public/activity.h"
9 #include "athena/activity/public/activity_view_model.h"
10 #include "base/memory/scoped_ptr.h"
11
12 class SampleActivity : public athena::Activity,
13 public athena::ActivityViewModel {
14 public:
15 SampleActivity(SkColor color, SkColor content, const std::string& title);
16 virtual ~SampleActivity();
17
18 private:
19 // athena::Activity:
20 virtual athena::ActivityViewModel* GetActivityViewModel() OVERRIDE;
21
22 // athena::ActivityViewModel:
23 virtual SkColor GetRepresentativeColor() OVERRIDE;
24 virtual std::string GetTitle() OVERRIDE;
25 virtual aura::Window* GetNativeWindow() OVERRIDE;
26
27 SkColor color_;
28 SkColor content_color_;
29 std::string title_;
30 scoped_ptr<aura::Window> window_;
31
32 DISALLOW_COPY_AND_ASSIGN(SampleActivity);
33 };
34
35 #endif // ATHENA_MAIN_SAMPLE_ACTIVITY_H_
OLDNEW
« 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