Store ico image in HCION

This commit is contained in:
Cheng Zhao 2016-05-20 11:31:02 +09:00
parent d5f3e5d59a
commit 7c34d8333c
2 changed files with 38 additions and 14 deletions

View file

@ -11,6 +11,10 @@
#include "native_mate/wrappable.h"
#include "ui/gfx/image/image.h"
#if defined(OS_WIN)
#include "base/win/scoped_gdi_object.h"
#endif
class GURL;
namespace base {
@ -52,6 +56,9 @@ class NativeImage : public mate::Wrappable<NativeImage> {
protected:
NativeImage(v8::Isolate* isolate, const gfx::Image& image);
#if defined(OS_WIN)
NativeImage(v8::Isolate* isolate, base::win::ScopedHICON&& hicon);
#endif
~NativeImage() override;
private:
@ -69,6 +76,10 @@ class NativeImage : public mate::Wrappable<NativeImage> {
// Determine if the image is a template image.
bool IsTemplateImage();
#if defined(OS_WIN)
base::win::ScopedHICON hicon_;
#endif
gfx::Image image_;
DISALLOW_COPY_AND_ASSIGN(NativeImage);