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

Unified Diff: athena/content/app_activity.h

Issue 358003002: Additions to Activities to allow resource management (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « athena/content/DEPS ('k') | athena/content/app_activity.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/content/app_activity.h
diff --git a/athena/content/app_activity.h b/athena/content/app_activity.h
index 044b346bd1b6770d9acd505c035426b51a2dbca8..cfbe93d7fd538f7bba7b09dc8bc92bb39ae67245 100644
--- a/athena/content/app_activity.h
+++ b/athena/content/app_activity.h
@@ -8,6 +8,7 @@
#include "athena/activity/public/activity.h"
#include "athena/activity/public/activity_view_model.h"
#include "content/public/browser/web_contents_observer.h"
+#include "ui/gfx/image/image_skia.h"
namespace apps {
class ShellAppWindow;
@@ -29,6 +30,10 @@ class AppActivity : public Activity,
protected:
// Activity:
virtual athena::ActivityViewModel* GetActivityViewModel() OVERRIDE;
+ virtual void SetCurrentState(Activity::ActivityState state) OVERRIDE;
+ virtual ActivityState GetCurrentState() OVERRIDE;
+ virtual bool IsVisible() OVERRIDE;
+ virtual ActivityMediaState GetMediaState() OVERRIDE;
// ActivityViewModel:
virtual void Init() OVERRIDE;
@@ -36,6 +41,8 @@ class AppActivity : public Activity,
virtual base::string16 GetTitle() const OVERRIDE;
virtual bool UsesFrame() const OVERRIDE;
virtual views::View* GetContentsView() OVERRIDE;
+ virtual void CreateOverviewModeImage() OVERRIDE;
+ virtual gfx::ImageSkia GetOverviewModeImage() OVERRIDE;
// content::WebContentsObserver:
virtual void TitleWasSet(content::NavigationEntry* entry,
@@ -47,6 +54,12 @@ class AppActivity : public Activity,
scoped_ptr<apps::ShellAppWindow> app_window_;
views::WebView* web_view_;
+ // The current state for this activity.
+ ActivityState current_state_;
+
+ // The image which will be used in overview mode.
+ gfx::ImageSkia overview_mode_image_;
+
DISALLOW_COPY_AND_ASSIGN(AppActivity);
};
« no previous file with comments | « athena/content/DEPS ('k') | athena/content/app_activity.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698