PKl+59Qcontent/global/about.xhtml %brandDTD; %licenseDTD; %globalDTD; ]> About:
&brandShortName;

&about.version; 2.0.0.3

PK$Z$6}ڣcontent/global/alerts/alert.js/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is mozilla.org code. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1998 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Scott MacGregor * Jens Bannmann * * Alternatively, the contents of this file may be used under the terms of * either the GNU General Public License Version 2 or later (the "GPL"), or * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), * in which case the provisions of the GPL or the LGPL are applicable instead * of those above. If you wish to allow use of your version of this file only * under the terms of either the GPL or the LGPL, and not to allow others to * use your version of this file under the terms of the MPL, indicate your * decision by deleting the provisions above and replace them with the notice * and other provisions required by the GPL or the LGPL. If you do not delete * the provisions above, a recipient may use your version of this file under * the terms of any one of the MPL, the GPL or the LGPL. * * ***** END LICENSE BLOCK ***** */ // Copied from nsILookAndFeel.h, see comments on eMetric_AlertNotificationOrigin const NS_ALERT_HORIZONTAL = 1; const NS_ALERT_LEFT = 2; const NS_ALERT_TOP = 4; var gFinalSize; var gCurrentSize = 1; var gSlideIncrement = 1; var gSlideTime = 10; var gOpenTime = 3000; // total time the alert should stay up once we are done animating. var gOrigin = 0; // Default value: alert from bottom right, sliding in vertically. var gAlertListener = null; var gAlertTextClickable = false; var gAlertCookie = ""; function prefillAlertInfo() { // unwrap all the args.... // arguments[0] --> the image src url // arguments[1] --> the alert title // arguments[2] --> the alert text // arguments[3] --> is the text clickable? // arguments[4] --> the alert cookie to be passed back to the listener // arguments[5] --> the alert origin reported by the look and feel // arguments[6] --> an optional callback listener (nsIObserver) switch (window.arguments.length) { default: case 7: gAlertListener = window.arguments[6]; case 6: gOrigin = window.arguments[5]; case 5: gAlertCookie = window.arguments[4]; case 4: gAlertTextClickable = window.arguments[3]; if (gAlertTextClickable) document.getElementById('alertTextLabel').setAttribute('clickable', true); case 3: document.getElementById('alertTextLabel').setAttribute('value', window.arguments[2]); case 2: document.getElementById('alertTitleLabel').setAttribute('value', window.arguments[1]); case 1: document.getElementById('alertImage').setAttribute('src', window.arguments[0]); case 0: break; } } function onAlertLoad() { // Read out our initial settings from prefs. try { var prefService = Components.classes["@mozilla.org/preferences-service;1"].getService(); prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService); var prefBranch = prefService.getBranch(null); gSlideIncrement = prefBranch.getIntPref("alerts.slideIncrement"); gSlideTime = prefBranch.getIntPref("alerts.slideIncrementTime"); gOpenTime = prefBranch.getIntPref("alerts.totalOpenTime"); } catch (ex) { } // Make sure that the contents are fixed at the window edge facing the // screen's center so that the window looks like "sliding in" and not // like "unfolding". The default packing of "start" only works for // vertical-bottom and horizontal-right positions, so we change it here. if (gOrigin & NS_ALERT_HORIZONTAL) { if (gOrigin & NS_ALERT_LEFT) document.documentElement.pack = "end"; // Additionally, change the orientation so the packing works as intended document.documentElement.orient = "horizontal"; } else { if (gOrigin & NS_ALERT_TOP) document.documentElement.pack = "end"; } var alertBox = document.getElementById("alertBox"); alertBox.orient = (gOrigin & NS_ALERT_HORIZONTAL) ? "vertical" : "horizontal"; // The above doesn't cause the labels in alertTextBox to reflow, // see bug 311557. As the theme's -moz-box-align css rule gets ignored, // we work around the bug by setting the align property. if (gOrigin & NS_ALERT_HORIZONTAL) { document.getElementById("alertTextBox").align = "center"; } sizeToContent(); // Work around a bug where sizeToContent() leaves a border outside of the content var contentDim = document.getElementById("alertBox").boxObject; if (window.innerWidth == contentDim.width + 1) --window.innerWidth; // Start with a 1px width/height, because 0 causes trouble with gtk1/2 gCurrentSize = 1; // Determine final size if (gOrigin & NS_ALERT_HORIZONTAL) { gFinalSize = window.outerWidth; window.outerWidth = gCurrentSize; } else { gFinalSize = window.outerHeight; window.outerHeight = gCurrentSize; } // Determine position var x = gOrigin & NS_ALERT_LEFT ? screen.availLeft : screen.availLeft + screen.availWidth - window.outerWidth; var y = gOrigin & NS_ALERT_TOP ? screen.availTop : screen.availTop + screen.availHeight - window.outerHeight; // Offset the alert by 10 pixels from the edge of the screen if (gOrigin & NS_ALERT_HORIZONTAL) y += gOrigin & NS_ALERT_TOP ? 10 : -10; else x += gOrigin & NS_ALERT_LEFT ? 10 : -10; window.moveTo(x, y); setTimeout(animateAlert, gSlideTime); } function animate(step) { gCurrentSize += step; if (gOrigin & NS_ALERT_HORIZONTAL) { if (!(gOrigin & NS_ALERT_LEFT)) window.screenX -= step; window.outerWidth = gCurrentSize; } else { if (!(gOrigin & NS_ALERT_TOP)) window.screenY -= step; window.outerHeight = gCurrentSize; } } function animateAlert() { if (gCurrentSize < gFinalSize) { animate(gSlideIncrement); setTimeout(animateAlert, gSlideTime); } else setTimeout(closeAlert, gOpenTime); } function closeAlert() { if (gCurrentSize > 1) { animate(-gSlideIncrement); setTimeout(closeAlert, gSlideTime); } else { if (gAlertListener) gAlertListener.observe(null, "alertfinished", gAlertCookie); window.close(); } } function onAlertClick() { if (gAlertListener && gAlertTextClickable) gAlertListener.observe(null, "alertclickcallback", gAlertCookie); } PK$Z$63v! content/global/alerts/alert.xul PKR*5,(content/global/bindings/autocomplete.xml null null false null false document.getAnonymousElementByAttribute(this, "anonid", "input"); 14 null false false 0) this.tree.treeBoxObject.ensureRowIsVisible(val < 0 ? 0 : val); // Fire select event on xul:tree so that accessibility API // support layer can fire appropriate accessibility events. var event = document.createEvent('Events'); event.initEvent("select", true, true); this.tree.dispatchEvent(event); return val; ]]> document.getAnonymousElementByAttribute(this, "anonid", "tree"); document.getAnonymousElementByAttribute(this, "anonid", "treecols"); 6 -1 aMaxRow && aIndex != aMaxRow) newIdx = aMaxRow; else if (!aReverse && aIndex == -1 || newIdx < 0 && aIndex != 0) newIdx = 0; if (newIdx < 0 && aIndex == 0 || newIdx > aMaxRow && aIndex == aMaxRow) aIndex = -1; else aIndex = newIdx; return aIndex; ]]> setTimeout(this.clearOpenProperty, 0, this); // Reset the maxRows property to the cached "normal" value, and reset // _normalMaxRows so that we can detect whether it was set by the input // when the popupshowing handler runs. this.mInput.maxRows = this._normalMaxRows; this._normalMaxRows = -1; new Date() = 0) return {row: row.value, column: col.value.id}; else return null; ]]> 30) { var rc = this.getHoverCell(event); if (rc && rc.row != this.parentNode.currentIndex) this.parentNode.view.selection.select(rc.row); this.mLastMoveTime = new Date(); } ]]> PK.|X``*content/global/bindings/autoscroll_all.pngPNG  IHDRr ߔgAMA7tEXtSoftwareAdobe ImageReadyqe<IDATxbd 8Ԭuuu]eddTDEEyyyYA_|իoO>{7o<0b#Ǫcgg o^`ccǏ,>}xׅrwܙBm{{D^ww{%q޽{7owܩ<_{ E7 XZ:q7NNNyxx~!KجZ޽{gΜa _5dnвٳgߓeK.uo߾-n)|̻Ǐ[\t $t&@AjLeG EDDح\[ ?iӦ,7f[[[sMrf!;L8tK333ǐi#@DڵkLMM倖farHHիdӧS&R/&c?;!99c޼y/~Y 4lʭ[.? ˗/? @N汧@xegg sWW!..}  @Ss ̈́@fΜ FR-f@^ HI__I&h  I,j@Xꘀa⮮<@ Ez>jz+׭[g?nݺ2::4 Hf)0_?`fxL ڵ] ouY ̧l _KP#48Hq X>^|._çvϟ?Ae2+@XI.^Rl< X}vtt|(luǎ t4\-pb$"q[@ bM}W?#`{0A>0#oIENDB`PK.7(content/global/bindings/autoscroll_h.pngPNG  IHDRr ߔgAMA7tEXtSoftwareAdobe ImageReadyqe<IDATxbd 8Ԭuuu]eddTDEEyyyYA_|իoO>{7o<0b#Ǫcgg o^`ccǏ,>}xׅrwܙBm{{D^ww{ 7opܹSy : -8q''<<<\\\^` -Z3{{RRR߁!.] ]rFّ#G/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M}W?#`{0A>0/cIENDB`PKx968d{{#content/global/bindings/browser.xml %findBarDTD; ]> null null Components.classes['@mozilla.org/preferences-service;1'] .getService(Components.interfaces.nsIPrefService) .getBranch(null); Components.classes['@mozilla.org/atom-service;1'] .getService(Components.interfaces.nsIAtomService); null // 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/tabbrowser.properties"; this._mStrBundle = stringBundleService.createBundle(bundleURL, localeService.getApplicationLocale()); } return this._mStrBundle; ]]> null null 1 null false null null false null false 0) this.sessionHistory.PurgeHistory(purge); ]]> 3 10 null false null false null null null null 0) scrollType--; if (this._clientFrameDoc.defaultView.scrollMaxX > 0) scrollType++; var imageWidth = 28; var imageHeight = 28; // marker var el = this._clientFrameDoc.createElementNS("http://www.w3.org/1999/xhtml", "img"); el.src = scrollImages[scrollType]; el.style.position = "fixed"; el.style.left = left - imageWidth / 2 + "px"; el.style.top = top - imageHeight / 2 + "px"; el.style.width = imageWidth + "px"; el.style.height = imageHeight + "px"; el.style.cursor = scrollCursor[scrollType]; el.style.zIndex = 2147483647; //Max Int el.style.borderStyle = "none"; el.style.padding = "0"; el.style.margin = "0"; this._clientFrameDoc.documentElement.appendChild(el); this._autoScrollMarkerImage = el; ]]> this._AUTOSCROLL_SNAP || x < -this._AUTOSCROLL_SNAP) || (y > this._AUTOSCROLL_SNAP || y < -this._AUTOSCROLL_SNAP)) this._snapOn = false; } ]]> null PKD+5 %1%1"content/global/bindings/button.xml this.init(); binding must contain an element with anonid=\"button\""; btn._menubuttonParent = this; btn.addEventListener("mouseover", function() { if (!this.disabled) this._menubuttonParent.buttonover = true; }, true); btn.addEventListener("mouseout", function() { this._menubuttonParent.buttonover = false; }, true); btn.addEventListener("mousedown", function() { if (!this.disabled) { this._menubuttonParent.buttondown = true; this._menubuttonParent._captureMouseUp(); } }, true); ]]> false PKD+5O O $content/global/bindings/checkbox.xml PKHn4BXBX'content/global/bindings/colorpicker.xml 36 && event.keyCode < 41)) && !this.mOpen) this.showPopup(); ]]> PK84/,<,<"content/global/bindings/dialog.xml null (function(event) { if (!document.documentElement.cancelDialog()) event.preventDefault(); }) (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; ]]>