view: add ResizeArea class (#15752)
This commit is contained in:
parent
65099ab489
commit
47bf8e1bb3
6 changed files with 123 additions and 0 deletions
15
lib/browser/api/views/resize-area.js
Normal file
15
lib/browser/api/views/resize-area.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
'use strict'
|
||||
|
||||
const electron = require('electron')
|
||||
|
||||
const { View } = electron
|
||||
const { ResizeArea } = process.atomBinding('resize_area')
|
||||
|
||||
Object.setPrototypeOf(ResizeArea.prototype, View.prototype)
|
||||
|
||||
ResizeArea.prototype._init = function () {
|
||||
// Call parent class's _init.
|
||||
View.prototype._init.call(this)
|
||||
}
|
||||
|
||||
module.exports = ResizeArea
|
Loading…
Add table
Add a link
Reference in a new issue