キャンセルできないイベント
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5645 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
52b959c954
commit
ebdea3391b
@ -1019,7 +1019,7 @@ catch(e) {
|
||||
|
||||
/* PUBLIC API */
|
||||
let event = document.createEvent('Events');
|
||||
event.initEvent('TreeStyleTabFocusSwitchingKeyDown', true, true);
|
||||
event.initEvent('TreeStyleTabFocusSwitchingKeyDown', true, false);
|
||||
event.sourceEvent = aEvent;
|
||||
this.browser.dispatchEvent(event);
|
||||
},
|
||||
@ -1061,7 +1061,7 @@ catch(e) {
|
||||
) {
|
||||
/* PUBLIC API */
|
||||
let event = document.createEvent('Events');
|
||||
event.initEvent('TreeStyleTabFocusSwitchingStart', true, true);
|
||||
event.initEvent('TreeStyleTabFocusSwitchingStart', true, false);
|
||||
event.scrollDown = scrollDown;
|
||||
event.scrollUp = scrollUp;
|
||||
event.standBy = standBy;
|
||||
@ -1076,7 +1076,7 @@ catch(e) {
|
||||
/* PUBLIC API */
|
||||
let (event) {
|
||||
event = document.createEvent('Events');
|
||||
event.initEvent('TreeStyleTabFocusSwitchingEnd', true, true);
|
||||
event.initEvent('TreeStyleTabFocusSwitchingEnd', true, false);
|
||||
event.scrollDown = scrollDown;
|
||||
event.scrollUp = scrollUp;
|
||||
event.standBy = standBy;
|
||||
|
@ -1072,7 +1072,7 @@ TreeStyleTabBrowser.prototype = {
|
||||
if (aOldPosition == aNewPosition) return;
|
||||
|
||||
var event = document.createEvent('Events');
|
||||
event.initEvent(aType, true, true);
|
||||
event.initEvent(aType, true, false);
|
||||
event.oldPosition = aOldPosition;
|
||||
event.newPosition = aNewPosition;
|
||||
this.mTabBrowser.dispatchEvent(event);
|
||||
@ -3076,7 +3076,7 @@ TreeStyleTabBrowser.prototype = {
|
||||
) {
|
||||
/* PUBLIC API */
|
||||
let event = document.createEvent('Events');
|
||||
event.initEvent('TreeStyleTabAttached', true, true);
|
||||
event.initEvent('TreeStyleTabAttached', true, false);
|
||||
event.parentTab = aParent;
|
||||
aChild.dispatchEvent(event);
|
||||
return;
|
||||
@ -3182,7 +3182,7 @@ TreeStyleTabBrowser.prototype = {
|
||||
|
||||
/* PUBLIC API */
|
||||
var event = document.createEvent('Events');
|
||||
event.initEvent('TreeStyleTabAttached', true, true);
|
||||
event.initEvent('TreeStyleTabAttached', true, false);
|
||||
event.parentTab = aParent;
|
||||
aChild.dispatchEvent(event);
|
||||
},
|
||||
@ -3223,7 +3223,7 @@ TreeStyleTabBrowser.prototype = {
|
||||
|
||||
/* PUBLIC API */
|
||||
var event = document.createEvent('Events');
|
||||
event.initEvent('TreeStyleTabParted', true, true);
|
||||
event.initEvent('TreeStyleTabParted', true, false);
|
||||
aChild.dispatchEvent(event);
|
||||
|
||||
if (this.isGroupTab(parentTab) && !this.hasChildTabs(parentTab)) {
|
||||
@ -3567,7 +3567,7 @@ TreeStyleTabBrowser.prototype = {
|
||||
|
||||
/* PUBLIC API */
|
||||
var event = document.createEvent('Events');
|
||||
event.initEvent('TreeStyleTabCollapsedStateChange', true, true);
|
||||
event.initEvent('TreeStyleTabCollapsedStateChange', true, false);
|
||||
event.collapsed = aCollapse;
|
||||
aTab.dispatchEvent(event);
|
||||
|
||||
|
@ -517,7 +517,7 @@ TreeStyleTabBrowserAutoHide.prototype = {
|
||||
{
|
||||
/* PUBLIC API */
|
||||
var event = document.createEvent('Events');
|
||||
event.initEvent('TreeStyleTabAutoHideStateChanging', true, true);
|
||||
event.initEvent('TreeStyleTabAutoHideStateChanging', true, false);
|
||||
event.shown = this.expanded;
|
||||
event.state = this.state;
|
||||
this.mOwner.mTabBrowser.dispatchEvent(event);
|
||||
@ -527,7 +527,7 @@ TreeStyleTabBrowserAutoHide.prototype = {
|
||||
{
|
||||
/* PUBLIC API */
|
||||
var event = document.createEvent('Events');
|
||||
event.initEvent('TreeStyleTabAutoHideStateChange', true, true);
|
||||
event.initEvent('TreeStyleTabAutoHideStateChange', true, false);
|
||||
event.shown = this.expanded;
|
||||
event.state = this.state;
|
||||
event.xOffset = this.XOffset;
|
||||
|
Loading…
x
Reference in New Issue
Block a user