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

Unified Diff: athena/content/app_activity_proxy.h

Issue 548633005: Adding overview / layer framework to Activities so that unloaded / sleeping activities can be shown… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Created 6 years, 3 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/app_activity_proxy.h
diff --git a/athena/content/app_activity_proxy.h b/athena/content/app_activity_proxy.h
index 6ea263ffcebb870047e47a17abd4daf0e3c790ce..f106f6f5ab62ed0a9d9c8820c6d4d80dad08ff5f 100644
--- a/athena/content/app_activity_proxy.h
+++ b/athena/content/app_activity_proxy.h
@@ -9,10 +9,13 @@
#include "athena/activity/public/activity.h"
#include "athena/activity/public/activity_view_model.h"
+#include "athena/content/content_proxy.h"
+#include "base/memory/scoped_ptr.h"
#include "ui/gfx/image/image_skia.h"
namespace athena {
+class AppActivity;
class AppActivityRegistry;
// This activity object is a proxy placeholder for the application while it is
@@ -24,7 +27,8 @@ class AppActivityProxy : public Activity,
// The |replaced_activity| is the activity which this proxy replaces. Note
// that after the Init() call got called, this object will become invalid.
// The |creator| should be informed when the object goes away.
- AppActivityProxy(Activity* replaced_activity, AppActivityRegistry* creator);
+ AppActivityProxy(AppActivity* replaced_activity,
+ AppActivityRegistry* creator);
protected:
virtual ~AppActivityProxy();
@@ -43,7 +47,6 @@ class AppActivityProxy : 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;
virtual void PrepareContentsForOverview() OVERRIDE;
virtual void ResetContentsView() OVERRIDE;
@@ -55,17 +58,19 @@ class AppActivityProxy : public Activity,
// The presentation values.
const base::string16 title_;
- const gfx::ImageSkia image_;
const SkColor color_;
// The activity which gets replaced. It is used to sort the activity against
// upon initialization. Once moved, this value gets reset since the object
// can go away at any time.
- Activity* replaced_activity_;
+ AppActivity* replaced_activity_;
// The associated view.
views::View* view_;
+ // The content proxy.
+ scoped_ptr<ContentProxy> content_proxy_;
+
DISALLOW_COPY_AND_ASSIGN(AppActivityProxy);
};

Powered by Google App Engine
This is Rietveld 408576698