gecko/browser/metro/base/content/bindings/cssthrobber.xml

41 lines
1.4 KiB
XML

<?xml version="1.0"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!-- When not in use, make sure you disable this or it will run continuously
in the background sucking up cpu. -->
<bindings
xmlns="http://www.mozilla.org/xbl"
xmlns:xbl="http://www.mozilla.org/xbl"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="cssthrobberBinding" extends="xul:box">
<content>
<html:div anonid="container" id="container" class="progressContainer">
<html:div class="progressBall" />
<html:div class="progressBall" />
<html:div class="progressBall" />
<html:div class="progressBall" />
<html:div class="progressBall" />
</html:div>
</content>
<implementation>
<field name="container" readonly="true">document.getAnonymousElementByAttribute(this, "anonid", "container");</field>
<property name="enabled">
<setter>
<![CDATA[
if (val) {
this.container.setAttribute("enabled", true);
} else {
this.container.removeAttribute("enabled");
}
return val;
]]>
</setter>
</property>
</implementation>
</binding>
</bindings>