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
8262981: Create implementation for NSAccessibilitySlider protocol #1811
8262981: Create implementation for NSAccessibilitySlider protocol #1811
Conversation
👋 Welcome back clanger! A progress list of the required criteria for merging this PR into |
This backport pull request has now been updated with issue from the original commit. |
/csr unneeded |
@RealCLanger The CSR requirement cannot be removed as there is already a CSR associated with the issue JDK-8262981. Please withdraw the CSR JDK-8300791 and then use the command |
/csr unneeded |
@RealCLanger determined that a CSR request is not needed for this pull request. |
@Autumn808 @phohensee Would you mind reviewing this one (and integrating into your patch bulk)? Thx |
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.
I think this is a great fix to avoid CSR and unblock the series of backports.
5f5342b
to
f72d269
Compare
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.
Works for me.
@RealCLanger Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information. |
@RealCLanger This change is no longer ready for integration - check the PR body for details. |
|
||
- (BOOL)accessibilityPerformDecrement | ||
{ | ||
return [self performAccessibleAction:DECREMENT]; |
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.
This method should upcall the java part of the patch, and may throw an exception if we will skip it.
I think we should include the java part but make it private, then re-implement this next code path to call it:
accessibilityPerformDecrement->performAccessibleAction:->CAccessibility#doAccessibleAction()->JSlider
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.
You're right, that's a good catch. We'll need to rework that. performAccessibleAction, however, will expect an AccessibleAction, so we need to do this differently, if we can't implement this interface in JSlider.
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.
CAccessibility#doAccessibleAction() can be reworked to accept Object, and then we can switch on type of the parameter, the private methods can be accessed via SwingAccessor
I propose to backport JDK-8262981 in a way that does not require a CSR. Just integrate the native code but don't touch the Java interface of javax.swing.JSlider.
Progress
Issues
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/1811/head:pull/1811
$ git checkout pull/1811
Update a local copy of the PR:
$ git checkout pull/1811
$ git pull https://git.openjdk.org/jdk11u-dev.git pull/1811/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1811
View PR using the GUI difftool:
$ git pr show -t 1811
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/1811.diff
Webrev
Link to Webrev Comment