view: add ResizeArea class (#15752)

This commit is contained in:
Cheng Zhao 2018-11-21 22:39:59 +09:00 committed by GitHub
parent 65099ab489
commit 47bf8e1bb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 123 additions and 0 deletions

View 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