mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00
Bug 930845 - Removed expander binding, expander.css and expander.xml; r=enn
MozReview-Commit-ID: 26oF9gSQZVt --HG-- extra : rebase_source : b12964a0d5f6af62542e3dc54b7552ea48125474
This commit is contained in:
parent
3178a4003d
commit
c83ae3a2c6
@ -77,7 +77,6 @@ toolkit.jar:
|
||||
content/global/bindings/datetimebox.css (widgets/datetimebox.css)
|
||||
* content/global/bindings/dialog.xml (widgets/dialog.xml)
|
||||
content/global/bindings/editor.xml (widgets/editor.xml)
|
||||
content/global/bindings/expander.xml (widgets/expander.xml)
|
||||
content/global/bindings/filefield.xml (widgets/filefield.xml)
|
||||
* content/global/bindings/findbar.xml (widgets/findbar.xml)
|
||||
content/global/bindings/general.xml (widgets/general.xml)
|
||||
|
@ -1,86 +0,0 @@
|
||||
<?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/. -->
|
||||
|
||||
<bindings id="expanderBindings"
|
||||
xmlns="http://www.mozilla.org/xbl"
|
||||
xmlns:xbl="http://www.mozilla.org/xbl"
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<binding id="expander" display="xul:vbox">
|
||||
<resources>
|
||||
<stylesheet src="chrome://global/skin/expander.css"/>
|
||||
</resources>
|
||||
<content>
|
||||
<xul:hbox align="center">
|
||||
<xul:button type="disclosure" class="expanderButton" anonid="disclosure" xbl:inherits="disabled" mousethrough="always"/>
|
||||
<xul:label class="header expanderButton" anonid="label" xbl:inherits="value=label,disabled" mousethrough="always" flex="1"/>
|
||||
<xul:button anonid="clear-button" xbl:inherits="label=clearlabel,disabled=cleardisabled,hidden=clearhidden" mousethrough="always" icon="clear"/>
|
||||
</xul:hbox>
|
||||
<xul:vbox flex="1" anonid="settings" class="settingsContainer" collapsed="true" xbl:inherits="align">
|
||||
<children/>
|
||||
</xul:vbox>
|
||||
</content>
|
||||
<implementation>
|
||||
<constructor><![CDATA[
|
||||
var settings = document.getAnonymousElementByAttribute(this, "anonid", "settings");
|
||||
var expander = document.getAnonymousElementByAttribute(this, "anonid", "disclosure");
|
||||
var open = this.getAttribute("open") == "true";
|
||||
settings.collapsed = !open;
|
||||
expander.open = open;
|
||||
]]></constructor>
|
||||
<property name="open">
|
||||
<setter>
|
||||
<![CDATA[
|
||||
var settings = document.getAnonymousElementByAttribute(this, "anonid", "settings");
|
||||
var expander = document.getAnonymousElementByAttribute(this, "anonid", "disclosure");
|
||||
settings.collapsed = !val;
|
||||
expander.open = val;
|
||||
if (val)
|
||||
this.setAttribute("open", "true");
|
||||
else
|
||||
this.setAttribute("open", "false");
|
||||
return val;
|
||||
]]>
|
||||
</setter>
|
||||
<getter>
|
||||
return this.getAttribute("open");
|
||||
</getter>
|
||||
</property>
|
||||
<method name="onCommand">
|
||||
<parameter name="aEvent"/>
|
||||
<body><![CDATA[
|
||||
var element = aEvent.originalTarget;
|
||||
var button = element.getAttribute("anonid");
|
||||
switch (button) {
|
||||
case "disclosure":
|
||||
case "label":
|
||||
if (this.open == "true")
|
||||
this.open = false;
|
||||
else
|
||||
this.open = true;
|
||||
break;
|
||||
case "clear-button":
|
||||
var event = document.createEvent("Events");
|
||||
event.initEvent("clear", true, true);
|
||||
this.dispatchEvent(event);
|
||||
break;
|
||||
}
|
||||
]]></body>
|
||||
</method>
|
||||
</implementation>
|
||||
<handlers>
|
||||
<handler event="command"><![CDATA[
|
||||
this.onCommand(event);
|
||||
]]></handler>
|
||||
<handler event="click"><![CDATA[
|
||||
if (event.originalTarget.localName == "label")
|
||||
this.onCommand(event);
|
||||
]]></handler>
|
||||
</handlers>
|
||||
</binding>
|
||||
|
||||
</bindings>
|
||||
|
||||
|
@ -1015,14 +1015,6 @@ wizardpage {
|
||||
-moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard-buttons");
|
||||
}
|
||||
|
||||
/********** expander ********/
|
||||
|
||||
expander {
|
||||
-moz-binding: url("chrome://global/content/bindings/expander.xml#expander");
|
||||
-moz-box-orient: vertical;
|
||||
}
|
||||
|
||||
|
||||
/********** Rich Listbox ********/
|
||||
|
||||
richlistbox {
|
||||
|
@ -13,7 +13,6 @@
|
||||
skin/classic/global/customizeToolbar.css (../../windows/global/customizeToolbar.css)
|
||||
skin/classic/global/datetimepicker.css (../../windows/global/datetimepicker.css)
|
||||
skin/classic/global/dialog.css (../../windows/global/dialog.css)
|
||||
skin/classic/global/expander.css (../../windows/global/expander.css)
|
||||
skin/classic/global/filefield.css (../../windows/global/filefield.css)
|
||||
skin/classic/global/progressmeter.css (../../windows/global/progressmeter.css)
|
||||
skin/classic/global/resizer.css (../../windows/global/resizer.css)
|
||||
|
@ -1,14 +0,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/. */
|
||||
|
||||
.expanderButton {
|
||||
cursor: pointer !important;
|
||||
}
|
||||
|
||||
.settingsContainer {
|
||||
padding-top: 3px;
|
||||
padding-bottom: 5px;
|
||||
padding-inline-start: 20px;
|
||||
padding-inline-end: 5px;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user