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

Unified Diff: athena/activity/public/activity_view_model.h

Issue 591693002: Creating PNG images from web content to be used by OverviewMode navigation (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
« no previous file with comments | « no previous file | athena/content/app_activity.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/activity/public/activity_view_model.h
diff --git a/athena/activity/public/activity_view_model.h b/athena/activity/public/activity_view_model.h
index 7412af224946908dd9839dbb6584bb9f8cf4d1c9..ecda2f98c919d58e107e8cedca670b60b6f6954e 100644
--- a/athena/activity/public/activity_view_model.h
+++ b/athena/activity/public/activity_view_model.h
@@ -11,6 +11,7 @@
typedef unsigned int SkColor;
namespace gfx {
+class Image;
class ImageSkia;
}
@@ -58,8 +59,9 @@ class ATHENA_EXPORT ActivityViewModel {
// overview mode. The returned image can have no size if either a view exists
// or the activity has not yet been loaded. In that case
// GetRepresentativeColor() should be used to clear the preview area.
+ // The ownership gets passed to the caller.
oshima 2014/09/24 00:40:01 gfx::Image shares the internal storage, so this ma
Mr4D (OOO till 08-26) 2014/09/24 16:18:25 Since the ActivityViewModel does not keep a refere
// Note: We intentionally do not use a layer / view for this.
- virtual gfx::ImageSkia GetOverviewModeImage() = 0;
+ virtual gfx::Image GetOverviewModeImage() = 0;
oshima 2014/09/24 00:40:01 I think gfx::ImageSkia is enough. You may land it
// Prepares the contents view for overview.
virtual void PrepareContentsForOverview() = 0;
« no previous file with comments | « no previous file | athena/content/app_activity.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698