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

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: 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') | athena/content/app_activity.h » ('J')
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..44537bdc602328ef3d5733fa5262eb4f58e5dda2 100644
--- a/athena/activity/public/activity_view_model.h
+++ b/athena/activity/public/activity_view_model.h
@@ -6,14 +6,12 @@
#define ATHENA_ACTIVITY_PUBLIC_ACTIVITY_VIEW_MODEL_H_
#include "athena/athena_export.h"
+#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
+#include "ui/gfx/image/image.h"
oshima 2014/09/22 16:10:27 forward decl should be enough
Mr4D (OOO till 08-26) 2014/09/23 19:07:33 Done.
typedef unsigned int SkColor;
-namespace gfx {
-class ImageSkia;
-}
-
namespace views {
class View;
class Widget;
@@ -58,8 +56,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.
// Note: We intentionally do not use a layer / view for this.
- virtual gfx::ImageSkia GetOverviewModeImage() = 0;
+ virtual scoped_ptr<gfx::Image> GetOverviewModeImage() = 0;
oshima 2014/09/22 16:10:28 Is there particular reason why this needs to be sc
sadrul 2014/09/22 16:13:32 Why this change?
Mr4D (OOO till 08-26) 2014/09/23 19:07:33 Hmm. I was under the misconception that Image was
Mr4D (OOO till 08-26) 2014/09/23 19:07:33 I have found the PNG decoding to be done with gfx:
oshima 2014/09/24 00:40:00 gfx::Image stores images in ImageStorage, which is
// Prepares the contents view for overview.
virtual void PrepareContentsForOverview() = 0;
« no previous file with comments | « no previous file | athena/content/app_activity.h » ('j') | athena/content/app_activity.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698