Changeset 201774 in webkit


Ignore:
Timestamp:
Jun 7, 2016 3:45:53 PM (8 years ago)
Author:
Chris Fleizach
Message:

AX: iOS: Need to expose whether object is a dialog element
https://bugs.webkit.org/show_bug.cgi?id=158487
<rdar://problem/26678218>

Reviewed by Joanmarie Diggs.

Expose whether an object is a dialog type. This will allow decisions higher up the stack to be made in regards to where to move VoiceOver focus.

  • accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:

(-[WebAccessibilityObjectWrapper accessibilityIsDialog]):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r201771 r201774  
     12016-06-07  Chris Fleizach  <cfleizach@apple.com>
     2
     3        AX: iOS: Need to expose whether object is a dialog element
     4        https://bugs.webkit.org/show_bug.cgi?id=158487
     5        <rdar://problem/26678218>
     6
     7        Reviewed by Joanmarie Diggs.
     8
     9        Expose whether an object is a dialog type. This will allow decisions higher up the stack to be made in regards to where to move VoiceOver focus.
     10
     11        * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
     12        (-[WebAccessibilityObjectWrapper accessibilityIsDialog]):
     13
    1142016-06-07  Alex Christensen  <achristensen@webkit.org>
    215
  • trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm

    r201585 r201774  
    500500   
    501501    return m_object->language();
     502}
     503
     504- (BOOL)accessibilityIsDialog
     505{
     506    if (![self _prepareAccessibilityCall])
     507        return NO;
     508
     509    AccessibilityRole roleValue = m_object->roleValue();
     510    return roleValue == ApplicationDialogRole || roleValue == ApplicationAlertDialogRole;
    502511}
    503512
Note: See TracChangeset for help on using the changeset viewer.