Tray: Add drag-end and drop events

This commit is contained in:
Nishanth Shanmugham 2015-11-10 10:02:50 -06:00
parent f98147ea01
commit d1e8e71e3f
6 changed files with 31 additions and 0 deletions

View file

@ -262,6 +262,15 @@ const CGFloat kVerticalTitleMargin = 2;
trayIcon_->NotifyDragExited();
}
- (void)draggingEnded:(id <NSDraggingInfo>)sender {
trayIcon_->NotifyDragEnded();
}
- (BOOL)prepareForDragOperation:(id <NSDraggingInfo>)sender {
trayIcon_->NotifyDrop();
return YES;
}
- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender {
NSPasteboard* pboard = [sender draggingPasteboard];