DropHelper.jsm File Reference

Go to the source code of this file.

Functions

Cu import ("resource://gre/modules/XPCOMUtils.jsm")
 

Variables

 EXPORTED_SYMBOLS
 
const Cc = Components.classes
 
const Ci = Components.interfaces
 
const Cr = Components.results
 
const Ce = Components.Exception
 
const Cu = Components.utils
 
const URI_GENERIC_ICON_XPINSTALL
 
const SB_MEDIALISTDUPLICATEFILTER_CONTRACTID
 
var DNDUtils
 
DNDUtils
MediaListViewSelectionTransferContext 
prototype
 
DNDUtils EntireMediaListViewTransferContext
 
DNDUtils MediaListTransferContext
 
const TYPE_X_SB_TRANSFER_MEDIA_LIST = "application/x-sb-transfer-media-list"
 
const TYPE_X_SB_TRANSFER_MEDIA_ITEMS = "application/x-sb-transfer-media-items"
 

Function Documentation

Cu import ( "resource://gre/modules/XPCOMUtils.jsm"  )

Variable Documentation

const Cc = Components.classes

Definition at line 51 of file DropHelper.jsm.

const Ce = Components.Exception

Definition at line 54 of file DropHelper.jsm.

Definition at line 52 of file DropHelper.jsm.

const Cr = Components.results

Definition at line 53 of file DropHelper.jsm.

const Cu = Components.utils

Definition at line 55 of file DropHelper.jsm.

var DNDUtils

Definition at line 80 of file DropHelper.jsm.

DNDUtils EntireMediaListViewTransferContext

Definition at line 286 of file DropHelper.jsm.

EXPORTED_SYMBOLS
Initial value:
= [ "DNDUtils",
"ExternalDropHandler",
"InternalDropHandler" ]

Definition at line 47 of file DropHelper.jsm.

DNDUtils MediaListTransferContext
Initial value:
= function (item, mediaList) {
this.item = item;
this.list = item;
this.source = mediaList;
this.count = 1;
}
DNDUtils.MediaListTransferContext.prototype = {
QueryInterface : function(iid) {
if (iid.equals(Components.interfaces.sbIMediaListTransferContext) ||
iid.equals(Components.interfaces.nsISupports))
return this;
throw Components.results.NS_NOINTERFACE;
}
}
const TYPE_X_SB_TRANSFER_MEDIA_ITEM = "application/x-sb-transfer-media-item"
var DNDUtils
Definition: DropHelper.jsm:80
sbOSDControlService prototype QueryInterface
var count
Definition: test_bug7406.js:32

Definition at line 332 of file DropHelper.jsm.

DNDUtils MediaListViewSelectionTransferContext prototype
Initial value:
= {
reset: function() {
var enumerator = Cc["@songbirdnest.com/Songbird/Library/EnumeratorWrapper;1"]
.createInstance(Ci.sbIMediaListEnumeratorWrapper);
enumerator.initialize(this._mediaListView
.selection
.selectedIndexedMediaItems);
this.items = enumerator;
this.indexedItems = this._mediaListView.selection.selectedIndexedMediaItems;
},
QueryInterface : function(iid) {
if (iid.equals(Components.interfaces.sbIMediaItemsTransferContext) ||
iid.equals(Components.interfaces.nsISupports))
return this;
throw Components.results.NS_NOINTERFACE;
}
}
sbOSDControlService prototype QueryInterface
const Cc
Definition: DropHelper.jsm:51
const Ci
Definition: DropHelper.jsm:52

Definition at line 258 of file DropHelper.jsm.

const SB_MEDIALISTDUPLICATEFILTER_CONTRACTID
Initial value:
=
"@songbirdnest.com/Songbird/Library/medialistduplicatefilter;1"

Definition at line 69 of file DropHelper.jsm.

const TYPE_X_SB_TRANSFER_MEDIA_ITEMS = "application/x-sb-transfer-media-items"

Definition at line 414 of file DropHelper.jsm.

const TYPE_X_SB_TRANSFER_MEDIA_LIST = "application/x-sb-transfer-media-list"

Definition at line 413 of file DropHelper.jsm.

const URI_GENERIC_ICON_XPINSTALL
Initial value:
=
"chrome://songbird/skin/base-elements/icon-generic-addon.png"

Definition at line 57 of file DropHelper.jsm.