mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
feat: add ImageView (#22738)
This commit is contained in:
13
lib/browser/api/views/image-view.js
Normal file
13
lib/browser/api/views/image-view.js
Normal 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;
|
||||
Reference in New Issue
Block a user