| 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);
|
| };
|
|
|