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

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

Issue 477523002: Athena: Adding basic resource management framework (un-/re-loading) of V2 applications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Aaaand another rebase. Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « athena/test/DEPS ('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
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 "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 10 matching lines...) Expand all
21 const base::string16& title); 21 const base::string16& title);
22 virtual ~SampleActivity(); 22 virtual ~SampleActivity();
23 23
24 private: 24 private:
25 // athena::Activity: 25 // athena::Activity:
26 virtual athena::ActivityViewModel* GetActivityViewModel() OVERRIDE; 26 virtual athena::ActivityViewModel* GetActivityViewModel() OVERRIDE;
27 virtual void SetCurrentState(Activity::ActivityState state) OVERRIDE; 27 virtual void SetCurrentState(Activity::ActivityState state) OVERRIDE;
28 virtual ActivityState GetCurrentState() OVERRIDE; 28 virtual ActivityState GetCurrentState() OVERRIDE;
29 virtual bool IsVisible() OVERRIDE; 29 virtual bool IsVisible() OVERRIDE;
30 virtual ActivityMediaState GetMediaState() OVERRIDE; 30 virtual ActivityMediaState GetMediaState() OVERRIDE;
31 virtual aura::Window* GetWindow() OVERRIDE;
31 32
32 // athena::ActivityViewModel: 33 // athena::ActivityViewModel:
33 virtual void Init() OVERRIDE; 34 virtual void Init() OVERRIDE;
34 virtual SkColor GetRepresentativeColor() const OVERRIDE; 35 virtual SkColor GetRepresentativeColor() const OVERRIDE;
35 virtual base::string16 GetTitle() const OVERRIDE; 36 virtual base::string16 GetTitle() const OVERRIDE;
36 virtual bool UsesFrame() const OVERRIDE; 37 virtual bool UsesFrame() const OVERRIDE;
37 virtual views::View* GetContentsView() OVERRIDE; 38 virtual views::View* GetContentsView() OVERRIDE;
38 virtual void CreateOverviewModeImage() OVERRIDE; 39 virtual void CreateOverviewModeImage() OVERRIDE;
39 virtual gfx::ImageSkia GetOverviewModeImage() OVERRIDE; 40 virtual gfx::ImageSkia GetOverviewModeImage() OVERRIDE;
40 41
41 SkColor color_; 42 SkColor color_;
42 SkColor contents_color_; 43 SkColor contents_color_;
43 base::string16 title_; 44 base::string16 title_;
44 views::View* contents_view_; 45 views::View* contents_view_;
45 46
46 // The current state for this activity. 47 // The current state for this activity.
47 ActivityState current_state_; 48 ActivityState current_state_;
48 49
49 DISALLOW_COPY_AND_ASSIGN(SampleActivity); 50 DISALLOW_COPY_AND_ASSIGN(SampleActivity);
50 }; 51 };
51 52
52 } // namespace test 53 } // namespace test
53 } // namespace athena 54 } // namespace athena
54 55
55 #endif // ATHENA_TEST_SAMPLE_ACTIVITY_H_ 56 #endif // ATHENA_TEST_SAMPLE_ACTIVITY_H_
OLDNEW
« no previous file with comments | « athena/test/DEPS ('k') | athena/test/sample_activity.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698