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

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

Issue 375143002: Use Widget frame and WidgetDelegate in ActvityWidget (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/content/web_activity.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
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"
11 11
12 namespace athena { 12 namespace athena {
13 namespace test { 13 namespace test {
14 14
15 class SampleActivity : public Activity, 15 class SampleActivity : public Activity,
16 public ActivityViewModel { 16 public ActivityViewModel {
17 public: 17 public:
18 SampleActivity(SkColor color, 18 SampleActivity(SkColor color,
19 SkColor contents_color, 19 SkColor contents_color,
20 const base::string16& title); 20 const base::string16& title);
21 virtual ~SampleActivity(); 21 virtual ~SampleActivity();
22 22
23 private: 23 private:
24 // athena::Activity: 24 // athena::Activity:
25 virtual athena::ActivityViewModel* GetActivityViewModel() OVERRIDE; 25 virtual athena::ActivityViewModel* GetActivityViewModel() OVERRIDE;
26 26
27 // athena::ActivityViewModel: 27 // athena::ActivityViewModel:
28 virtual void Init() OVERRIDE; 28 virtual void Init() OVERRIDE;
29 virtual SkColor GetRepresentativeColor() OVERRIDE; 29 virtual SkColor GetRepresentativeColor() const OVERRIDE;
30 virtual base::string16 GetTitle() OVERRIDE; 30 virtual base::string16 GetTitle() const OVERRIDE;
31 virtual bool UsesFrame() const OVERRIDE;
31 virtual views::View* GetContentsView() OVERRIDE; 32 virtual views::View* GetContentsView() OVERRIDE;
32 33
33 SkColor color_; 34 SkColor color_;
34 SkColor contents_color_; 35 SkColor contents_color_;
35 base::string16 title_; 36 base::string16 title_;
36 views::View* contents_view_; 37 views::View* contents_view_;
37 38
38 DISALLOW_COPY_AND_ASSIGN(SampleActivity); 39 DISALLOW_COPY_AND_ASSIGN(SampleActivity);
39 }; 40 };
40 41
41 } // namespace test 42 } // namespace test
42 } // namespace athena 43 } // namespace athena
43 44
44 #endif // ATHENA_TEST_SAMPLE_ACTIVITY_H_ 45 #endif // ATHENA_TEST_SAMPLE_ACTIVITY_H_
OLDNEW
« no previous file with comments | « athena/content/web_activity.cc ('k') | athena/test/sample_activity.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698