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

Unified Diff: athena/content/app_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/athena.gyp ('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 db90cfe1eeff03c675ac4f546426e883c00338bb..37ffd208b5c5a06b71019851682e67dfda6d8dfe 100644
--- a/athena/content/app_activity.h
+++ b/athena/content/app_activity.h
@@ -44,6 +44,7 @@ class AppActivity : 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;
@@ -86,6 +87,11 @@ class AppActivity : 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_;
+
DISALLOW_COPY_AND_ASSIGN(AppActivity);
};
« no previous file with comments | « athena/athena.gyp ('k') | athena/content/app_activity.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698