1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/metro/base/content/bindings/cssthrobber.xml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,40 @@ 1.4 +<?xml version="1.0"?> 1.5 + 1.6 +<!-- This Source Code Form is subject to the terms of the Mozilla Public 1.7 + - License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 1.9 + 1.10 +<!-- When not in use, make sure you disable this or it will run continuously 1.11 + in the background sucking up cpu. --> 1.12 +<bindings 1.13 + xmlns="http://www.mozilla.org/xbl" 1.14 + xmlns:xbl="http://www.mozilla.org/xbl" 1.15 + xmlns:html="http://www.w3.org/1999/xhtml" 1.16 + xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 1.17 + <binding id="cssthrobberBinding" extends="xul:box"> 1.18 + <content> 1.19 + <html:div anonid="container" id="container" class="progressContainer"> 1.20 + <html:div class="progressBall" /> 1.21 + <html:div class="progressBall" /> 1.22 + <html:div class="progressBall" /> 1.23 + <html:div class="progressBall" /> 1.24 + <html:div class="progressBall" /> 1.25 + </html:div> 1.26 + </content> 1.27 + <implementation> 1.28 + <field name="container" readonly="true">document.getAnonymousElementByAttribute(this, "anonid", "container");</field> 1.29 + <property name="enabled"> 1.30 + <setter> 1.31 + <![CDATA[ 1.32 + if (val) { 1.33 + this.container.setAttribute("enabled", true); 1.34 + } else { 1.35 + this.container.removeAttribute("enabled"); 1.36 + } 1.37 + return val; 1.38 + ]]> 1.39 + </setter> 1.40 + </property> 1.41 + </implementation> 1.42 + </binding> 1.43 +</bindings>