-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8264293: Create implementation for NSAccessibilityMenu protocol peer #6421
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
Conversation
Added implementation for menu related protocol peers. Moved native methods to CommonComponentAccessibility so they are called on correct peers.
|
👋 Welcome back kizune! A progress list of the required criteria for merging this PR into |
|
@azuev-java The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
|
/issue add JDK-8264296,JDK-8264295,JDK-8264294 |
|
@azuev-java Adding additional issue to issue list: Adding additional issue to issue list: |
Webrevs
|
|
@pankaj-bansal please review |
|
@forantar please review |
pankaj-bansal
left a comment
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 good to me. Menu Accessibility works fine with these changes.
|
@azuev-java This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 80 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
| [rolesMap setObject:@"ListAccessibility" forKey:@"list"]; | ||
| [rolesMap setObject:@"OutlineAccessibility" forKey:@"tree"]; | ||
| [rolesMap setObject:@"TableAccessibility" forKey:@"table"]; | ||
| [rolesMap setObject:@"MenuBarAccessibility" forKey:@"menubar"]; |
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.
Please increase the capacity of the rolesMap dictionary if you add a new role.
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.
Fixed.
| JNI_COCOA_ENTER(env); | ||
| [ThreadUtilities performOnMainThread:@selector(postMenuOpened) | ||
| on:(CommonComponentAccessibility *)jlong_to_ptr(element) | ||
| withObject:nil waitUntilDone: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.
Please move waitUntilDone to the new line for consistency.
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.
Fixed.
| @implementation MenuAccessibility | ||
| - (NSAccessibilityRole _Nonnull)accessibilityRole | ||
| { | ||
| return [[[self parent] javaRole] isEqualToString:@"combobox"] |
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.
Please correct the indentation.
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.
Fixed.
|
Besides what @savoptik mentioned, I left only cosmetics comments. Overall looks ok to me. |
Fixed initial capacity of rolesMap dictionary;
Cosmetics are also important so i fixed them too. |
|
Looks fine now. |
|
/integrate |
|
Going to push as commit 8f5a8f7.
Your commit was automatically rebased without conflicts. |
|
@azuev-java Pushed as commit 8f5a8f7. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Added implementation for all menu related protocol peers;
Native methods moved to CommonComponentAccessibility so they are called on correct peers;
Progress
Issues
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/6421/head:pull/6421$ git checkout pull/6421Update a local copy of the PR:
$ git checkout pull/6421$ git pull https://git.openjdk.java.net/jdk pull/6421/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 6421View PR using the GUI difftool:
$ git pr show -t 6421Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/6421.diff