Convert all source files to JavaScript
This commit is contained in:
parent
403870a27e
commit
1f9691ae13
144 changed files with 11211 additions and 7301 deletions
28
atom/browser/api/lib/tray.js
Normal file
28
atom/browser/api/lib/tray.js
Normal file
|
@ -0,0 +1,28 @@
|
|||
var EventEmitter, Tray, deprecate;
|
||||
|
||||
deprecate = require('electron').deprecate;
|
||||
|
||||
EventEmitter = require('events').EventEmitter;
|
||||
|
||||
Tray = process.atomBinding('tray').Tray;
|
||||
|
||||
Tray.prototype.__proto__ = EventEmitter.prototype;
|
||||
|
||||
Tray.prototype._init = function() {
|
||||
|
||||
/* Deprecated. */
|
||||
deprecate.rename(this, 'popContextMenu', 'popUpContextMenu');
|
||||
deprecate.event(this, 'clicked', 'click');
|
||||
deprecate.event(this, 'double-clicked', 'double-click');
|
||||
deprecate.event(this, 'right-clicked', 'right-click');
|
||||
return deprecate.event(this, 'balloon-clicked', 'balloon-click');
|
||||
};
|
||||
|
||||
Tray.prototype.setContextMenu = function(menu) {
|
||||
this._setContextMenu(menu);
|
||||
|
||||
/* Keep a strong reference of menu. */
|
||||
return this.menu = menu;
|
||||
};
|
||||
|
||||
module.exports = Tray;
|
Loading…
Add table
Add a link
Reference in a new issue