bug 213228: new toolkit independence bug, part 7: update and use the new toolkit widgetry.

general.xml: bug 133598 by cmanske, bug ????? by Grey Hodge <jesus_x@mozillanews.org>, other changes by Tim Hill <tim@prismelite.com>, bug 199060 by aaronl, bug 207456 by shliang.
This commit is contained in:
chanial%noos.fr 2003-08-17 11:08:55 +00:00
parent b18e392342
commit 8740596f87

View File

@ -15,7 +15,7 @@
<property name="disabled" onset="if (val) this.setAttribute('disabled', 'true');
else this.removeAttribute('disabled');
return val;"
onget="return this.hasAttribute('disabled');"/>
onget="return this.getAttribute('disabled') == 'true';"/>
<property name="image" onset="return this.setAttribute('image',val);"
onget="return this.getAttribute('image');"/>
<property name="accessKey" onset="return this.setAttribute('accesskey',val);"
@ -23,7 +23,7 @@
</implementation>
</binding>
<binding id="control-item" extends="chrome://global/content/bindings/general.xml#basetext">
<binding id="control-item" extends="chrome://global/content/widgets/general.xml#basetext">
<implementation>
<property name="value" onset="return this.setAttribute('value', val);"
onget="return this.getAttribute('value');"/>
@ -44,7 +44,7 @@
- Note that this widget will be no longer used in the bookmarks window once
- tree is extended to have this functionality built in.
-->
<binding id="inline-edit-base" extends="chrome://global/content/bindings/general.xml#basetext">
<binding id="inline-edit-base" extends="chrome://global/content/widgets/general.xml#basetext">
<implementation>
<field name="_mode">0</field>
<method name="setMode">
@ -166,7 +166,7 @@
</binding>
<!-- inline editable buttons -->
<binding id="buttonleft-ile" extends="chrome://global/content/bindings/general.xml#inline-edit-base">
<binding id="buttonleft-ile" extends="chrome://global/content/widgets/general.xml#inline-edit-base">
<content>
<xul:hbox class="button-internal-box" align="center" flex="1">
<xul:image class="button-icon" xbl:inherits="src"/>
@ -177,28 +177,6 @@
<children includes="menupopup"/>
</content>
</binding>
<binding id="editor">
<implementation>
<property name="editorShell"
readonly="true"
onget="return this.boxObject.QueryInterface(Components.interfaces.nsIEditorBoxObject).editorShell"/>
<property name="editor"
readonly="true"
onget="return this.boxObject.QueryInterface(Components.interfaces.nsIEditorBoxObject).editorShell.editor"/>
<property name="webNavigation"
onget="return this.docShell.QueryInterface(Components.interfaces.nsIWebNavigation);"
readonly="true"/>
<property name="contentDocument" readonly="true"
onget="return this.webNavigation.document;"/>
<property name="docShell"
onget="return this.boxObject.QueryInterface(Components.interfaces.nsIEditorBoxObject).docShell;"
readonly="true"/>
<property name="webBrowserFind"
readonly="true"
onget="return this.docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIWebBrowserFind);"/>
</implementation>
</binding>
<binding id="iframe">
<implementation implements="nsIAccessibleProvider">
@ -206,7 +184,7 @@
<getter>
<![CDATA[
var accService = Components.classes["@mozilla.org/accessibilityService;1"].getService(Components.interfaces.nsIAccessibilityService);
return accService.createIFrameAccessible(this);
return accService.createOuterDocAccessible(this);
]]>
</getter>
</property>
@ -252,7 +230,7 @@
<content>
<children/>
<xul:statusbarpanel class="statusbar-resizerpanel">
<xul:resizer dir="bottomright" style="-moz-appearance: resizer; cursor: se-resize"/>
<xul:resizer dir="bottomright"/>
</xul:statusbarpanel>
</content>
@ -269,7 +247,7 @@
</binding>
<binding id="statusbarpanel-iconic" display="xul:button"
extends="chrome://global/content/bindings/general.xml#statusbarpanel">
extends="chrome://global/content/widgets/general.xml#statusbarpanel">
<content>
<xul:image class="statusbarpanel-icon" xbl:inherits="src"/>
</content>