Changeset 165590 in webkit
- Timestamp:
- Mar 13, 2014 6:58:04 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r165587 r165590 1 2014-03-13 Diego Pino Garcia <dpino@igalia.com> 2 3 Web Inspector: AXI: Expose focused/focusable state in the Accessibility Node Inspector 4 https://bugs.webkit.org/show_bug.cgi?id=129779 5 6 Reviewed by Timothy Hatcher. 7 8 * inspector-protocol/dom/getAccessibilityPropertiesForNode-expected.txt: 9 Updated test. 10 1 11 2014-03-13 Daniel Bates <dabates@apple.com> 2 12 -
trunk/LayoutTests/inspector-protocol/dom/getAccessibilityPropertiesForNode-expected.txt
r165430 r165590 86 86 label: 87 87 role: 88 focused: false 88 89 ignored: true 89 90 ignoredByDefault: true … … 124 125 role: radio 125 126 checked: true 127 focused: false 126 128 required: false 127 129 … … 131 133 role: radio 132 134 checked: false 135 focused: false 133 136 required: false 134 137 … … 166 169 role: checkbox 167 170 checked: true 171 focused: false 168 172 required: false 169 173 … … 173 177 role: checkbox 174 178 checked: false 179 focused: false 175 180 required: false 176 181 … … 180 185 role: 181 186 disabled: true 187 focused: false 182 188 readonly: true 183 189 required: false … … 194 200 label: 195 201 role: 202 focused: false 196 203 readonly: true 197 204 required: false … … 201 208 label: 202 209 role: 210 focused: false 203 211 readonly: true 204 212 required: false … … 208 216 label: 209 217 role: 218 focused: false 210 219 invalid: true 211 220 required: false … … 215 224 label: 216 225 role: 226 focused: false 217 227 invalid: spelling 218 228 required: false … … 222 232 label: 223 233 role: 234 focused: false 224 235 required: true 225 236 … … 228 239 label: 229 240 role: 241 focused: false 230 242 required: true 231 243 … … 234 246 label: 235 247 role: 248 focused: false 236 249 required: false 237 250 … … 240 253 label: 241 254 role: button 255 focused: false 242 256 243 257 <button></button> … … 245 259 label: 246 260 role: button 261 focused: false 247 262 248 263 <div role="button" tabindex="0" aria-pressed="false">Not Pressed.</div> … … 250 265 label: 251 266 role: 267 focused: false 252 268 pressed: false 253 269 required: false … … 257 273 label: 258 274 role: 275 focused: false 259 276 pressed: false 260 277 required: false … … 265 282 role: button 266 283 disabled: true 284 focused: false 267 285 268 286 <div role="button" tabindex="0"></div> … … 270 288 label: 271 289 role: button 290 focused: false 272 291 273 292 <span aria-hidden="true"></span> -
trunk/Source/WebCore/ChangeLog
r165589 r165590 1 2014-03-13 Diego Pino Garcia <dpino@igalia.com> 2 3 Web Inspector: AXI: Expose focused/focusable state in the Accessibility Node Inspector 4 https://bugs.webkit.org/show_bug.cgi?id=129779 5 6 Reviewed by Timothy Hatcher. 7 8 * inspector/InspectorDOMAgent.cpp: Set property "focused". 9 (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): 10 * inspector/protocol/DOM.json: Add property "focused" to 11 AccessibilityProperties. 12 1 13 2014-03-12 Jae Hyun Park <jaepark@webkit.org> 2 14 -
trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp
r165430 r165590 1419 1419 bool expanded = false; 1420 1420 bool disabled = false; 1421 bool focused = false; 1421 1422 bool ignored = true; 1422 1423 bool ignoredByDefault = false; … … 1433 1434 bool supportsPressed = false; 1434 1435 bool supportsRequired = false; 1436 bool supportsFocused = false; 1435 1437 1436 1438 if (AXObjectCache* axObjectCache = node->document().axObjectCache()) { … … 1455 1457 expanded = axObject->isExpanded(); 1456 1458 1459 supportsFocused = toElement(node)->isFocusable(); 1460 if (supportsFocused) 1461 focused = axObject->isFocused(); 1462 1457 1463 ignored = axObject->accessibilityIsIgnored(); 1458 1464 ignoredByDefault = axObject->accessibilityIsIgnoredByDefault(); … … 1491 1497 if (supportsExpanded) 1492 1498 value->setExpanded(expanded); 1499 if (supportsFocused) 1500 value->setFocused(focused); 1493 1501 if (ignored) 1494 1502 value->setIgnored(ignored); -
trunk/Source/WebCore/inspector/protocol/DOM.json
r165430 r165590 64 64 { "name": "exists", "type": "boolean", "description": "Indicates whether there is an existing AX object for the DOM node. If this is false, all the other properties will be default values." }, 65 65 { "name": "expanded", "type": "boolean", "optional": true, "description": "Expanded state." }, 66 { "name": "focused", "type": "boolean", "optional": true, "description": "Focused state. Only defined on focusable elements." }, 66 67 { "name": "ignored", "type": "boolean", "optional": true, "description": "Indicates whether the accessibility of the associated AX object node is ignored, whether heuristically or explicitly." }, 67 68 { "name": "ignoredByDefault", "type": "boolean", "optional": true, "description": "State indicating whether the accessibility of the associated AX object node is ignored by default for node type." }, -
trunk/Source/WebInspectorUI/ChangeLog
r165584 r165590 1 2014-03-13 Diego Pino Garcia <dpino@igalia.com> 2 3 Web Inspector: AXI: Expose focused/focusable state in the Accessibility Node Inspector 4 https://bugs.webkit.org/show_bug.cgi?id=129779 5 6 Reviewed by Timothy Hatcher. 7 8 * Localizations/en.lproj/localizedStrings.js: Add label "Focused". 9 * UserInterface/Models/DOMNode.js: Set property "focused" in 10 accessibilityProperties. 11 (WebInspector.DOMNode.prototype.accessibilityProperties): Add row for 12 property "focused". 13 * UserInterface/Views/DOMNodeDetailsSidebarPanel.js: 14 (WebInspector.DOMNodeDetailsSidebarPanel): 15 (WebInspector.DOMNodeDetailsSidebarPanel.prototype._refreshAccessibility): 16 Refresh value of property "focused" in UI. 17 1 18 2014-03-13 Joseph Pecoraro <pecoraro@apple.com> 2 19 -
trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js
r165430 r165590 178 178 localizedStrings["Event Listeners"] = "Event Listeners"; 179 179 localizedStrings["Expand columns"] = "Expand columns"; 180 localizedStrings["Expanded"] = "Expanded"; 180 181 localizedStrings["Expires"] = "Expires"; 181 182 localizedStrings["Expression"] = "Expression"; 182 localizedStrings["Expanded"] = "Expanded";183 183 localizedStrings["Extension Scripts"] = "Extension Scripts"; 184 184 localizedStrings["Extra Scripts"] = "Extra Scripts"; … … 190 190 localizedStrings["Filter Search Results"] = "Filter Search Results"; 191 191 localizedStrings["Flows"] = "Flows"; 192 localizedStrings["Focused"] = "Focused"; 192 193 localizedStrings["Font"] = "Font"; 193 194 localizedStrings["Fonts"] = "Fonts"; -
trunk/Source/WebInspectorUI/UserInterface/Models/DOMNode.js
r165430 r165590 452 452 exists: accessibilityProperties.exists, 453 453 expanded: accessibilityProperties.expanded, 454 focused: accessibilityProperties.focused, 454 455 ignored: accessibilityProperties.ignored, 455 456 ignoredByDefault: accessibilityProperties.ignoredByDefault, -
trunk/Source/WebInspectorUI/UserInterface/Views/DOMNodeDetailsSidebarPanel.js
r165517 r165590 62 62 this._accessibilityNodeDisabledRow = new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString("Disabled")); 63 63 this._accessibilityNodeExpandedRow = new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString("Expanded")); 64 this._accessibilityNodeFocusedRow = new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString("Focused")); 64 65 this._accessibilityNodeIgnoredRow = new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString("Ignored")); 65 66 this._accessibilityNodeInvalidRow = new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString("Invalid")); … … 291 292 var disabled = booleanValueToLocalizedStringIfTrue("disabled"); 292 293 var expanded = booleanValueToLocalizedStringIfPropertyDefined("expanded"); 294 var focused = booleanValueToLocalizedStringIfPropertyDefined("focused"); 293 295 294 296 var ignored = ""; … … 328 330 this._accessibilityNodeDisabledRow.value = disabled; 329 331 this._accessibilityNodeExpandedRow.value = expanded; 332 this._accessibilityNodeFocusedRow.value = focused; 330 333 this._accessibilityNodeIgnoredRow.value = ignored; 331 334 this._accessibilityNodeInvalidRow.value = invalid; … … 340 343 this._accessibilityGroup.rows = [ 341 344 // Global properties for all elements. 345 this._accessibilityNodeFocusedRow, 342 346 this._accessibilityNodeIgnoredRow, 343 347 this._accessibilityNodeRoleRow,
Note: See TracChangeset
for help on using the changeset viewer.