OLD | NEW |
| (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_ | |
OLD | NEW |