feat: add ImageView (#22738)

This commit is contained in:
Cheng Zhao 2020-03-22 19:11:43 +09:00 committed by GitHub
parent af46c1ed8d
commit 341f643b81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 123 additions and 0 deletions

View file

@ -0,0 +1,13 @@
const electron = require('electron');
const { View } = electron;
const { ImageView } = process.electronBinding('image_view');
Object.setPrototypeOf(ImageView.prototype, View.prototype);
ImageView.prototype._init = function () {
// Call parent class's _init.
View.prototype._init.call(this);
};
module.exports = ImageView;