Chromium Code Reviews| Index: chrome/browser/media/desktop_media_list.h |
| diff --git a/chrome/browser/media/desktop_media_list.h b/chrome/browser/media/desktop_media_list.h |
| index d8b2e237f343cd13b8b39c5bfa21605329315296..e10778523838bf65e679c2e5afd04f47a6954aff 100644 |
| --- a/chrome/browser/media/desktop_media_list.h |
| +++ b/chrome/browser/media/desktop_media_list.h |
| @@ -9,6 +9,7 @@ |
| #include "base/strings/string16.h" |
| #include "base/time/time.h" |
| #include "content/public/browser/desktop_media_id.h" |
| +#include "ui/gfx/image/image.h" |
| #include "ui/gfx/image/image_skia.h" |
| class DesktopMediaListObserver; |
| @@ -56,6 +57,13 @@ class DesktopMediaList { |
| virtual int GetSourceCount() const = 0; |
| virtual const Source& GetSource(int index) const = 0; |
| + |
| + protected: |
| + // Create a image with an enlarged favicon on its center and black boundary. |
| + // If fails, an empty image will return. |
| + // The function is used to create a thumbnail for chrome tab preview. |
| + static gfx::ImageSkia CreateImageEncloseFavicon(gfx::Size size, |
|
miu
2015/12/12 00:00:33
naming nit: How about: CreateEnlargedFaviconImage(
|
| + gfx::Image& favicon); |
| }; |
| #endif // CHROME_BROWSER_MEDIA_DESKTOP_MEDIA_LIST_H_ |