New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8267066: New NSAccessibility peers should return they roles and subroles directly #4162
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
@@ -28,5 +28,6 @@ | ||
@interface RadiobuttonAccessibility : ButtonAccessibility <NSAccessibilityRadioButton> { | ||
|
||
}; | ||
- (id)accessibilityValue; | ||
- (NSAccessibilityRole _Nonnull)accessibilityRole; | ||
- (id _Nonnull)accessibilityValue; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as earlier. Can't this be null? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, value represents the state of the control and can not be set to null. |
||
@end |
@@ -34,6 +34,7 @@ | ||
@interface StaticTextAccessibility : CommonTextAccessibility<NSAccessibilityStaticText> { | ||
|
||
}; | ||
- (NSAccessibilityRole _Nonnull)accessibilityRole; | ||
- (nullable NSString *)accessibilityAttributedStringForRange:(NSRange)range; | ||
- (nullable NSString *)accessibilityValue; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You missed these here in .h file There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. Fixed. |
||
- (NSRange)accessibilityVisibleCharacterRange; | ||
@@ -31,5 +31,5 @@ | ||
@interface ToolbarAccessibility : CommonComponentAccessibility { | ||
|
||
}; | ||
- (NSString * _Nonnull)accessibilityRole; | ||
- (NSAccessibilityRole _Nonnull)accessibilityRole; | ||
@end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the value can be null. No?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not here. The value here is a state of the checkbox - checked or not checked, unlike text components where value can be set to null, here value is being generated from the component state and can not be null.