Store ico image in HCION
This commit is contained in:
parent
d5f3e5d59a
commit
7c34d8333c
2 changed files with 38 additions and 14 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue