Changeset 53220 in webkit
- Timestamp:
- Jan 13, 2010 5:16:15 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r53214 r53220 1 2010-01-13 Jon Honeycutt <jhoneycutt@apple.com> 2 3 MSAA: selected, selectable, extended selectable, and multiple 4 selectable states are not reported 5 6 https://bugs.webkit.org/show_bug.cgi?id=33574 7 <rdar://problem/7536826> 8 9 Reviewed by Darin Adler. 10 11 * accessibility/selection-states-expected.txt: Added. 12 13 * accessibility/selection-states.html: Added. 14 15 * platform/gtk/Skipped: 16 Add new test to skipped list due to stubbed AccessibilityUIElement 17 functions. 18 19 * platform/mac/Skipped: 20 Ditto. 21 1 22 2010-01-13 Dumitru Daniliuc <dumi@chromium.org> 2 23 -
trunk/LayoutTests/platform/gtk/Skipped
r53153 r53220 72 72 accessibility/radio-button-title-label.html 73 73 accessibility/secure-textfield-title-ui.html 74 accessibility/selection-states.html 74 75 accessibility/textarea-insertion-point-line-number.html 75 76 accessibility/textarea-line-for-index.html -
trunk/LayoutTests/platform/mac/Skipped
r53182 r53220 85 85 accessibility/document-attributes.html 86 86 87 # Accessibility tests with missing AccessibilityController functionality. 88 accessibility/selection-states.html 89 87 90 # Need to add functionality to DumpRenderTree to handle error pages 88 91 fast/history/back-forward-reset-after-error-handling.html -
trunk/WebCore/ChangeLog
r53218 r53220 1 2010-01-12 Jon Honeycutt <jhoneycutt@apple.com> 2 3 MSAA: selected, selectable, extended selectable, and multiple 4 selectable states are not reported 5 6 https://bugs.webkit.org/show_bug.cgi?id=33574 7 <rdar://problem/7536826> 8 9 Reviewed by Darin Adler. 10 11 * accessibility/AccessibilityObject.h: 12 (WebCore::AccessibilityObject::isMultiSelectable): 13 Use the correct function name - the function name overriden by 14 and used in AccessiblityRenderObject. 15 16 * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp: 17 (setAtkStateSetFromCoreObject): 18 Update for function rename. 19 (webkit_accessible_selection_select_all_selection): 20 Ditto. 21 1 22 2010-01-13 Darin Adler <darin@apple.com> 2 23 -
trunk/WebCore/accessibility/AccessibilityObject.h
r52819 r53220 300 300 virtual bool isIndeterminate() const { return false; } 301 301 virtual bool isLoaded() const { return false; } 302 virtual bool isMultiSelect () const { return false; }302 virtual bool isMultiSelectable() const { return false; } 303 303 virtual bool isOffScreen() const { return false; } 304 304 virtual bool isPressed() const { return false; } -
trunk/WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp
r53124 r53220 494 494 atk_state_set_add_state(stateSet, ATK_STATE_INDETERMINATE); 495 495 496 if (coreObject->isMultiSelect ())496 if (coreObject->isMultiSelectable()) 497 497 atk_state_set_add_state(stateSet, ATK_STATE_MULTISELECTABLE); 498 498 … … 788 788 { 789 789 AccessibilityObject* coreSelection = core(selection); 790 if (!coreSelection || !coreSelection->isMultiSelect ())790 if (!coreSelection || !coreSelection->isMultiSelectable()) 791 791 return false; 792 792 -
trunk/WebKit/chromium/ChangeLog
r53210 r53220 1 2010-01-13 Jon Honeycutt <jhoneycutt@apple.com> 2 3 MSAA: selected, selectable, extended selectable, and multiple 4 selectable states are not reported 5 6 https://bugs.webkit.org/show_bug.cgi?id=33574 7 <rdar://problem/7536826> 8 9 Reviewed by Darin Adler. 10 11 * public/WebAccessibilityObject.h: 12 Update for WebCore::AccessibilityObject function rename. 13 14 * src/WebAccessibilityObject.cpp: 15 (WebKit::WebAccessibilityObject::isMultiSelectable): 16 Ditto. 17 1 18 2010-01-13 Jeremy Orlow <jorlow@chromium.org> 2 19 -
trunk/WebKit/chromium/public/WebAccessibilityObject.h
r51402 r53220 86 86 bool isHovered() const; 87 87 bool isIndeterminate() const; 88 bool isMultiSelect () const;88 bool isMultiSelectable() const; 89 89 bool isOffScreen() const; 90 90 bool isPasswordField() const; -
trunk/WebKit/chromium/src/WebAccessibilityObject.cpp
r51402 r53220 232 232 } 233 233 234 bool WebAccessibilityObject::isMultiSelect () const235 { 236 if (!m_private) 237 return 0; 238 239 m_private->updateBackingStore(); 240 return m_private->isMultiSelect ();234 bool WebAccessibilityObject::isMultiSelectable() const 235 { 236 if (!m_private) 237 return 0; 238 239 m_private->updateBackingStore(); 240 return m_private->isMultiSelectable(); 241 241 } 242 242 -
trunk/WebKit/win/AccessibleBase.cpp
r53163 r53220 253 253 pvState->lVal |= STATE_SYSTEM_OFFSCREEN; 254 254 255 if (childObj->isMultiSelect())256 pvState->lVal |= STATE_SYSTEM_MULTISELECTABLE;257 258 255 if (childObj->isPasswordField()) 259 256 pvState->lVal |= STATE_SYSTEM_PROTECTED; … … 277 274 pvState->lVal |= STATE_SYSTEM_FOCUSABLE; 278 275 279 // TODO: Add selected and selectable states. 276 if (childObj->isSelected()) 277 pvState->lVal |= STATE_SYSTEM_SELECTED; 278 279 if (childObj->canSetSelectedAttribute()) 280 pvState->lVal |= STATE_SYSTEM_SELECTABLE; 281 282 if (childObj->isMultiSelectable()) 283 pvState->lVal |= STATE_SYSTEM_EXTSELECTABLE | STATE_SYSTEM_MULTISELECTABLE; 280 284 281 285 return S_OK; -
trunk/WebKit/win/ChangeLog
r53202 r53220 1 2010-01-12 Jon Honeycutt <jhoneycutt@apple.com> 2 3 MSAA: selected, selectable, extended selectable, and multiple 4 selectable states are not reported 5 6 https://bugs.webkit.org/show_bug.cgi?id=33574 7 <rdar://problem/7536826> 8 9 Reviewed by Darin Adler. 10 11 * AccessibleBase.cpp: 12 (AccessibleBase::get_accState): 13 Remove the call to isMultiSelect(). Call the correctly-named 14 isMultiSelectable(), and if it returns true, set both the "extended 15 selectable" and "multiple selectable" states. Check whether the object 16 is selected or selectable, and report those states. 17 1 18 2010-01-13 Steve Falkenburg <sfalken@apple.com> 2 19 -
trunk/WebKitTools/ChangeLog
r53217 r53220 1 2010-01-12 Jon Honeycutt <jhoneycutt@apple.com> 2 3 MSAA: selected, selectable, extended selectable, and multiple 4 selectable states are not reported 5 6 https://bugs.webkit.org/show_bug.cgi?id=33574 7 <rdar://problem/7536826> 8 9 Reviewed by Darin Adler. 10 11 * DumpRenderTree/AccessibilityUIElement.cpp: 12 (getIsSelectableCallback): 13 Return the result of calling isSelectable(). 14 (getIsMultiSelectableCallback): 15 Return the result of calling isMultiSelectable(). 16 (AccessibilityUIElement::getJSClass): 17 Add isSelected and isMultiSelectable properties to the JSClass 18 definition. 19 20 * DumpRenderTree/AccessibilityUIElement.h: 21 Declare isSelectable() and isMultiSelectable(). 22 23 * DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp: 24 (AccessibilityUIElement::isSelectable): 25 Stubbed. 26 (AccessibilityUIElement::isMultiSelectable): 27 Stubbed. 28 29 * DumpRenderTree/mac/AccessibilityUIElementMac.mm: 30 (AccessibilityUIElement::isSelectable): 31 Stubbed. 32 (AccessibilityUIElement::isMultiSelectable): 33 Stubbed. 34 35 * DumpRenderTree/win/AccessibilityUIElementWin.cpp: 36 (accessibilityState): 37 Get the object's state, and return it. 38 (AccessibilityUIElement::isSelected): 39 Check the object's selected state. 40 (AccessibilityUIElement::isSelectable): 41 Check the object's selectable state. 42 (AccessibilityUIElement::isMultiSelectable): 43 Check the object's extended/multiple selectable state. 44 1 45 2010-01-13 Adam Barth <abarth@webkit.org> 2 46 -
trunk/WebKitTools/DumpRenderTree/AccessibilityUIElement.cpp
r52809 r53220 493 493 } 494 494 495 static JSValueRef getIsSelectableCallback(JSContextRef context, JSObjectRef thisObject, JSStringRef, JSValueRef*) 496 { 497 return JSValueMakeBoolean(context, toAXElement(thisObject)->isSelectable()); 498 } 499 500 static JSValueRef getIsMultiSelectableCallback(JSContextRef context, JSObjectRef thisObject, JSStringRef, JSValueRef*) 501 { 502 return JSValueMakeBoolean(context, toAXElement(thisObject)->isMultiSelectable()); 503 } 504 495 505 static JSValueRef getIsExpandedCallback(JSContextRef context, JSObjectRef thisObject, JSStringRef, JSValueRef*) 496 506 { … … 588 598 { "isRequired", getIsRequiredCallback, 0, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 589 599 { "isSelected", getIsSelectedCallback, 0, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 600 { "isSelectable", getIsSelectableCallback, 0, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 601 { "isMultiSelectable", getIsMultiSelectableCallback, 0, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 590 602 { "isExpanded", getIsExpandedCallback, 0, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 591 603 { "isChecked", getIsCheckedCallback, 0, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, -
trunk/WebKitTools/DumpRenderTree/AccessibilityUIElement.h
r52994 r53220 114 114 bool isRequired() const; 115 115 bool isSelected() const; 116 bool isSelectable() const; 117 bool isMultiSelectable() const; 116 118 bool isExpanded() const; 117 119 bool isChecked() const; -
trunk/WebKitTools/DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp
r52809 r53220 559 559 } 560 560 561 bool AccessibilityUIElement::isSelectable() const 562 { 563 // FIXME: implement 564 return false; 565 } 566 567 bool AccessibilityUIElement::isMultiSelectable() const 568 { 569 // FIXME: implement 570 return false; 571 } -
trunk/WebKitTools/DumpRenderTree/mac/AccessibilityUIElementMac.mm
r52994 r53220 781 781 } 782 782 783 bool AccessibilityUIElement::isSelectable() const 784 { 785 // FIXME: implement 786 return false; 787 } 788 789 bool AccessibilityUIElement::isMultiSelectable() const 790 { 791 // FIXME: implement 792 return false; 793 } -
trunk/WebKitTools/DumpRenderTree/win/AccessibilityUIElementWin.cpp
r52809 r53220 264 264 return 0; 265 265 } 266 267 static DWORD accessibilityState(COMPtr<IAccessible> element) 268 { 269 VARIANT state; 270 element->get_accState(self(), &state); 271 272 ASSERT(V_VT(&state) == VT_I4); 273 274 DWORD result = state.lVal; 275 VariantClear(&state); 276 277 return result; 278 } 279 266 280 bool AccessibilityUIElement::isSelected() const 267 281 { 268 return false; 282 DWORD state = accessibilityState(m_element); 283 return (state & STATE_SYSTEM_SELECTED) == STATE_SYSTEM_SELECTED; 269 284 } 270 285 … … 513 528 } 514 529 515 530 bool AccessibilityUIElement::isSelectable() const 531 { 532 DWORD state = accessibilityState(m_element); 533 return (state & STATE_SYSTEM_SELECTABLE) == STATE_SYSTEM_SELECTABLE; 534 } 535 536 bool AccessibilityUIElement::isMultiSelectable() const 537 { 538 DWORD multiSelectable = STATE_SYSTEM_EXTSELECTABLE | STATE_SYSTEM_MULTISELECTABLE; 539 DWORD state = accessibilityState(m_element); 540 return (state & multiSelectable) == multiSelectable; 541 } 542 543
Note: See TracChangeset
for help on using the changeset viewer.