electron/lib/browser/api/views/text-field.js

16 lines
345 B
JavaScript
Raw Normal View History

2020-03-20 13:28:31 -07:00
'use strict';
2018-05-24 16:26:17 +09:00
2020-03-20 13:28:31 -07:00
const electron = require('electron');
2018-05-24 16:26:17 +09:00
2020-03-20 13:28:31 -07:00
const { View } = electron;
const { TextField } = process.electronBinding('text_field');
2018-05-24 16:26:17 +09:00
2020-03-20 13:28:31 -07:00
Object.setPrototypeOf(TextField.prototype, View.prototype);
2018-05-24 16:26:17 +09:00
TextField.prototype._init = function () {
// Call parent class's _init.
2020-03-20 13:28:31 -07:00
View.prototype._init.call(this);
};
2018-05-24 16:26:17 +09:00
2020-03-20 13:28:31 -07:00
module.exports = TextField;