Skip to content
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

Move Accessibility API from Starboard to Extension #2426

Merged

Conversation

iuriionishchenko
Copy link
Collaborator

b/299639708

Change-Id: Ida75ca986b88ae444684321ae609e1aae5588bf5

Copy link

codecov bot commented Feb 13, 2024

Codecov Report

Attention: Patch coverage is 1.47059% with 67 lines in your changes missing coverage. Please review.

Project coverage is 58.83%. Comparing base (84bd543) to head (fae7e35).
Report is 8 commits behind head on main.

Current head fae7e35 differs from pull request most recent head edd03eb

Please upload reports for the commit edd03eb to get more accurate results.

Files Patch % Lines
cobalt/dom/captions/system_caption_settings.cc 0.00% 43 Missing ⚠️
cobalt/h5vcc/h5vcc_accessibility.cc 0.00% 24 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2426      +/-   ##
==========================================
+ Coverage   58.74%   58.83%   +0.09%     
==========================================
  Files        1781     1905     +124     
  Lines       85283    93350    +8067     
==========================================
+ Hits        50099    54923    +4824     
- Misses      35184    38427    +3243     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kaidokert
Copy link
Member

@hlwarriner could you please help review this ? I think we may need some bracketing of #ifdef STARBOARD 16 in the old headers, on an off chance someone somewhere included them.

@hlwarriner
Copy link
Contributor

@hlwarriner could you please help review this ? I think we may need some bracketing of #ifdef STARBOARD 16 in the old headers, on an off chance someone somewhere included them.

Sure. Yeah I think this needs SB_API_VERSION guards, similar to how they were used in #1930.

@iuriionishchenko iuriionishchenko force-pushed the Convert_Accessibility_to_Extension branch from 11ac418 to c5733db Compare March 14, 2024 11:15
@iuriionishchenko
Copy link
Collaborator Author

@hlwarriner could you please help review this ? I think we may need some bracketing of #ifdef STARBOARD 16 in the old headers, on an off chance someone somewhere included them.

Sure. Yeah I think this needs SB_API_VERSION guards, similar to how they were used in #1930.

I have added SB_API_VERSION guards.

@iuriionishchenko iuriionishchenko force-pushed the Convert_Accessibility_to_Extension branch 5 times, most recently from 607cf96 to ea11401 Compare March 18, 2024 10:08
Copy link
Contributor

@hlwarriner hlwarriner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making these changes, @iuriionishchenko.

Just one more thing - can you please update the commit message to follow https://cbea.ms/git-commit/#imperative? Maybe just "Move Accessibility API from Starboard to Extension"?

I left a few other small comments but other than that, the changes look good.

@kaidokert, should someone with domain knowledge about the accessibility API take a quick look, too? I only focused on the mechanics of changing the Starboard API to an extension.

cobalt/dom/captions/system_caption_settings.cc Outdated Show resolved Hide resolved
cobalt/h5vcc/h5vcc_accessibility.cc Show resolved Hide resolved
starboard/extension/accessibility.h Outdated Show resolved Hide resolved
starboard/extension/accessibility.h Outdated Show resolved Hide resolved
starboard/extension/accessibility.h Outdated Show resolved Hide resolved
@iuriionishchenko iuriionishchenko force-pushed the Convert_Accessibility_to_Extension branch 2 times, most recently from e610404 to 584dee3 Compare March 19, 2024 10:06
@iuriionishchenko iuriionishchenko changed the title Accessibility API was moved from Starboard to Extension Move Accessibility API from Starboard to Extension Mar 19, 2024
@iuriionishchenko iuriionishchenko force-pushed the Convert_Accessibility_to_Extension branch from 584dee3 to 2295027 Compare March 20, 2024 08:53
@iuriionishchenko iuriionishchenko force-pushed the Convert_Accessibility_to_Extension branch from 2295027 to fae7e35 Compare March 28, 2024 09:00
@iuriionishchenko iuriionishchenko force-pushed the Convert_Accessibility_to_Extension branch 2 times, most recently from e964231 to ad75766 Compare May 13, 2024 12:03
@iuriionishchenko iuriionishchenko force-pushed the Convert_Accessibility_to_Extension branch from ad75766 to 14d72e2 Compare May 13, 2024 15:17
@kaidokert
Copy link
Member

@kaidokert, should someone with domain knowledge about the accessibility API take a quick look, too? I only focused on the mechanics of changing the Starboard API to an extension.

@johnxwork, can you have a quick look ?

@kaidokert kaidokert requested a review from johnxwork May 17, 2024 00:17
@iuriionishchenko iuriionishchenko force-pushed the Convert_Accessibility_to_Extension branch from 14d72e2 to a15cba7 Compare May 23, 2024 07:07
@hlwarriner hlwarriner self-requested a review May 23, 2024 14:07
@iuriionishchenko iuriionishchenko force-pushed the Convert_Accessibility_to_Extension branch from a15cba7 to 9671a68 Compare June 13, 2024 07:07
Copy link
Member

@kaidokert kaidokert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is failing tests because starboard/accessibility.h is not updated.

starboard/nplb/accessibility_test.cc also needs an update that disables it for Sb16

@kaidokert
Copy link
Member

Further - Android code still references starboard/accessibility.h and accessibility_internal.h here - this client code needs to be converted too, otherwise we can't land this change.

@kaidokert kaidokert force-pushed the Convert_Accessibility_to_Extension branch from e57df8d to 1e1acbd Compare June 19, 2024 03:09
@kaidokert
Copy link
Member

Internal CL 285260 at go/cobalt-cl/285260

Copy link
Member

@kaidokert kaidokert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added the Android conversion. Tests are still to be followed up on, but otherwise ready.

Internal CL needs to be merged together with this

@iuriionishchenko
Copy link
Collaborator Author

I've added the Android conversion. Tests are still to be followed up on, but otherwise ready.

Internal CL needs to be merged together with this

I am working on unit test and have some issue with debugging them. When I fix it I will update this PR to add the unit tests.
Also I have a question. There is a comment, as I remember, in the CL to rename StarboardExtensionAccessibilityApi to CobaltExtensionAccessibilityApi but we steel have StarboardExtensionAccessibilityApi here and CobaltExtensionAccessibilityApi in the CL. I missed these changes I suppose when I was resolving conflicts. Which name should I used? I will update in the next commit.

@kaidokert
Copy link
Member

I am working on unit test and have some issue with debugging them. When I fix it I will update this PR to add the unit tests.

Lets add those in a separate PR as a follow-up please. We are getting a bit time critical to get the Starboard header changes in, so i'm okay to do those later.

Also I have a question. There is a comment, as I remember, in the CL to rename StarboardExtensionAccessibilityApi to CobaltExtensionAccessibilityApi but we steel have StarboardExtensionAccessibilityApi here and CobaltExtensionAccessibilityApi in the CL. I missed these changes I suppose when I was resolving conflicts. Which name should I used? I will update in the next commit.

The naming should generally be "Starboard Extension" everywhere. Again this is okay to follow-up with cleanup CLs.

Most important here is that i can merge this with green builds together with internal CLs 285260 and 285223

@kaidokert kaidokert merged commit 30b5734 into youtube:main Jun 20, 2024
314 of 318 checks passed
@kaidokert kaidokert added the cp-25.lts.1+ Cherry Pick to the 25.lts.1+ branch label Jun 20, 2024
cobalt-github-releaser-bot pushed a commit that referenced this pull request Jun 20, 2024
b/299639708

Change-Id: Ida75ca986b88ae444684321ae609e1aae5588bf5

---------

Co-authored-by: Kaido Kert <[email protected]>
(cherry picked from commit 30b5734)
kaidokert pushed a commit that referenced this pull request Jun 20, 2024
…ion (#3608)

Refer to the original PR: #2426

b/299639708

Change-Id: Ida75ca986b88ae444684321ae609e1aae5588bf5

Co-authored-by: iuriionishchenko <[email protected]>
dahlstrom-g added a commit that referenced this pull request Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cp-25.lts.1+ Cherry Pick to the 25.lts.1+ branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants