Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / athena / test / sample_activity.h
bloba43d60986d03f5dc83c74a36fcb915901a73fd58
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"
11 #include "ui/gfx/image/image_skia.h"
13 namespace athena {
14 namespace test {
16 class SampleActivity : public Activity,
17 public ActivityViewModel {
18 public:
19 SampleActivity(SkColor color,
20 SkColor contents_color,
21 const base::string16& title);
22 virtual ~SampleActivity();
24 private:
25 // athena::Activity:
26 virtual athena::ActivityViewModel* GetActivityViewModel() OVERRIDE;
27 virtual void SetCurrentState(Activity::ActivityState state) OVERRIDE;
28 virtual ActivityState GetCurrentState() OVERRIDE;
29 virtual bool IsVisible() OVERRIDE;
30 virtual ActivityMediaState GetMediaState() OVERRIDE;
31 virtual aura::Window* GetWindow() OVERRIDE;
33 // athena::ActivityViewModel:
34 virtual void Init() OVERRIDE;
35 virtual SkColor GetRepresentativeColor() const OVERRIDE;
36 virtual base::string16 GetTitle() const OVERRIDE;
37 virtual bool UsesFrame() const OVERRIDE;
38 virtual views::View* GetContentsView() OVERRIDE;
39 virtual void CreateOverviewModeImage() OVERRIDE;
40 virtual gfx::ImageSkia GetOverviewModeImage() OVERRIDE;
42 SkColor color_;
43 SkColor contents_color_;
44 base::string16 title_;
45 views::View* contents_view_;
47 // The current state for this activity.
48 ActivityState current_state_;
50 DISALLOW_COPY_AND_ASSIGN(SampleActivity);
53 } // namespace test
54 } // namespace athena
56 #endif // ATHENA_TEST_SAMPLE_ACTIVITY_H_