Skip to content

script: Move gamepad DOM interfaces to script/dom/gamepad/#38900

Merged
jdm merged 1 commit intoservo:mainfrom
arihant2math:gamepad
Aug 27, 2025
Merged

script: Move gamepad DOM interfaces to script/dom/gamepad/#38900
jdm merged 1 commit intoservo:mainfrom
arihant2math:gamepad

Conversation

@arihant2math
Copy link
Copy Markdown
Contributor

@arihant2math arihant2math commented Aug 24, 2025

Moves interfaces defined by the gamepad spec to the script/dom/gamepad/ module from script/dom/.

Testing: Just a refactor shouldn't need any testing
Fixes: N/A

@arihant2math arihant2math requested a review from gterzian as a code owner August 24, 2025 19:49
@arihant2math arihant2math changed the title script: Move gamepad DOM interfaces to script/dom/gamepad/ script: Move gamepad DOM interfaces to script/dom/gamepad/ Aug 24, 2025
@@ -324,11 +324,7 @@ pub(crate) mod fontfaceset;
pub(crate) mod formdata;
pub(crate) mod formdataevent;
pub(crate) mod gamepad;
Copy link
Copy Markdown
Member

@yezhizhen yezhizhen Aug 25, 2025

Choose a reason for hiding this comment

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

Suggested change
pub(crate) mod gamepad;
#[allow(clippy::module_inception)]
pub(crate) mod gamepad;

Should we do this instead? To make it same as bluetooth.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why is this marked as resolved?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think the current change makes more sense than the Bluetooth one since it only applies to the specific module that triggers the warning.

Copy link
Copy Markdown
Member

@yezhizhen yezhizhen Aug 27, 2025

Choose a reason for hiding this comment

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

I see. Probably refactor bluetooth one later then.

@tharkum
Copy link
Copy Markdown
Contributor

tharkum commented Aug 26, 2025

Have the missing changes in webXR been fixed with pub(crate) use gamepad::Gamepad; ?

components/script/dom/webxr/xrinputsource.rs
components/script/dom/webxr/xrsystem.rs

@arihant2math
Copy link
Copy Markdown
Contributor Author

Should be good now.

@jdm jdm added this pull request to the merge queue Aug 27, 2025
@yezhizhen yezhizhen removed this pull request from the merge queue due to a manual request Aug 27, 2025
@@ -324,11 +324,7 @@ pub(crate) mod fontfaceset;
pub(crate) mod formdata;
pub(crate) mod formdataevent;
pub(crate) mod gamepad;
Copy link
Copy Markdown
Member

@yezhizhen yezhizhen Aug 27, 2025

Choose a reason for hiding this comment

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

I see. Probably refactor bluetooth one later then.

@yezhizhen yezhizhen added this pull request to the merge queue Aug 27, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 27, 2025
@jdm jdm added this pull request to the merge queue Aug 27, 2025
Merged via the queue into servo:main with commit 461ff26 Aug 27, 2025
22 checks passed
@arihant2math arihant2math deleted the gamepad branch August 28, 2025 03:03
github-merge-queue bot pushed a commit that referenced this pull request Aug 28, 2025
…38974)

As per discussion in #38900 

Testing: None, minor refactor

Signed-off-by: Ashwin Naren <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants