TabPinned/TabUnpinnedイベントを使うようにした

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7240 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-09-16 09:01:52 +00:00
parent 89a072b7b7
commit 2ef43fcb8e

View File

@ -279,7 +279,10 @@ TreeStyleTabBrowser.prototype = {
b.mTabContainer.addEventListener('TabMove', this, true); b.mTabContainer.addEventListener('TabMove', this, true);
b.mTabContainer.addEventListener('SSTabRestoring', this, true); b.mTabContainer.addEventListener('SSTabRestoring', this, true);
b.mTabContainer.addEventListener('SSTabRestored', this, true); b.mTabContainer.addEventListener('SSTabRestored', this, true);
b.mTabContainer.addEventListener('DOMAttrModified', this, true); b.mTabContainer.addEventListener('TabPinned', this, true);
b.mTabContainer.addEventListener('TabUnpinned', this, true);
if (!this.isFloating)
b.mTabContainer.addEventListener('DOMAttrModified', this, true); // Tab Utilities
b.mTabContainer.addEventListener('mouseover', this, true); b.mTabContainer.addEventListener('mouseover', this, true);
b.mTabContainer.addEventListener('mouseout', this, true); b.mTabContainer.addEventListener('mouseout', this, true);
b.mTabContainer.addEventListener('dblclick', this, true); b.mTabContainer.addEventListener('dblclick', this, true);
@ -1576,7 +1579,10 @@ TreeStyleTabBrowser.prototype = {
b.mTabContainer.removeEventListener('TabMove', this, true); b.mTabContainer.removeEventListener('TabMove', this, true);
b.mTabContainer.removeEventListener('SSTabRestoring', this, true); b.mTabContainer.removeEventListener('SSTabRestoring', this, true);
b.mTabContainer.removeEventListener('SSTabRestored', this, true); b.mTabContainer.removeEventListener('SSTabRestored', this, true);
b.mTabContainer.removeEventListener('DOMAttrModified', this, true); b.mTabContainer.removeEventListener('TabPinned', this, true);
b.mTabContainer.removeEventListener('TabUnpinned', this, true);
if (!this.isFloating)
b.mTabContainer.removeEventListener('DOMAttrModified', this, true); // Tab Utilites
b.mTabContainer.removeEventListener('mouseover', this, true); b.mTabContainer.removeEventListener('mouseover', this, true);
b.mTabContainer.removeEventListener('mouseout', this, true); b.mTabContainer.removeEventListener('mouseout', this, true);
b.mTabContainer.removeEventListener('dblclick', this, true); b.mTabContainer.removeEventListener('dblclick', this, true);
@ -1927,6 +1933,12 @@ TreeStyleTabBrowser.prototype = {
case 'SSTabRestored': case 'SSTabRestored':
return this.onTabRestored(aEvent); return this.onTabRestored(aEvent);
case 'TabPinned':
return this.onPinTab(aEvent.originalTarget);
case 'TabUnpinned':
return this.onUnpinTab(aEvent.originalTarget);
case 'DOMAttrModified': case 'DOMAttrModified':
return this.onDOMAttrModified(aEvent); return this.onDOMAttrModified(aEvent);