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

Unified Diff: athena/content/web_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, 6 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
Index: athena/content/web_activity.h
diff --git a/athena/content/web_activity.h b/athena/content/web_activity.h
index 840cceefb3862f4e5f23f6d8780aada9c2c8309e..04ec3f0466daae1cb7c306dfe9f7f92083cb49d1 100644
--- a/athena/content/web_activity.h
+++ b/athena/content/web_activity.h
@@ -20,6 +20,8 @@ class WebView;
namespace athena {
+class AthenaWebView;
+
class WebActivity : public Activity,
public ActivityViewModel,
public content::WebContentsObserver {
@@ -30,12 +32,16 @@ class WebActivity : public Activity,
protected:
// Activity:
virtual athena::ActivityViewModel* GetActivityViewModel() OVERRIDE;
+ virtual void SetCurrentState(ActivityStateTransition state) OVERRIDE;
+ virtual ActivityState GetCurrentState() OVERRIDE;
// ActivityViewModel:
virtual void Init() OVERRIDE;
virtual SkColor GetRepresentativeColor() OVERRIDE;
virtual base::string16 GetTitle() OVERRIDE;
virtual views::View* GetContentsView() OVERRIDE;
+ virtual void CreateOverviewModeImage() OVERRIDE;
+ virtual const gfx::ImageSkia GetOverviewModeImage() OVERRIDE;
// content::WebContentsObserver:
virtual void TitleWasSet(content::NavigationEntry* entry,
@@ -45,9 +51,14 @@ class WebActivity : public Activity,
private:
content::BrowserContext* browser_context_;
- content::WebContents* web_contents_;
const GURL url_;
- views::WebView* web_view_;
+ AthenaWebView* web_view_;
+
+ // The last requested state for this activity.
+ ActivityStateTransition last_requested_state_;
+
+ // The image which will be uded in overview mode.
+ gfx::ImageSkia overview_mode_image_;
DISALLOW_COPY_AND_ASSIGN(WebActivity);
};

Powered by Google App Engine
This is Rietveld 408576698