Merge pull request #3354 from nishanths/master

Add drag-entered and drag-exited events to Tray
This commit is contained in:
Cheng Zhao 2015-11-11 22:44:05 +08:00
commit 0a5b234e3d
7 changed files with 74 additions and 0 deletions

View file

@ -112,6 +112,10 @@ Emitted when the tray balloon is clicked.
Emitted when the tray balloon is closed because of timeout or user manually
closes it.
### Event: 'drop' _OS X_
Emitted when any dragged items are dropped on the tray icon.
### Event: 'drop-files' _OS X_
* `event`
@ -119,6 +123,18 @@ closes it.
Emitted when dragged files are dropped in the tray icon.
### Event: 'drag-enter' _OS X_
Emitted when a drag operation enters the tray icon.
### Event: 'drag-leave' _OS X_
Emitted when a drag operation exits the tray icon.
### Event: 'drag-end' _OS X_
Emitted when a drag operation ends on the tray or ends at another location.
## Methods
The `Tray` module has the following methods: