Add a few more methods for NativeImage
This commit is contained in:
parent
aae576b484
commit
549df36f00
2 changed files with 18 additions and 0 deletions
|
@ -9,6 +9,10 @@
|
|||
#include "native_mate/wrappable.h"
|
||||
#include "ui/gfx/image/image.h"
|
||||
|
||||
namespace gfx {
|
||||
class Size;
|
||||
}
|
||||
|
||||
namespace atom {
|
||||
|
||||
namespace api {
|
||||
|
@ -28,6 +32,8 @@ class NativeImage : public mate::Wrappable {
|
|||
|
||||
private:
|
||||
v8::Handle<v8::Value> ToPNG(v8::Isolate* isolate);
|
||||
bool IsEmpty();
|
||||
gfx::Size GetSize();
|
||||
|
||||
gfx::Image image_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue