feat(libSceNKWebKit): implement WKView fullscreen transitions and view scale properties #17695

Merged
adriaespii merged 2 commits from upstream-pr/17695 into main 2026-11-19 02:41:38 +00:00
adriaespii commented 2026-11-09 10:25:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriaespii on 2026-11-09T10:25:07Z.


What

Implement WKView fullscreen transitions, state queries, and view scale properties (WKViewDidEnterFullScreen, WKViewDidExitFullScreen, WKViewGetPageScaleFactor, WKViewGetViewScaleFactor, WKViewIsFullScreen, WKViewRequestExitFullScreen, WKViewSetDrawsBackground, WKViewSetPageScaleFactor, WKViewSetViewScaleFactor, WKViewWillEnterFullScreen, and WKViewWillExitFullScreen).

Tested

Unit tests in core/libs/prx/libSceNKWebKit/tests/Base.cpp, conventions verified with tools/check_conventions.py.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5222362780 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17695). Originally posted by [adriaespii](https://github.com/adriaespii) on 2026-11-09T10:25:07Z. --- ### What Implement `WKView` fullscreen transitions, state queries, and view scale properties (`WKViewDidEnterFullScreen`, `WKViewDidExitFullScreen`, `WKViewGetPageScaleFactor`, `WKViewGetViewScaleFactor`, `WKViewIsFullScreen`, `WKViewRequestExitFullScreen`, `WKViewSetDrawsBackground`, `WKViewSetPageScaleFactor`, `WKViewSetViewScaleFactor`, `WKViewWillEnterFullScreen`, and `WKViewWillExitFullScreen`). ### Tested Unit tests in `core/libs/prx/libSceNKWebKit/tests/Base.cpp`, conventions verified with `tools/check_conventions.py`. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-11-18 07:21:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T07:21:12Z.

Review: COMMENTED


Reviewed — comments

The change adds in-memory view scale and fullscreen state, but the review is incomplete because some changed files were excluded or only read in relevant sections.

What I ran

Reviewed head 6ae0b83b95c604a073d167fdbd8166685dfc56be using the prepared diff and repo_read.py. No tests or convention checks were run.

Results

Check Result Note
Diff and targeted code review passed Implementation and test sections inspected
Unit tests and conventions not run Description reports these; not independently verified
Full changed-file review not run Some files were excluded or only partly read

Findings

Blocking

None.

Non-blocking

  • The new behavior stores view state in host memory; the change notes compositor integration is unmodeled. WKViewCreate remains an unimplemented export, so this review did not confirm how callers obtain a view reference. See core/libs/prx/libSceNKWebKit/src/View.cpp:10 and core/libs/prx/libSceNKWebKit/src/View.cpp:45.

Not verified

The full contents of Export.cpp, InventoryExports.hpp, and docs/dev/debt/libSceNKWebKit.md were excluded by the review bundle; relevant portions of InventoryExports.hpp and the debt file were read. LegacyExports.hpp was included but not read. Base.cpp was read only around the added test. No build, unit test, convention check, or console behavior was verified.

To get this to a good state

Nothing is required. The points above are optional.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5952266445 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17695#pullrequestreview-5952266445). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-18T07:21:12Z. **Review:** COMMENTED --- # Reviewed — comments The change adds in-memory view scale and fullscreen state, but the review is incomplete because some changed files were excluded or only read in relevant sections. ## What I ran Reviewed head `6ae0b83b95c604a073d167fdbd8166685dfc56be` using the prepared diff and `repo_read.py`. No tests or convention checks were run. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted code review | passed | Implementation and test sections inspected | | Unit tests and conventions | not run | Description reports these; not independently verified | | Full changed-file review | not run | Some files were excluded or only partly read | ## Findings ### Blocking None. ### Non-blocking - The new behavior stores view state in host memory; the change notes compositor integration is unmodeled. `WKViewCreate` remains an unimplemented export, so this review did not confirm how callers obtain a view reference. See `core/libs/prx/libSceNKWebKit/src/View.cpp:10` and `core/libs/prx/libSceNKWebKit/src/View.cpp:45`. ## Not verified The full contents of `Export.cpp`, `InventoryExports.hpp`, and `docs/dev/debt/libSceNKWebKit.md` were excluded by the review bundle; relevant portions of `InventoryExports.hpp` and the debt file were read. `LegacyExports.hpp` was included but not read. `Base.cpp` was read only around the added test. No build, unit test, convention check, or console behavior was verified. ## To get this to a good state Nothing is required. The points above are optional.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!17695
No description provided.