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

Unified Diff: athena/content/web_activity.h

Issue 694413005: athena: Introduce ActivityView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 1 month 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/app_activity_proxy.cc ('k') | athena/content/web_activity.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/content/web_activity.h
diff --git a/athena/content/web_activity.h b/athena/content/web_activity.h
index d3ee98d9dacc6a7f9cd29a86cd9145b2eaf01236..1b978b1999a0a0b92a890c90e414023137aeedca 100644
--- a/athena/content/web_activity.h
+++ b/athena/content/web_activity.h
@@ -62,6 +62,7 @@ class WebActivity : public Activity,
SkColor GetRepresentativeColor() const override;
base::string16 GetTitle() const override;
gfx::ImageSkia GetIcon() const override;
+ void SetActivityView(ActivityView* activity_view) override;
bool UsesFrame() const override;
views::View* GetContentsView() override;
gfx::ImageSkia GetOverviewModeImage() override;
@@ -105,6 +106,11 @@ class WebActivity : public Activity,
// The content proxy.
scoped_ptr<ContentProxy> content_proxy_;
+ // WebActivity does not take ownership of |activity_view_|. If the view is
+ // destroyed before the activity, then it must be reset using
+ // SetActivityView(nullptr).
+ ActivityView* activity_view_;
+
base::WeakPtrFactory<WebActivity> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(WebActivity);
« no previous file with comments | « athena/content/app_activity_proxy.cc ('k') | athena/content/web_activity.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698