Chromium Code Reviews| 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 "athena/content/app_activity_proxy.h" | 10 #include "athena/content/app_activity_proxy.h" |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 37 bool IsVisible() override; | 37 bool IsVisible() override; |
| 38 ActivityMediaState GetMediaState() override; | 38 ActivityMediaState GetMediaState() override; |
| 39 aura::Window* GetWindow() override; | 39 aura::Window* GetWindow() override; |
| 40 content::WebContents* GetWebContents() override; | 40 content::WebContents* GetWebContents() override; |
| 41 | 41 |
| 42 // ActivityViewModel: | 42 // ActivityViewModel: |
| 43 void Init() override; | 43 void Init() override; |
| 44 SkColor GetRepresentativeColor() const override; | 44 SkColor GetRepresentativeColor() const override; |
| 45 base::string16 GetTitle() const override; | 45 base::string16 GetTitle() const override; |
| 46 gfx::ImageSkia GetIcon() const override; | 46 gfx::ImageSkia GetIcon() const override; |
| 47 void SetActivityView(ActivityView* activity_view) override; | |
| 47 bool UsesFrame() const override; | 48 bool UsesFrame() const override; |
| 48 views::View* GetContentsView() override; | 49 views::View* GetContentsView() override; |
| 49 gfx::ImageSkia GetOverviewModeImage() override; | 50 gfx::ImageSkia GetOverviewModeImage() override; |
| 50 void PrepareContentsForOverview() override; | 51 void PrepareContentsForOverview() override; |
| 51 void ResetContentsView() override; | 52 void ResetContentsView() override; |
| 52 | 53 |
| 53 protected: | 54 protected: |
| 54 // Constructor for test. | 55 // Constructor for test. |
| 55 explicit AppActivity(const std::string& app_id); | 56 explicit AppActivity(const std::string& app_id); |
| 56 | 57 |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 79 ActivityState current_state_; | 80 ActivityState current_state_; |
| 80 | 81 |
| 81 // If known the registry which holds all activities for the associated app. | 82 // If known the registry which holds all activities for the associated app. |
| 82 // This object is owned by |AppRegistry| and will be a valid pointer as long | 83 // This object is owned by |AppRegistry| and will be a valid pointer as long |
| 83 // as this object lives. | 84 // as this object lives. |
| 84 AppActivityRegistry* app_activity_registry_; | 85 AppActivityRegistry* app_activity_registry_; |
| 85 | 86 |
| 86 // The content proxy. | 87 // The content proxy. |
| 87 scoped_ptr<ContentProxy> content_proxy_; | 88 scoped_ptr<ContentProxy> content_proxy_; |
| 88 | 89 |
| 90 ActivityView* activity_view_; | |
|
oshima
2014/11/04 22:17:04
can you document ownership?
sadrul
2014/11/04 23:26:09
Done.
| |
| 91 | |
| 89 DISALLOW_COPY_AND_ASSIGN(AppActivity); | 92 DISALLOW_COPY_AND_ASSIGN(AppActivity); |
| 90 }; | 93 }; |
| 91 | 94 |
| 92 } // namespace athena | 95 } // namespace athena |
| 93 | 96 |
| 94 #endif // ATHENA_CONTENT_APP_ACTIVITY_H_ | 97 #endif // ATHENA_CONTENT_APP_ACTIVITY_H_ |
| OLD | NEW |