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_SAMPLE_ACTIVITY_H_ | 5 #ifndef ATHENA_TEST_SAMPLE_ACTIVITY_H_ |
6 #define ATHENA_TEST_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 "ui/gfx/image/image_skia.h" | 10 #include "ui/gfx/image/image_skia.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 virtual aura::Window* GetWindow() OVERRIDE; | 29 virtual aura::Window* GetWindow() OVERRIDE; |
30 | 30 |
31 // athena::ActivityViewModel: | 31 // athena::ActivityViewModel: |
32 virtual void Init() OVERRIDE; | 32 virtual void Init() OVERRIDE; |
33 virtual SkColor GetRepresentativeColor() const OVERRIDE; | 33 virtual SkColor GetRepresentativeColor() const OVERRIDE; |
34 virtual base::string16 GetTitle() const OVERRIDE; | 34 virtual base::string16 GetTitle() const OVERRIDE; |
35 virtual gfx::ImageSkia GetIcon() const OVERRIDE; | 35 virtual gfx::ImageSkia GetIcon() const OVERRIDE; |
36 virtual bool UsesFrame() const OVERRIDE; | 36 virtual bool UsesFrame() const OVERRIDE; |
37 virtual views::View* GetContentsView() OVERRIDE; | 37 virtual views::View* GetContentsView() OVERRIDE; |
38 virtual views::Widget* CreateWidget() OVERRIDE; | 38 virtual views::Widget* CreateWidget() OVERRIDE; |
39 virtual gfx::ImageSkia GetOverviewModeImage() OVERRIDE; | 39 virtual scoped_ptr<gfx::Image> GetOverviewModeImage() OVERRIDE; |
40 virtual void PrepareContentsForOverview() OVERRIDE; | 40 virtual void PrepareContentsForOverview() OVERRIDE; |
41 virtual void ResetContentsView() OVERRIDE; | 41 virtual void ResetContentsView() OVERRIDE; |
42 | 42 |
43 private: | 43 private: |
44 SkColor color_; | 44 SkColor color_; |
45 SkColor contents_color_; | 45 SkColor contents_color_; |
46 base::string16 title_; | 46 base::string16 title_; |
47 views::View* contents_view_; | 47 views::View* contents_view_; |
48 | 48 |
49 // The current state for this activity. | 49 // The current state for this activity. |
50 ActivityState current_state_; | 50 ActivityState current_state_; |
51 | 51 |
52 DISALLOW_COPY_AND_ASSIGN(SampleActivity); | 52 DISALLOW_COPY_AND_ASSIGN(SampleActivity); |
53 }; | 53 }; |
54 | 54 |
55 } // namespace test | 55 } // namespace test |
56 } // namespace athena | 56 } // namespace athena |
57 | 57 |
58 #endif // ATHENA_TEST_SAMPLE_ACTIVITY_H_ | 58 #endif // ATHENA_TEST_SAMPLE_ACTIVITY_H_ |
OLD | NEW |