OLD | NEW |
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_CONTENT_APP_ACTIVITY_H_ | 5 #ifndef ATHENA_CONTENT_APP_ACTIVITY_H_ |
6 #define ATHENA_CONTENT_APP_ACTIVITY_H_ | 6 #define ATHENA_CONTENT_APP_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 "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 virtual void SetCurrentState(Activity::ActivityState state) OVERRIDE; | 30 virtual void SetCurrentState(Activity::ActivityState state) OVERRIDE; |
31 virtual ActivityState GetCurrentState() OVERRIDE; | 31 virtual ActivityState GetCurrentState() OVERRIDE; |
32 virtual bool IsVisible() OVERRIDE; | 32 virtual bool IsVisible() OVERRIDE; |
33 virtual ActivityMediaState GetMediaState() OVERRIDE; | 33 virtual ActivityMediaState GetMediaState() OVERRIDE; |
34 virtual aura::Window* GetWindow() OVERRIDE; | 34 virtual aura::Window* GetWindow() OVERRIDE; |
35 | 35 |
36 // ActivityViewModel: | 36 // ActivityViewModel: |
37 virtual void Init() OVERRIDE; | 37 virtual void Init() OVERRIDE; |
38 virtual SkColor GetRepresentativeColor() const OVERRIDE; | 38 virtual SkColor GetRepresentativeColor() const OVERRIDE; |
39 virtual base::string16 GetTitle() const OVERRIDE; | 39 virtual base::string16 GetTitle() const OVERRIDE; |
| 40 virtual gfx::ImageSkia GetIcon() const OVERRIDE; |
40 virtual bool UsesFrame() const OVERRIDE; | 41 virtual bool UsesFrame() const OVERRIDE; |
41 virtual views::View* GetContentsView() OVERRIDE; | 42 virtual views::View* GetContentsView() OVERRIDE; |
42 virtual void CreateOverviewModeImage() OVERRIDE; | 43 virtual void CreateOverviewModeImage() OVERRIDE; |
43 virtual gfx::ImageSkia GetOverviewModeImage() OVERRIDE; | 44 virtual gfx::ImageSkia GetOverviewModeImage() OVERRIDE; |
44 virtual void PrepareContentsForOverview() OVERRIDE; | 45 virtual void PrepareContentsForOverview() OVERRIDE; |
45 virtual void ResetContentsView() OVERRIDE; | 46 virtual void ResetContentsView() OVERRIDE; |
46 | 47 |
47 protected: | 48 protected: |
48 virtual ~AppActivity(); | 49 virtual ~AppActivity(); |
49 | 50 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // This object is owned by |AppRegistry| and will be a valid pointer as long | 86 // This object is owned by |AppRegistry| and will be a valid pointer as long |
86 // as this object lives. | 87 // as this object lives. |
87 AppActivityRegistry* app_activity_registry_; | 88 AppActivityRegistry* app_activity_registry_; |
88 | 89 |
89 DISALLOW_COPY_AND_ASSIGN(AppActivity); | 90 DISALLOW_COPY_AND_ASSIGN(AppActivity); |
90 }; | 91 }; |
91 | 92 |
92 } // namespace athena | 93 } // namespace athena |
93 | 94 |
94 #endif // ATHENA_CONTENT_APP_ACTIVITY_H_ | 95 #endif // ATHENA_CONTENT_APP_ACTIVITY_H_ |
OLD | NEW |