Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: athena/test/sample_activity.h

Issue 617043002: Moving athena/test to athena/test/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « athena/test/base/test_resource_manager_delegate.cc ('k') | athena/test/sample_activity.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef ATHENA_TEST_SAMPLE_ACTIVITY_H_
6 #define ATHENA_TEST_SAMPLE_ACTIVITY_H_
7
8 #include "athena/activity/public/activity.h"
9 #include "athena/activity/public/activity_view_model.h"
10
11 namespace gfx {
12 class ImageSkia;
13 }
14
15 namespace athena {
16 namespace test {
17
18 class SampleActivity : public Activity,
19 public ActivityViewModel {
20 public:
21 SampleActivity(SkColor color,
22 SkColor contents_color,
23 const base::string16& title);
24 virtual ~SampleActivity();
25
26 // athena::Activity:
27 virtual athena::ActivityViewModel* GetActivityViewModel() OVERRIDE;
28 virtual void SetCurrentState(Activity::ActivityState state) OVERRIDE;
29 virtual ActivityState GetCurrentState() OVERRIDE;
30 virtual bool IsVisible() OVERRIDE;
31 virtual ActivityMediaState GetMediaState() OVERRIDE;
32 virtual aura::Window* GetWindow() OVERRIDE;
33 virtual content::WebContents* GetWebContents() OVERRIDE;
34
35 // athena::ActivityViewModel:
36 virtual void Init() OVERRIDE;
37 virtual SkColor GetRepresentativeColor() const OVERRIDE;
38 virtual base::string16 GetTitle() const OVERRIDE;
39 virtual gfx::ImageSkia GetIcon() const OVERRIDE;
40 virtual bool UsesFrame() const OVERRIDE;
41 virtual views::View* GetContentsView() OVERRIDE;
42 virtual views::Widget* CreateWidget() OVERRIDE;
43 virtual gfx::ImageSkia GetOverviewModeImage() OVERRIDE;
44 virtual void PrepareContentsForOverview() OVERRIDE;
45 virtual void ResetContentsView() OVERRIDE;
46
47 private:
48 SkColor color_;
49 SkColor contents_color_;
50 base::string16 title_;
51 views::View* contents_view_;
52
53 // The current state for this activity.
54 ActivityState current_state_;
55
56 DISALLOW_COPY_AND_ASSIGN(SampleActivity);
57 };
58
59 } // namespace test
60 } // namespace athena
61
62 #endif // ATHENA_TEST_SAMPLE_ACTIVITY_H_
OLDNEW
« no previous file with comments | « athena/test/base/test_resource_manager_delegate.cc ('k') | athena/test/sample_activity.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698