From 0713e54fda51aa4b7ebdd6af5c2e30813efbdd88 Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Mon, 6 Dec 2010 21:04:52 +0900 Subject: [PATCH] move codes for drag and drop into JS code modules --- buildscript | 2 +- content/treestyletab/treestyletab.js | 2 +- content/treestyletab/treestyletab.xul | 2 - content/treestyletab/treestyletabbrowser.js | 14 +- ...treestyletabbrowser_tabpanelDNDObserver.js | 109 ------- modules/{ => lib}/animationManager.js | 4 +- modules/{ => lib}/autoScroll.js | 2 +- modules/{ => lib}/boxObject.js | 2 +- modules/{ => lib}/confirmWithTab.js | 4 +- modules/{ => lib}/extensions.js | 2 +- modules/{ => lib}/jsdeferred.js | 2 +- modules/{ => lib}/jstimer.jsm | 0 modules/{ => lib}/namespace.jsm | 0 modules/{ => lib}/prefs.js | 2 +- modules/{ => lib}/stringBundle.js | 2 +- .../tabbarDNDObserver.js | 293 ++++++++++-------- modules/tabpanelDNDObserver.js | 155 +++++++++ modules/utils.js | 16 +- 18 files changed, 359 insertions(+), 254 deletions(-) delete mode 100644 content/treestyletab/treestyletabbrowser_tabpanelDNDObserver.js rename modules/{ => lib}/animationManager.js (93%) rename modules/{ => lib}/autoScroll.js (95%) rename modules/{ => lib}/boxObject.js (95%) rename modules/{ => lib}/confirmWithTab.js (95%) rename modules/{ => lib}/extensions.js (95%) rename modules/{ => lib}/jsdeferred.js (99%) rename modules/{ => lib}/jstimer.jsm (100%) rename modules/{ => lib}/namespace.jsm (100%) rename modules/{ => lib}/prefs.js (94%) rename modules/{ => lib}/stringBundle.js (92%) rename content/treestyletab/treestyletabbrowser_tabbarDNDObserver.js => modules/tabbarDNDObserver.js (74%) create mode 100644 modules/tabpanelDNDObserver.js diff --git a/buildscript b/buildscript index 1feb63c9..7adc0c6e 160000 --- a/buildscript +++ b/buildscript @@ -1 +1 @@ -Subproject commit 1feb63c9d55e0aecfaa55fc49521e9250678993d +Subproject commit 7adc0c6e3866bb535ffd9f851afd8d0b7224eb9d diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index ccf4b2af..42e3e2b5 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -346,7 +346,7 @@ var TreeStyleTabService = { { var namespace = {}; Components.utils.import( - 'resource://treestyletab-modules/prefs.js', + 'resource://treestyletab-modules/lib/prefs.js', namespace ); var prefs = namespace.prefs; diff --git a/content/treestyletab/treestyletab.xul b/content/treestyletab/treestyletab.xul index 7692d152..d14d7425 100644 --- a/content/treestyletab/treestyletab.xul +++ b/content/treestyletab/treestyletab.xul @@ -19,8 +19,6 @@ ]]>