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_TEST_BASE_SAMPLE_ACTIVITY_H_ | 5 #ifndef ATHENA_TEST_BASE_SAMPLE_ACTIVITY_H_ |
6 #define ATHENA_TEST_BASE_SAMPLE_ACTIVITY_H_ | 6 #define ATHENA_TEST_BASE_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 | 10 |
11 namespace gfx { | 11 namespace gfx { |
12 class ImageSkia; | 12 class ImageSkia; |
13 } | 13 } |
14 | 14 |
15 namespace athena { | 15 namespace athena { |
16 namespace test { | 16 namespace test { |
17 | 17 |
18 class SampleActivity : public Activity, | 18 class SampleActivity : public Activity, |
19 public ActivityViewModel { | 19 public ActivityViewModel { |
20 public: | 20 public: |
21 SampleActivity(SkColor color, | 21 SampleActivity(SkColor color, |
22 SkColor contents_color, | 22 SkColor contents_color, |
23 const base::string16& title); | 23 const base::string16& title); |
24 virtual ~SampleActivity(); | 24 virtual ~SampleActivity(); |
25 | 25 |
26 // athena::Activity: | 26 // athena::Activity: |
27 virtual athena::ActivityViewModel* GetActivityViewModel() OVERRIDE; | 27 virtual athena::ActivityViewModel* GetActivityViewModel() override; |
28 virtual void SetCurrentState(Activity::ActivityState state) OVERRIDE; | 28 virtual void SetCurrentState(Activity::ActivityState state) override; |
29 virtual ActivityState GetCurrentState() OVERRIDE; | 29 virtual ActivityState GetCurrentState() override; |
30 virtual bool IsVisible() OVERRIDE; | 30 virtual bool IsVisible() override; |
31 virtual ActivityMediaState GetMediaState() OVERRIDE; | 31 virtual ActivityMediaState GetMediaState() override; |
32 virtual aura::Window* GetWindow() OVERRIDE; | 32 virtual aura::Window* GetWindow() override; |
33 virtual content::WebContents* GetWebContents() OVERRIDE; | 33 virtual content::WebContents* GetWebContents() override; |
34 | 34 |
35 // athena::ActivityViewModel: | 35 // athena::ActivityViewModel: |
36 virtual void Init() OVERRIDE; | 36 virtual void Init() override; |
37 virtual SkColor GetRepresentativeColor() const OVERRIDE; | 37 virtual SkColor GetRepresentativeColor() const override; |
38 virtual base::string16 GetTitle() const OVERRIDE; | 38 virtual base::string16 GetTitle() const override; |
39 virtual gfx::ImageSkia GetIcon() const OVERRIDE; | 39 virtual gfx::ImageSkia GetIcon() const override; |
40 virtual bool UsesFrame() const OVERRIDE; | 40 virtual bool UsesFrame() const override; |
41 virtual views::View* GetContentsView() OVERRIDE; | 41 virtual views::View* GetContentsView() override; |
42 virtual views::Widget* CreateWidget() OVERRIDE; | 42 virtual views::Widget* CreateWidget() override; |
43 virtual gfx::ImageSkia GetOverviewModeImage() OVERRIDE; | 43 virtual gfx::ImageSkia GetOverviewModeImage() override; |
44 virtual void PrepareContentsForOverview() OVERRIDE; | 44 virtual void PrepareContentsForOverview() override; |
45 virtual void ResetContentsView() OVERRIDE; | 45 virtual void ResetContentsView() override; |
46 | 46 |
47 private: | 47 private: |
48 SkColor color_; | 48 SkColor color_; |
49 SkColor contents_color_; | 49 SkColor contents_color_; |
50 base::string16 title_; | 50 base::string16 title_; |
51 views::View* contents_view_; | 51 views::View* contents_view_; |
52 | 52 |
53 // The current state for this activity. | 53 // The current state for this activity. |
54 ActivityState current_state_; | 54 ActivityState current_state_; |
55 | 55 |
56 DISALLOW_COPY_AND_ASSIGN(SampleActivity); | 56 DISALLOW_COPY_AND_ASSIGN(SampleActivity); |
57 }; | 57 }; |
58 | 58 |
59 } // namespace test | 59 } // namespace test |
60 } // namespace athena | 60 } // namespace athena |
61 | 61 |
62 #endif // ATHENA_TEST_BASE_SAMPLE_ACTIVITY_H_ | 62 #endif // ATHENA_TEST_BASE_SAMPLE_ACTIVITY_H_ |
OLD | NEW |