OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ATHENA_MAIN_SAMPLE_ACTIVITY_H_ | 5 #ifndef ATHENA_TEST_SAMPLE_ACTIVITY_H_ |
6 #define ATHENA_MAIN_SAMPLE_ACTIVITY_H_ | 6 #define ATHENA_TEST_SAMPLE_ACTIVITY_H_ |
7 | 7 |
8 #include "athena/activity/public/activity.h" | 8 #include "athena/activity/public/activity.h" |
9 #include "athena/activity/public/activity_view_model.h" | 9 #include "athena/activity/public/activity_view_model.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 | 11 |
12 class SampleActivity : public athena::Activity, | 12 namespace athena { |
13 public athena::ActivityViewModel { | 13 namespace test { |
| 14 |
| 15 class SampleActivity : public Activity, |
| 16 public ActivityViewModel { |
14 public: | 17 public: |
15 SampleActivity(SkColor color, SkColor content, const std::string& title); | 18 SampleActivity(SkColor color, SkColor content, const std::string& title); |
16 virtual ~SampleActivity(); | 19 virtual ~SampleActivity(); |
17 | 20 |
18 private: | 21 private: |
19 // athena::Activity: | 22 // athena::Activity: |
20 virtual athena::ActivityViewModel* GetActivityViewModel() OVERRIDE; | 23 virtual athena::ActivityViewModel* GetActivityViewModel() OVERRIDE; |
21 | 24 |
22 // athena::ActivityViewModel: | 25 // athena::ActivityViewModel: |
23 virtual SkColor GetRepresentativeColor() OVERRIDE; | 26 virtual SkColor GetRepresentativeColor() OVERRIDE; |
24 virtual std::string GetTitle() OVERRIDE; | 27 virtual std::string GetTitle() OVERRIDE; |
25 virtual aura::Window* GetNativeWindow() OVERRIDE; | 28 virtual aura::Window* GetNativeWindow() OVERRIDE; |
26 | 29 |
27 SkColor color_; | 30 SkColor color_; |
28 SkColor content_color_; | 31 SkColor content_color_; |
29 std::string title_; | 32 std::string title_; |
30 scoped_ptr<aura::Window> window_; | 33 scoped_ptr<aura::Window> window_; |
31 | 34 |
32 DISALLOW_COPY_AND_ASSIGN(SampleActivity); | 35 DISALLOW_COPY_AND_ASSIGN(SampleActivity); |
33 }; | 36 }; |
34 | 37 |
35 #endif // ATHENA_MAIN_SAMPLE_ACTIVITY_H_ | 38 } // namespace test |
| 39 } // namespace athena |
| 40 |
| 41 #endif // ATHENA_TEST_SAMPLE_ACTIVITY_H_ |
OLD | NEW |