Chromium Code Reviews| 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; |