aboutsummaryrefslogtreecommitdiffstats
path: root/support/openharmony/entry/src
Commit message (Collapse)AuthorAgeFilesLines
* Create `config_dir` if none exist for caching (#35761)Euclid Ye2025-03-181-1/+5
| | | | | | | | | | | | | | | | | | | | | * Create config_dir if none exist for caching Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com> * remove specialized behaviour for ohos; copy prefs.json if necessary Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com> * downgrade the log to trace verbosity Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com> * update wpt-test Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com> --------- Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
* ohos: Improve argument filtering (#34422)Jonathan Schwender2024-12-021-11/+20
| | | | | | | | | This avoids future crashes if new unknown parameters are passed by the runtime to the app. It does make it slightly more inconvenient for the user, since they must use `=` and space at the right place now. This will also be updated in the book accordingly Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
* ohos: Support swiping to go back (#34433)Jonathan Schwender2024-12-011-1/+8
| | | | | | | | | | | Override the `onBackPress` callback, which by default brings the application to the background and instead tell servo to go back one page. Users can invoke this by swiping from the left edge to the middle. There is no equivalent callback / gesture to go forward. In the default browser swiping from the right side to the middle also invokes the goBack callback. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
* ohos: avoid passing some cli arguments to servo (#34237)Mukilan Thiyagarajan2024-11-131-0/+2
| | | | | | | | | | | | | | | | | | | These following four OHOS specific arguments are being passed by the OHOS runtime to the EntryAbility, which then passess them on to Servo's argument parsing logic: * `--debugApp=false` * `--send_to_erms_targetAppDistType=os_integration` * `--send_to_erms_targetAppProvisionType=release` * `--send_to_erms_targetBundleType=0` When Servo's argument parsing logic encounters an unrecognized argument, it terminates the process after logging an error to stderr (which is not visible in hilog). This patch simply filters out these arguments so the parsing logic doesn't fail. Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
* ohos: Add toast prompt (#33621)Jonathan Schwender2024-10-031-0/+10
| | | | | | | | | | | | | | | | | | * ohos: Add toast prompt Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> * ohos: Add toast on `load_ended` Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> * Apply review feedback Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> --------- Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
* ohos: Allow passing arguments to servoshell (#33588)Jonathan Schwender2024-10-023-6/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ohos: Bump minimum CMake version By bumping the minimum CMake version, we avoid a deprecation warning. The OH 4.0 SDK ships with CMake 3.16, so we can be sure that we have CMake 3.16 or newer available. Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> * ohos: Allow passing arguments to servoshell Allows passing options passed via `wants` to the Ability through to servoshell. This allows easier debugging, either by calling servoshell from a test app, or from the commandline, e.g. ``` hdc shell aa start -a EntryAbility -b org.servo.servoshell -U "https://www.wikipedia.org" \ --pb dom.webgpu.enabled true \ --ps dom.webgpu.wgpu_backend "gl" \ --pi layout.threads 4 ``` Note: While the OH `wants` API differentiates between boolean, string and integer values, we convert everything back to strings, so we can reuse the same parsing code as the desktop servoshell. Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> --------- Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
* ohos: Bundle resource files in hap (#33513)Jonathan Schwender2024-09-241-0/+6
| | | | | | | | | | Bundle resource files into the .hap, so they are available as files in the application sandbox, instead of included into the shared library. This should slightly reduce the binary size in debug and release mode. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
* ohos: Add back and fwd button to vendored app (#33511)Jonathan Schwender2024-09-231-10/+31
| | | | | | | | | 25372340 added back and forward apis to the ohos servoshell. 157e28c5 vendored the ohos demo ArkTS app into the servo repo, but did not include the back and forward buttons, which were added in the meantime. This commit adds the missing back and forward buttons to the ArkTS code. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
* openharmony: add servoshell for ohos (#33295)Mukilan Thiyagarajan2024-09-2013-0/+257
* openharmony: add servoshell for ohos Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * ohos: handle missing signing config on forks Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> --------- Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>