Load HICON directly in NotifyIcon
This commit is contained in:
parent
67d9ae27c3
commit
9e26e5c121
7 changed files with 62 additions and 36 deletions
|
@ -52,11 +52,12 @@ class NativeImage : public mate::Wrappable<NativeImage> {
|
|||
static void BuildPrototype(v8::Isolate* isolate,
|
||||
v8::Local<v8::ObjectTemplate> prototype);
|
||||
|
||||
const gfx::Image& image() const { return image_; }
|
||||
#if defined(OS_WIN)
|
||||
HICON hicon() const { return hicon_.get(); }
|
||||
HICON GetHICON();
|
||||
#endif
|
||||
|
||||
const gfx::Image& image() const { return image_; }
|
||||
|
||||
protected:
|
||||
NativeImage(v8::Isolate* isolate, const gfx::Image& image);
|
||||
#if defined(OS_WIN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue