private void FinalizeDragPerformed(bool revertExpanded)
{
this.DragCleanup(revertExpanded);
DragAndDrop.AcceptDrag();
List<UnityEngine.Object> list = new List<UnityEngine.Object>(DragAndDrop.objectReferences);
bool draggedItemsFromOwnTreeView = true;
if (((list.Count > 0) && (list[0] != null)) && (TreeViewUtility.FindItemInList<TreeViewItem>(list[0].GetInstanceID(), this.m_TreeView.data.GetVisibleRows()) == null))
{
draggedItemsFromOwnTreeView = false;
}
int[] draggedIDs = new int[list.Count];
for (int i = 0; i < list.Count; i++)
{
if (list[i] != null)
{
draggedIDs[i] = list[i].GetInstanceID();
}
}
this.m_TreeView.NotifyListenersThatDragEnded(draggedIDs, draggedItemsFromOwnTreeView);
}