mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 469367 - Add ARIA semantics to those search widget types that don't have a Search button, r=dao, r=surkov
This commit is contained in:
parent
729e5a9577
commit
ae20bb4203
@ -149,6 +149,36 @@
|
||||
"activate", // ActionName
|
||||
"Activate"); // ActionDescription
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// Search textbox without search button, searches as you type and filters
|
||||
// a separate control.
|
||||
testThis("search-box", // ID
|
||||
"Search History:", // name
|
||||
"", // value
|
||||
"", // description
|
||||
ROLE_ENTRY, // role
|
||||
(STATE_FOCUSABLE), // state
|
||||
(EXT_STATE_SUPPORTS_AUTOCOMPLETION), // extState
|
||||
(0), // absentState
|
||||
1, // numActions
|
||||
"activate", // ActionName
|
||||
"Activate"); // ActionDescription
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// Search textbox with search button, does not support autoCompletion.
|
||||
testThis("searchfield", // ID
|
||||
"Search all add-ons", // name
|
||||
"", // value
|
||||
"", // description
|
||||
ROLE_ENTRY, // role
|
||||
(STATE_FOCUSABLE), // state
|
||||
(0), // extState
|
||||
(0), // absentState
|
||||
1, // numActions
|
||||
"activate", // ActionName
|
||||
"Activate"); // ActionDescription
|
||||
testStates("searchfield", 0, 0, 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION);
|
||||
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
@ -208,5 +238,13 @@
|
||||
<textbox multiline="true" id="readonly_textarea" readonly="true" cols="80"
|
||||
rows="5" value="You cannot change me, either."/>
|
||||
</vbox>
|
||||
<hbox>
|
||||
<label value="Search History:" accesskey="S"
|
||||
control="search-box"/>
|
||||
<textbox id="search-box" flex="1" type="search" cocoa-size="small"
|
||||
results="historyTree"/>
|
||||
</hbox>
|
||||
<textbox id="searchfield" emptytext="Search all add-ons"
|
||||
type="search" searchbutton="true" cocoa-size="small"/>
|
||||
</vbox>
|
||||
</window>
|
||||
|
@ -64,6 +64,7 @@
|
||||
<hbox align="center">
|
||||
<label value="&search.label;" accesskey="&search.accesskey;" control="search-box"/>
|
||||
<textbox id="search-box" flex="1" type="search" cocoa-size="small"
|
||||
aria-controls="bookmarks-view"
|
||||
oncommand="searchBookmarks(this.value);"/>
|
||||
</hbox>
|
||||
|
||||
|
@ -87,6 +87,7 @@
|
||||
<label value="&find.label;" accesskey="&find.accesskey;"
|
||||
control="search-box"/>
|
||||
<textbox id="search-box" flex="1" type="search" cocoa-size="small"
|
||||
aria-controls="historyTree"
|
||||
oncommand="searchHistory(this.value);"/>
|
||||
<button id="viewButton" style="min-width:0px !important;" type="menu"
|
||||
label="&view.label;" accesskey="&view.accesskey;" selectedsort="day"
|
||||
|
@ -389,6 +389,7 @@
|
||||
<textbox id="searchFilter"
|
||||
clickSelectsAll="true"
|
||||
type="search"
|
||||
aria-controls="placeContent"
|
||||
oncommand="PlacesSearchBox.search(this.value);"
|
||||
collection="bookmarks">
|
||||
</textbox>
|
||||
|
@ -114,6 +114,7 @@
|
||||
<textbox id="filter" flex="1"
|
||||
type="search"
|
||||
emptytext="&filter.emptytext;"
|
||||
aria-controls="handlersView"
|
||||
oncommand="gApplicationsPane.filter();"/>
|
||||
</hbox>
|
||||
|
||||
|
@ -66,7 +66,9 @@
|
||||
<vbox flex="1" class="contentPane">
|
||||
<hbox align="center">
|
||||
<label accesskey="&filter.accesskey;" control="filter">&filter.label;</label>
|
||||
<textbox type="search" id="filter" flex="1" oncommand="gCookiesWindow.filter();"/>
|
||||
<textbox type="search" id="filter" flex="1"
|
||||
aria-controls="cookiesList"
|
||||
oncommand="gCookiesWindow.filter();"/>
|
||||
</hbox>
|
||||
<separator class="thin"/>
|
||||
<label control="cookiesList" id="cookiesIntro" value="&cookiesonsystem.label;"/>
|
||||
|
@ -182,6 +182,7 @@
|
||||
<toolbaritem id="search-box"
|
||||
align="center" pack="center">
|
||||
<textbox id="findText" type="search" emptytext="&search.emptytext;"
|
||||
aria-controls="help-toc-panel"
|
||||
oncommand="doFind();"/>
|
||||
</toolbaritem>
|
||||
</toolbar>
|
||||
|
@ -70,6 +70,7 @@
|
||||
<hbox align="center">
|
||||
<label accesskey="&filter.accesskey;" control="filter">&filter.label;</label>
|
||||
<textbox id="filter" flex="1" type="search"
|
||||
aria-controls="signonsTree"
|
||||
oncommand="_filterPasswords();"/>
|
||||
</hbox>
|
||||
|
||||
|
@ -100,7 +100,9 @@
|
||||
<vbox flex="1">
|
||||
<hbox id="filterRow" align="center">
|
||||
<label value="&filterPrefs.label;" accesskey="&filterPrefs.accesskey;" control="textbox"/>
|
||||
<textbox id="textbox" flex="1" type="search" cocoa-size="small" oncommand="FilterPrefs();"/>
|
||||
<textbox id="textbox" flex="1" type="search" cocoa-size="small"
|
||||
aria-controls="configTree"
|
||||
oncommand="FilterPrefs();"/>
|
||||
</hbox>
|
||||
|
||||
<tree id="configTree" flex="1" seltype="single"
|
||||
|
@ -388,9 +388,18 @@
|
||||
onset="this.setAttribute('timeout', val); return val;"
|
||||
onget="return parseInt(this.getAttribute('timeout')) || 500;"/>
|
||||
<property name="searchButton"
|
||||
onget="return this.hasAttribute('searchbutton');"
|
||||
onset="if (val) this.setAttribute('searchbutton', 'true');
|
||||
else this.removeAttribute('searchbutton'); return val;"/>
|
||||
onget="return this.getAttribute('searchbutton') == 'true';">
|
||||
<setter><![CDATA[
|
||||
if (val) {
|
||||
this.setAttribute("searchbutton", "true");
|
||||
this.removeAttribute("aria-autocomplete");
|
||||
} else {
|
||||
this.removeAttribute("searchbutton");
|
||||
this.setAttribute("aria-autocomplete", "list");
|
||||
}
|
||||
return val;
|
||||
]]></setter>
|
||||
</property>
|
||||
<property name="value"
|
||||
onget="return this.hasAttribute('empty') ? '' : this.inputField.value;">
|
||||
<setter><![CDATA[
|
||||
@ -410,6 +419,12 @@
|
||||
return val;
|
||||
]]></setter>
|
||||
</property>
|
||||
<constructor><![CDATA[
|
||||
if (this.searchButton)
|
||||
this.removeAttribute("aria-autocomplete");
|
||||
else
|
||||
this.setAttribute("aria-autocomplete", "list");
|
||||
]]></constructor>
|
||||
<method name="_fireCommand">
|
||||
<parameter name="me"/>
|
||||
<body><![CDATA[
|
||||
|
@ -190,6 +190,7 @@
|
||||
tooltiptext="&cmd.clearList.tooltip;"/>
|
||||
<spacer flex="1"/>
|
||||
<textbox type="search" id="searchbox" cocoa-size="small"
|
||||
aria-controls="downloadView"
|
||||
oncommand="buildDownloadList();" emptytext="&searchBox.label;"/>
|
||||
</windowdragbox>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user