update custom event type for Multiple Tab Handler

This commit is contained in:
SHIMODA Hiroshi 2010-12-01 09:51:10 +09:00
parent a72ee733a8
commit bd796b1d9a

View File

@ -328,7 +328,7 @@ TreeStyleTabBrowser.prototype = {
tabContainer.addEventListener('dragover', this, false); tabContainer.addEventListener('dragover', this, false);
tabContainer.addEventListener('drop', this, true); tabContainer.addEventListener('drop', this, true);
tabContainer.addEventListener('dragdrop', this, false); // for Firefox 3.5 or older tabContainer.addEventListener('dragdrop', this, false); // for Firefox 3.5 or older
tabContainer.addEventListener('MultipleTabHandler:StartTabsDrag', this, true); tabContainer.addEventListener('MultipleTabHandler:TabsDragStart', this, true);
var strip = this.tabStrip; var strip = this.tabStrip;
strip.addEventListener('dragstart', this, false); strip.addEventListener('dragstart', this, false);
@ -1629,7 +1629,7 @@ TreeStyleTabBrowser.prototype = {
tabContainer.removeEventListener('dragover', this, false); tabContainer.removeEventListener('dragover', this, false);
tabContainer.removeEventListener('drop', this, true); tabContainer.removeEventListener('drop', this, true);
tabContainer.removeEventListener('dragdrop', this, false); // for Firefox 3.5 or older tabContainer.removeEventListener('dragdrop', this, false); // for Firefox 3.5 or older
tabContainer.removeEventListener('MultipleTabHandler:StartTabsDrag', this, true); tabContainer.removeEventListener('MultipleTabHandler:TabsDragStart', this, true);
var strip = this.tabStrip; var strip = this.tabStrip;
strip.removeEventListener('dragstart', this, false); strip.removeEventListener('dragstart', this, false);
@ -2081,7 +2081,7 @@ TreeStyleTabBrowser.prototype = {
return; return;
// cancel tab dragging by Multiple Tab // cancel tab dragging by Multiple Tab
case 'MultipleTabHandler:StartTabsDrag': case 'MultipleTabHandler:TabsDragStart':
return aEvent.preventDefault(); return aEvent.preventDefault();
} }
}, },
@ -3573,6 +3573,7 @@ TreeStyleTabBrowser.prototype = {
var draggedTabs = tabsInfo.draggedTabs; var draggedTabs = tabsInfo.draggedTabs;
var draggedRoots = tabsInfo.draggedRoots; var draggedRoots = tabsInfo.draggedRoots;
var targetBrowser = this.mTabBrowser; var targetBrowser = this.mTabBrowser;
var tabs = this.getTabsArray(targetBrowser); var tabs = this.getTabsArray(targetBrowser);