diff --git a/mozilla/toolkit/content/widgets/colorpicker.xml b/mozilla/toolkit/content/widgets/colorpicker.xml
new file mode 100644
index 00000000000..37a47777ffc
--- /dev/null
+++ b/mozilla/toolkit/content/widgets/colorpicker.xml
@@ -0,0 +1,574 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0) {
+ this.selectCell(cells[0]);
+ this.hoverCell(this.mSelectedCell);
+ }
+ return null;
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0)
+ return results[0];
+ }
+ return null;
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 36 && event.keyCode < 41)) && !this.mOpen)
+
+ this.showPopup();
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/mozilla/toolkit/content/widgets/dialog.xml b/mozilla/toolkit/content/widgets/dialog.xml
new file mode 100644
index 00000000000..e7c8f1b642d
--- /dev/null
+++ b/mozilla/toolkit/content/widgets/dialog.xml
@@ -0,0 +1,325 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ null
+ (function(event) {
+ if (!document.documentElement.cancelDialog())
+ event.preventDefault();
+ })
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (screen.availLeft + screen.availWidth))
+ newX = (screen.availLeft + screen.availWidth) - window.outerWidth - 20;
+
+ if (newY < screen.availTop)
+ newY = screen.availTop + 20;
+ if ((newY + window.outerHeight) > (screen.availTop + screen.availHeight))
+ newY = (screen.availTop + screen.availHeight) - window.outerHeight - 60;
+
+ window.moveTo( newX, newY );
+ ]]>
+
+
+
+
+
+ 0 ? xOffset : 0;
+ yOffset = yOffset > 0 ? yOffset : 0;
+ window.moveTo(xOffset, yOffset);
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ // see bug 63370 for details
+ var localeService = Components.classes["@mozilla.org/intl/nslocaleservice;1"]
+ .getService(Components.interfaces.nsILocaleService);
+ var stringBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"]
+ .getService(Components.interfaces.nsIStringBundleService);
+ var bundleURL = "chrome://global/locale/dialog.properties";
+ this._mStrBundle = stringBundleService.createBundle(bundleURL, localeService.GetApplicationLocale());
+ }
+ return this._mStrBundle;
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/mozilla/toolkit/content/widgets/general.xml b/mozilla/toolkit/content/widgets/general.xml
new file mode 100644
index 00000000000..596503e7122
--- /dev/null
+++ b/mozilla/toolkit/content/widgets/general.xml
@@ -0,0 +1,343 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+ false
+
+
+
+
+
+ this._observers[aTopic].push({ callback: aObserver, params: aParams });
+
+
+
+
+
+
+
+
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/mozilla/toolkit/content/widgets/groupbox.xml b/mozilla/toolkit/content/widgets/groupbox.xml
new file mode 100644
index 00000000000..76a7be3e114
--- /dev/null
+++ b/mozilla/toolkit/content/widgets/groupbox.xml
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/mozilla/toolkit/content/widgets/listbox.xml b/mozilla/toolkit/content/widgets/listbox.xml
new file mode 100644
index 00000000000..5bcc37bcafc
--- /dev/null
+++ b/mozilla/toolkit/content/widgets/listbox.xml
@@ -0,0 +1,963 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0
+ 0
+ false
+ null
+ null
+ null
+ 0
+ ""
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0 ? this.getIndexOfItem(this.selectedItems[0]) : -1;
+ ]]>
+ = 0)
+ this.selectItem(this.getItemAtIndex(val));
+ else
+ this.clearSelection();
+ ]]>
+
+
+
+ 0 ? this.selectedItems[0] : null;
+ ]]>
+
+
+
+
+
+ 0)
+ return this.selectedItem.value;
+ else
+ return null;
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ = 0; --i)
+ this.selectedItems[i].selected = false;
+
+ this.selectedItems.splice(0, this.selectedItems.length);
+ }
+ this._selectionStart = null;
+ this._fireOnSelect();
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ return this.listBoxObject.getIndexOfItem(item);
+
+
+
+
+
+ return this.listBoxObject.getItemAtIndex(index);
+
+
+
+
+
+ return this.listBoxObject.ensureIndexIsVisible(index);
+
+
+
+
+
+ return this.ensureIndexIsVisible(this.listBoxObject.getIndexOfItem(element));
+
+
+
+
+
+ return this.listBoxObject.scrollToIndex(index);
+
+
+
+
+ return this.listBoxObject.getNumberOfVisibleRows();
+
+
+
+
+ return this.listBoxObject.getIndexOfFirstVisibleRow();
+
+
+
+
+ return this.listBoxObject.getRowCount();
+
+
+
+
+
+
+
+
+
+
+
+
+ 1 )
+ this.removeItemFromSelection(this.selectedItems[l-1]);
+ if ( l <= 2 )
+ this._isDownSelection=0;
+ }
+ else {
+ this.addItemToSelection(n);
+ this._isUpSelection=1;
+ }
+ }
+ ]]>
+
+
+ 1 )
+ this.removeItemFromSelection(this.selectedItems[l-1]);
+ if ( l <= 2 )
+ this._isUpSelection=0;
+ }
+ else {
+ this.addItemToSelection(n);
+ this._isDownSelection=1;
+ }
+ }
+ ]]>
+
+
+
+
+
+ = count - v )
+ n=this.getItemAtIndex(count - 1);
+ else {
+ n = this.getNextItem(this.selectedItems[l-1], v);
+ var newIndex = i + v;
+ if ( ! n || newIndex > count - v ) {
+ newIndex = count - v;
+ n = this.getItemAtIndex(newIndex + this.getIndexOfItem(this.selectedItems[l-1]) - i);
+ }
+ this.scrollToIndex(newIndex);
+ }
+ this.timedSelect(n, 500);
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+ 0 &&
+ !event.altKey && !event.ctrlKey && !event.shiftKey && !event.metaKey) {
+ var key = String.fromCharCode(event.charCode);
+ key = key.toLowerCase();
+ if (event.timeStamp - this._lastKeyTime > 1000)
+ this._incrementalString = key;
+ else {
+ if (this._incrementalString.length != 1 || this._incrementalString.charAt(0) != key.charAt(0))
+ this._incrementalString += key;
+ }
+ this._lastKeyTime = event.timeStamp;
+
+ var l = this.selectedItems.length;
+ var c = -1;
+ if (l > 0)
+ c = this.getIndexOfItem(this.selectedItems[l-1]);
+ var rowCount = this.getRowCount();
+ var start = 1;
+
+ if (this._incrementalString.length > 1) {
+ start = 0;
+ if (c < 0)
+ c = 0;
+ }
+
+ for (var i = 0; i < rowCount; i++) {
+ var k = (i + start + c) % rowCount;
+ var item = this.getItemAtIndex(k); //listitem
+ var cellText = item.getAttribute("label");
+ cellText = cellText.toLowerCase();
+ if (cellText.search(this._incrementalString) == 0) {
+ this._isUpSelection=0;
+ this._isDownSelection=0;
+ this.ensureIndexIsVisible(k);
+ this.timedSelect(item, 500);
+ break;
+ }
+ }
+ }
+ ]]>
+
+
+
+
+
+
+
+ this.addEventListener("DOMMouseScroll", this._handleMouseScroll, true);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/mozilla/toolkit/content/widgets/menu.xml b/mozilla/toolkit/content/widgets/menu.xml
new file mode 100644
index 00000000000..dd1ea28f03a
--- /dev/null
+++ b/mozilla/toolkit/content/widgets/menu.xml
@@ -0,0 +1,123 @@
+
+
+
diff --git a/mozilla/toolkit/content/widgets/menulist.xml b/mozilla/toolkit/content/widgets/menulist.xml
new file mode 100644
index 00000000000..1696086476b
--- /dev/null
+++ b/mozilla/toolkit/content/widgets/menulist.xml
@@ -0,0 +1,473 @@
+
+
+
diff --git a/mozilla/toolkit/content/widgets/nativescrollbar.xml b/mozilla/toolkit/content/widgets/nativescrollbar.xml
new file mode 100644
index 00000000000..03e47f3fb68
--- /dev/null
+++ b/mozilla/toolkit/content/widgets/nativescrollbar.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/mozilla/toolkit/content/widgets/popup.xml b/mozilla/toolkit/content/widgets/popup.xml
new file mode 100644
index 00000000000..1f4bef35768
--- /dev/null
+++ b/mozilla/toolkit/content/widgets/popup.xml
@@ -0,0 +1,650 @@
+
+
+
+
diff --git a/mozilla/toolkit/content/widgets/scrollbar.xml b/mozilla/toolkit/content/widgets/scrollbar.xml
new file mode 100644
index 00000000000..3013f7ab3bd
--- /dev/null
+++ b/mozilla/toolkit/content/widgets/scrollbar.xml
@@ -0,0 +1,77 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ if (navigator.platform.indexOf("Mac") != -1)
+ this.initScrollbar();
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/mozilla/toolkit/content/widgets/scrollbox.xml b/mozilla/toolkit/content/widgets/scrollbox.xml
new file mode 100644
index 00000000000..29047edaa83
--- /dev/null
+++ b/mozilla/toolkit/content/widgets/scrollbox.xml
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mozilla/toolkit/content/widgets/spinbuttons.xml b/mozilla/toolkit/content/widgets/spinbuttons.xml
new file mode 100644
index 00000000000..dc4060e9695
--- /dev/null
+++ b/mozilla/toolkit/content/widgets/spinbuttons.xml
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/mozilla/toolkit/content/widgets/splitter.xml b/mozilla/toolkit/content/widgets/splitter.xml
new file mode 100644
index 00000000000..b54a0a95069
--- /dev/null
+++ b/mozilla/toolkit/content/widgets/splitter.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mozilla/toolkit/content/widgets/stringbundle.xml b/mozilla/toolkit/content/widgets/stringbundle.xml
new file mode 100644
index 00000000000..2a9ae82daa8
--- /dev/null
+++ b/mozilla/toolkit/content/widgets/stringbundle.xml
@@ -0,0 +1,85 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ null
+
+
+
+
+
diff --git a/mozilla/toolkit/content/widgets/text.xml b/mozilla/toolkit/content/widgets/text.xml
new file mode 100644
index 00000000000..a3388df4673
--- /dev/null
+++ b/mozilla/toolkit/content/widgets/text.xml
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/mozilla/toolkit/content/widgets/tree.xml b/mozilla/toolkit/content/widgets/tree.xml
new file mode 100644
index 00000000000..ceee07f2789
--- /dev/null
+++ b/mozilla/toolkit/content/widgets/tree.xml
@@ -0,0 +1,1070 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ this.addEventListener("DOMMouseScroll", this._handleMouseScroll, true);
+ if (navigator.platform.indexOf("Mac") != -1)
+ this.pageUpOrDownMovesSelection = false;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+
+
+ -1
+
+
+ -1
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+
+
+
+ 0
+ ""
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0) {
+ currentX += cw;
+ if (currentX - (cw*aThresh) > aX)
+ return col;
+ }
+ lastCol = col;
+ }
+ col = col.boxObject.nextSibling;
+ }
+
+ if (aPos) aPos.value = "after";
+ return lastCol;
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ = 0) {
+ this.treeBoxObject.selection.select(parentIndex);
+ this.treeBoxObject.ensureRowIsVisible(parentIndex);
+ }
+ }
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ this.selectionTail) {
+ this.treeBoxObject.selection.toggleSelect(c);
+ this.currentIndex = c + 1;
+ }
+ else
+ this.treeBoxObject.selection.toggleSelect(c + 1);
+ }
+ else {
+ this.treeBoxObject.selection.clearSelection();
+ this.selectionHead = c;
+ this.treeBoxObject.selection.rangedSelect(c, c + 1, true);
+ }
+ this.selectionTail = c + 1;
+ this.treeBoxObject.ensureRowIsVisible(c + 1);
+ ]]>
+
+
+
+
+
+
+
+
+ 0) {
+ var p = this.treeBoxObject.getPageCount();
+ if (f - p >= 0)
+ i = c - p;
+ else
+ i = c - f;
+ this.treeBoxObject.scrollByPages(-1);
+ }
+ this.treeBoxObject.selection.timedSelect(i, this._selectDelay);
+ ]]>
+
+
+
+
+
+ 0) {
+ var p = this.treeBoxObject.getPageCount();
+ if (f - p >= 0)
+ i = c - p;
+ else
+ i = c - f;
+ this.treeBoxObject.scrollByPages(-1);
+ }
+ if (c == this.selectionTail) {
+ if (this.selectionHead < this.selectionTail) {
+ if (i < this.selectionHead) {
+ this.treeBoxObject.selection.clearRange(c, this.selectionHead + 1);
+ this.treeBoxObject.selection.rangedSelect(this.selectionHead - 1, i, true);
+ }
+ else {
+ this.treeBoxObject.selection.clearRange(c, i + 1);
+ this.currentIndex = i;
+ }
+ }
+ else
+ this.treeBoxObject.selection.rangedSelect(c - 1, i, true);
+ }
+ else {
+ this.treeBoxObject.selection.clearSelection();
+ this.selectionHead = c;
+ this.treeBoxObject.selection.rangedSelect(c, i, true);
+ }
+ this.selectionTail = i;
+ ]]>
+
+
+ this.selectionTail) {
+ if (i > this.selectionHead) {
+ this.treeBoxObject.selection.clearRange(c, this.selectionHead - 1);
+ this.treeBoxObject.selection.rangedSelect(this.selectionHead + 1, i, true);
+ }
+ else {
+ this.treeBoxObject.selection.clearRange(c, i - 1);
+ this.currentIndex = i;
+ }
+ }
+ else
+ this.treeBoxObject.selection.rangedSelect(c + 1, i, true);
+ }
+ else {
+ this.treeBoxObject.selection.clearSelection();
+ this.selectionHead = c;
+ this.treeBoxObject.selection.rangedSelect(c, i, true);
+ }
+ this.selectionTail = i;
+ ]]>
+
+
+ 0) {
+ var p = this.treeBoxObject.getPageCount();
+ if (f - p >= 0)
+ i = c - p;
+ else
+ i = c - f;
+ this.treeBoxObject.scrollByPages(-1);
+ }
+ this.currentIndex = i;
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0 &&
+ !event.altKey && !event.ctrlKey && !event.shiftKey && !event.metaKey) {
+ var key = String.fromCharCode(event.charCode);
+ key = key.toLowerCase();
+ if (event.timeStamp - this._lastKeyTime > 1000)
+ this._incrementalString = key;
+ else {
+ if (this._incrementalString.length != 1 || this._incrementalString.charAt(0) != key.charAt(0))
+ this._incrementalString += key;
+ }
+ this._lastKeyTime = event.timeStamp;
+
+ var primarycol = this.treeBoxObject.getKeyColumnIndex();
+ var colID = this.treeBoxObject.getColumnID(primarycol);
+ var rowCount = this.treeBoxObject.view.rowCount;
+ var start = 1;
+
+ if (this._incrementalString.length > 1) {
+ start = 0;
+ if (c < 0)
+ c = 0;
+ }
+
+ for (var i = 0; i < rowCount; i++) {
+ var l = (i + start + c) % rowCount;
+ var cellText = this.treeBoxObject.view.getCellText(l, colID);
+ cellText = cellText.toLowerCase();
+ if (cellText.search(this._incrementalString) == 0) {
+ this.selectionHead = -1;
+ this.selectionTail = -1;
+ this.treeBoxObject.selection.timedSelect(l, this._selectDelay);
+ this.treeBoxObject.ensureRowIsVisible(l);
+ break;
+ }
+ }
+ }
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ if ("_ensureColumnOrder" in this.parentNode)
+ this.parentNode._ensureColumnOrder();
+
+
+
+ -1
+
+
+
+
+
+
+
+
+
+
+ = 0 &&
+ b.view.isContainerOpen(row.value)) {
+ var parentIndex = b.view.getParentIndex(b.selection.currentIndex);
+ while (parentIndex >= 0 && parentIndex != row.value)
+ parentIndex = b.view.getParentIndex(parentIndex);
+ if (parentIndex == row.value)
+ b.selection.select(parentIndex);
+ }
+ b.view.toggleOpenState(row.value);
+ return;
+ }
+
+ if (! this.parentNode.singleSelection) {
+ var augment = event.ctrlKey || event.metaKey;
+ if (event.shiftKey) {
+ b.selection.rangedSelect(-1, row.value, augment);
+ b.ensureRowIsVisible(row.value);
+ return;
+ }
+ if (augment) {
+ b.selection.toggleSelect(row.value);
+ b.ensureRowIsVisible(row.value);
+ b.selection.currentIndex = row.value;
+ return;
+ }
+ }
+
+ /* We want to deselect all the selected items except what was
+ clicked, UNLESS it was a right-click. We have to do this
+ in click rather than mousedown so that you can drag a
+ selected group of items */
+
+ if (!col.value) return;
+ var column = document.getElementById(col.value);
+ var cycler = column.hasAttribute('cycler');
+
+ // if the last row has changed in between the time we
+ // mousedown and the time we click, don't fire the select handler.
+ // see bug #92366
+ if (!cycler && this._lastSelectedRow == row.value) {
+ b.selection.select(row.value);
+ b.ensureRowIsVisible(row.value);
+ }
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ this.parentNode.parentNode._columnsDirty = true;
+
+
+
+
+
+
+
+
+ 0 && sib.parentNode == this.parentNode)
+ return sib;
+ sib = sib.boxObject.previousSibling;
+ }
+ return null;
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0) ++visible;
+
+ if (visible > 1) {
+ window.addEventListener("mousemove", this.onDragMouseMove, false);
+ window.addEventListener("mouseup", this.onDragMouseUp, false);
+ document.treecolDragging = this;
+ this.mDragGesturing = true;
+ this.mStartDragX = event.clientX;
+ this.mStartDragY = event.clientY;
+ }
+ }
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/mozilla/toolkit/content/widgets/wizard.xml b/mozilla/toolkit/content/widgets/wizard.xml
new file mode 100644
index 00000000000..abbef61ce39
--- /dev/null
+++ b/mozilla/toolkit/content/widgets/wizard.xml
@@ -0,0 +1,505 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0
+
+ null
+ null
+ null
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ = this.pageCount)
+ return this._pageIndex;
+
+ this.currentPage = this.wizardPages[val];
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+ 0 ? btns[0] : document.getAnonymousElementByAttribute(this._wizardButtons, "dlgtype", aDlgType);
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (function() { document.documentElement.rewind(); })
+ (function() { document.documentElement.advance(); })
+ (function() { document.documentElement.advance(); })
+ (function() { document.documentElement.cancel(); })
+
+ (function(event) {
+ if (document.documentElement.cancel())
+ event.preventDefault();
+ })
+
+
+ // see bug 63370 for details
+ var localeService = Components.classes["@mozilla.org/intl/nslocaleservice;1"]
+ .getService(Components.interfaces.nsILocaleService);
+ var stringBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"].getService(Components.interfaces.nsIStringBundleService);
+ var bundleURL = "chrome://global-platform/locale/wizard.properties";
+ this._bundle = stringBundleService.createBundle(bundleURL, localeService.GetApplicationLocale());
+
+ // get anonymous content references
+ this._wizardHeader = document.getAnonymousElementByAttribute(this, "anonid", "Header");
+ this._wizardButtons = document.getAnonymousElementByAttribute(this, "anonid", "Buttons");
+ this._deck = document.getAnonymousElementByAttribute(this, "anonid", "Deck");
+
+ this._initWizardButton("back");
+ this._initWizardButton("next");
+ this._initWizardButton("finish");
+ this._initWizardButton("cancel");
+
+ this._initPages();
+
+ window.addEventListener("close", this._closeHandler, false);
+
+ // start off on the first page
+ this.pageCount = this.wizardPages.length;
+ this.advance();
+
+ // give focus to the first focusable element in the dialog
+ window.addEventListener("load", this._setInitialFocus, false);
+ ]]>
+
+
+
+ 0 ? els[0] : null;
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ null
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ this._wizardButtonDeck = document.getAnonymousElementByAttribute(this, "anonid", "WizardButtonDeck");
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/mozilla/toolkit/jar.mn b/mozilla/toolkit/jar.mn
index 07157c31db8..236ffe0daaa 100644
--- a/mozilla/toolkit/jar.mn
+++ b/mozilla/toolkit/jar.mn
@@ -8,7 +8,7 @@ toolkit.jar:
* content/global/customizeToolbar.xul (content/customizeToolbar.xul)
* content/global/customizeToolbar.js (content/customizeToolbar.js)
content/global/customizeToolbar.css (content/customizeToolbar.css)
-*+ content/global/viewZoomOverlay.js (content/viewZoomOverlay.js)
+*+ content/global/viewZoomOverlay.js (content/viewZoomOverlay.js)
content/global/widgets/autocomplete.xml (content/widgets/autocomplete.xml)
content/global/widgets/browser.xml (content/widgets/browser.xml)
content/global/widgets/tabbrowser.xml (content/widgets/tabbrowser.xml)
@@ -18,7 +18,27 @@ toolkit.jar:
content/global/widgets/checkbox.xml (content/widgets/checkbox.xml)
content/global/widgets/button.xml (content/widgets/button.xml)
content/global/widgets/toolbarbutton.xml (content/widgets/toolbarbutton.xml)
-
+ content/global/widgets/button.xml (content/widgets/button.xml)
+ content/global/widgets/checkbox.xml (content/widgets/checkbox.xml)
+ content/global/widgets/colorpicker.xml (content/widgets/colorpicker.xml)
+ content/global/widgets/dialog.xml (content/widgets/dialog.xml)
+ content/global/widgets/general.xml (content/widgets/general.xml)
+ content/global/widgets/groupbox.xml (content/widgets/groupbox.xml)
+ content/global/widgets/listbox.xml (content/widgets/listbox.xml)
+ content/global/widgets/menu.xml (content/widgets/menu.xml)
+ content/global/widgets/menulist.xml (content/widgets/menulist.xml)
+ content/global/widgets/popup.xml (content/widgets/popup.xml)
+ content/global/widgets/progressmeter.xml (content/widgets/progressmeter.xml)
+ content/global/widgets/scrollbar.xml (content/widgets/scrollbar.xml)
+ content/global/widgets/nativescrollbar.xml (content/widgets/nativescrollbar.xml)
+ content/global/widgets/scrollbox.xml (content/widgets/scrollbox.xml)
+ content/global/widgets/splitter.xml (content/widgets/splitter.xml)
+ content/global/widgets/spinbuttons.xml (content/widgets/spinbuttons.xml)
+ content/global/widgets/stringbundle.xml (content/widgets/stringbundle.xml)
+ content/global/widgets/text.xml (content/widgets/text.xml)
+ content/global/widgets/tree.xml (content/widgets/tree.xml)
+ content/global/widgets/wizard.xml (content/widgets/wizard.xml)
+*+ content/global/nsDragAndDrop.js (content/nsDragAndDrop.js)
en-US.jar:
+ locale/en-US/global/charset.dtd (locale/charset.dtd)
+ locale/en-US/global/finddialog.dtd (locale/finddialog.dtd)