Support toDataURL without 1x representation

This commit is contained in:
Kevin Sawicki 2017-03-06 13:24:50 -08:00
parent 8eaf48e552
commit 0bbbeb307e
3 changed files with 14 additions and 6 deletions

View file

@ -83,6 +83,7 @@ class NativeImage : public mate::Wrappable<NativeImage> {
const gfx::Rect& rect);
std::string ToDataURL();
bool IsEmpty();
bool HasRepresentation(float scale_factor);
gfx::Size GetSize();
float GetAspectRatio();