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.
5 #ifndef ATHENA_TEST_SAMPLE_ACTIVITY_H_
6 #define ATHENA_TEST_SAMPLE_ACTIVITY_H_
8 #include "athena/activity/public/activity.h"
9 #include "athena/activity/public/activity_view_model.h"
10 #include "base/memory/scoped_ptr.h"
15 class SampleActivity
: public Activity
,
16 public ActivityViewModel
{
18 SampleActivity(SkColor color
,
19 SkColor contents_color
,
20 const base::string16
& title
);
21 virtual ~SampleActivity();
25 virtual athena::ActivityViewModel
* GetActivityViewModel() OVERRIDE
;
27 // athena::ActivityViewModel:
28 virtual void Init() OVERRIDE
;
29 virtual SkColor
GetRepresentativeColor() OVERRIDE
;
30 virtual base::string16
GetTitle() OVERRIDE
;
31 virtual views::View
* GetContentsView() OVERRIDE
;
34 SkColor contents_color_
;
35 base::string16 title_
;
36 views::View
* contents_view_
;
38 DISALLOW_COPY_AND_ASSIGN(SampleActivity
);
44 #endif // ATHENA_TEST_SAMPLE_ACTIVITY_H_