aboutsummaryrefslogtreecommitdiffstats
path: root/ports/libsimpleservo/api/src
Commit message (Collapse)AuthorAgeFilesLines
* constellation: focusing and closing webviews (#30842)Delan Azabani2024-01-241-36/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * constellation: focusing, closing, and native window visibility * rename “browser” to “webview”, “unfocus” to “blur” * remove native window visibility from constellation * rename more “browser” to “webview” * guard clauses * don’t automatically focus when no webviews are focused * comment spec steps for window.close() * use format interpolation Co-authored-by: Martin Robinson <mrobinson@igalia.com> * fix formatting * rename “Webview” to “WebView” in types and type parameters * remove unused method * fix libsimpleservo --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Preliminary Android build support (#31086)Mukilan Thiyagarajan2024-01-221-2/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Android build * Fixes * More fixes - Still failing in the linking step * More work on getting linking working Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * android: use mozjs with ndk r25c. loads servo.org more android build fixes. * fix ./mach run for android and make it follow logs Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * add experimental logic for compositor pause/resume Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * pass DPI from android to simpleservo Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * ci: add android workflow Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * switch to ANDROID_SDK_ROOT and ANDROID_NDK_ROOT vars Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * upgrade gradle to 4.10.1 Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * upgrade to gradle 5.1.1 Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * upgrade to gradle 8 and agp 8 Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * make compositing work again with external present Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * android: improve mach support for non-NixOS and CI Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * fix sampler compilation bug introduced in #30490 Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * ci: add android build to main workflow Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * gradle: set MinSdk = targetSdk = 30 NDK requires we compile against the minSdk API level which is 30 in our case. Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * add instructions for android in README.md Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * apk: move servosurface to servoview Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * apk: uncomment the mediasession callbacks on MainActivity Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * apk: fix crash on MainAtivity.onDestroy Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * apk: drop VR, arm 5 and unused code This commit drops: * support for google, oculusvr * support for arm5 architecture and also removes * fakeld scripts * unused java code Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * cleanup shell.nix Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * android: add FIXMEs for gstreamer code Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * apk: remove commented code and debug logs Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * cleanup ServoView.java Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * mach: comment call to download gstreamer deps for android Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * disable bluetooth for jniapi as blurdroid is broken Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * fixup! README.md * fixup! remove change in Cargo.toml * fixup! move shell variables together * fixup! cleanup jniapi/Cargo.toml comments * delete commented gstreamer related android code Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * remove unused config variable in servbuild Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * android: more cleanup Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * force no_static_freetype only for android * use actions to manage sdk, ndk and java Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * rename embedder event names to be more clear. Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * link to startup crash issue Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * fix lint issues Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * upgrade env_logger to 0.10 with duplicate exception libservo and android_logger can use env_logger 0.10 but quickcheck is still stuck on 0.8 and has not seen any activity in the last 2 years. This commit adds a duplicate exception until the quickcheck dependency can be upgraded (or replaced) Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * android: fix comments Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * disable jemalloc on android Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * fixup! replace linux with android in cfg --------- Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* constellation: notify embedder when events are hit-tested to browsers (#30841)Delan Azabani2023-12-121-1/+2
| | | | | | | | | | | * constellation: notify embedder when events are hit-tested to browsers * fix compile error in libsimpleservo * impl From<&CompositorEvent> for CompositorEventVariant * remove msg temporaries in Constellation::forward_event * use single wildcard arm in EventDelivered case in handle_servo_events
* Fix libsimpleservo build on Linux and BSD (#30865)Delan Azabani2023-12-121-1/+2
|
* Fix libsimpleservo build (#30481)Martin Robinson2023-10-032-2/+6
| | | | | | | It seems the build has been broken on desktop platforms. This is a preliminary fix to getting this build on the bots. This is mainly missing includes, but `package-prefs.json` is no longer processed because that was only used for the UWP port (now removed.
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-112-21/+22
| | | | | * strict imports formatting * Reformat all imports
* remove `extern crate` (#30311)Samson2023-09-081-3/+0
| | | | | | | | | | | * remove extern crate * Update components/script_plugins/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* constellation: crash to a new “sad tab” error page (#30290)Delan Azabani2023-09-061-0/+1
| | | | | | | | | | | | | | | | | | | | | * constellation: crash to a new “sad tab” page * check in resources/crash.html * use a separate enum variant instead of keying on reason * fmt + tidy * rename Resource::Crash to Resource::CrashHTML * clean up crash page and add details (reason + backtrace) * avoid repeating crash errors in script::script_thread warn log * make new LoadData init more idiomatic * clarify comments and new fields * fix doc comment style
* Add missing EmbedderMsg::ReadyToPresent (#30109)Atbrakhi2023-08-161-0/+1
|
* Clean up some unused code after switching to rustls (#30081)Martin Robinson2023-08-091-1/+0
| | | | The SSL certificate resource is no longer used as these certificates are loaded via the webpki-roots crate.
* Embed git hash using vergen instead of mach (#30030)Martin Robinson2023-07-281-6/+5
| | | | | | Embed the git hash into the servo binary using vergen instead of using custom Python code in mach. The benefit here is ones less difference between a normal cargo run and building via mach in addition to removing a bunch of code.
* [NFC] winit: document event handling and improve naming (#30016)Delan Azabani2023-07-241-36/+42
| | | | | | | | | | | | | | | * compositing: rename WindowEvent to EmbedderEvent * winit: rename winit_event_to_{servo → embedder}_event * winit: rename ServoEvent::Awakened to WakerEvent * winit: document App::handle_events and rename locals * servo: rename Servo.embedder_events to messages_for_embedder * winit: rustdoc link to EmbedderEvent * winit: use new name queue_embedder_events_for_winit_event
* Remove UWP / Hololens supportMartin Robinson2023-07-051-89/+3
|
* move servo_version from config crate to ports/libsimpleservo/api/src/lib.rs ↵s-maurice2022-03-061-1/+6
| | | | | | and duplicate in ports/winit/main2.rs Signed-off-by: s-maurice <51819025+s-maurice@users.noreply.github.com>
* Create initial browser id for compositor on startup.Josh Matthews2021-10-181-3/+2
|
* Improve IME messaging to embedder with insertion point index and multiline flag.Philip Lamb2021-03-291-3/+9
|
* Fix warnings introduced in newer Rust NightlySimon Sapin2021-02-251-3/+1
| | | | | | | | | | | | This does not (yet) upgrade ./rust-toolchain The warnings: * dead_code "field is never read" * redundant_semicolons "unnecessary trailing semicolon" * non_fmt_panic "panic message is not a string literal, this is no longer accepted in Rust 2021" * unstable_name_collisions "a method with this name may be added to the standard library in the future" * legacy_derive_helpers "derive helper attribute is used before it is introduced" https://github.com/rust-lang/rust/issues/79202
* Expose WebrenderSurfman interface to embedders.Josh Matthews2020-11-151-1/+9
|
* Expose non-widget rendering to embedders.Josh Matthews2020-11-151-7/+23
|
* Do not beautify title in libsimpleservoPaul Rouget2020-08-101-11/+1
|
* Catch more panics.Paul Rouget2020-08-031-1/+5
| | | | | Stop using catch_unwind and use set_hook, allowing us to catch more panics. Also reporting Embedder::Panic messages.
* Auto merge of #27417 - jdm:clear-reload, r=Manishearthbors-servo2020-07-281-0/+7
|\ | | | | | | | | | | | | | | | | | | | | | | Make reload button clear the network cache. The developer workflow in FxR is frustrating right now because of bugs like https://github.com/servo/servo/issues/24385. To allow us to put out a new release soon that addresses this papercut, these changes make the reload button clear the network cache in FxR. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix (kind of) #26411. - [x] These changes do not require tests because can't test FxR.
| * Make reload button clear the network cache.Josh Matthews2020-07-271-0/+7
| |
* | Move secondary view support into a prefManish Goregaokar2020-07-271-1/+1
|/
* Remove simpleservo antialiasing option, rely on prefPaul Rouget2020-07-211-8/+1
|
* Support package-prefs.json for libsimpleservoPaul Rouget2020-07-171-12/+10
|
* Unfocus input when virtual keyboard is dismissedPaul Rouget2020-07-131-0/+5
|
* UWP: support virtual keyboardPaul Rouget2020-07-021-4/+10
|
* Support for webxr layer managementAlan Jeffrey2020-06-281-30/+2
|
* Allow embedder to bypass devtools promptPaul Rouget2020-06-221-3/+5
|
* Embedding API: prefs r/wPaul Rouget2020-06-101-8/+47
|
* Use an appropriate graphics adapter when openxr is present.Josh Matthews2020-05-121-3/+17
|
* Update webxrManish Goregaokar2020-05-051-1/+1
|
* Report openxr failure at app startup.Josh Matthews2020-04-241-7/+22
|
* Update surfman to 0.2 and remove glutinAlan Jeffrey2020-04-171-22/+24
|
* Remove WebVRAlan Jeffrey2020-04-081-28/+0
|
* Extract user_agent from global optsUtsav Oza2020-04-061-1/+1
|
* Pass context menu callbacks down to the openxr deviceManish Goregaokar2020-03-311-3/+48
|
* Make it possible to add a title to context menuPaul Rouget2020-03-311-3/+5
|
* Context Menu: APIPaul Rouget2020-03-301-1/+29
|
* Add support for launching devtools server on random portKunal Mohan2020-03-161-0/+5
| | | | | Assign random port to devtools server in case user does not specify a port explicitly and report it to the embedding layer for display to user.
* Integrate swapchain surface provider changes into webgl and webxr ↵Josh Matthews2020-03-091-4/+38
| | | | implementations.
* Handle PromptPermission in libsimpleservoIulian Gabriel Radu2020-02-281-1/+26
|
* Stop animations when window is hidden (API + UWP)Paul Rouget2020-02-191-0/+11
|
* Embedder Prompt APIPaul Rouget2020-02-101-8/+31
|
* Fix libsimpleservo build after MediaSession C enums changeFernando Jiménez Moreno2019-12-051-1/+1
|
* Introduce CMediaSessionPlaybackState and CMediaSessionActionTypeFernando Jimenez Moreno2019-12-051-5/+9
|
* extended HostTrait with on_media_session_set_position_stateShinichi Morimoto2019-12-031-1/+11
|
* Fix metadata updateFernando Jiménez Moreno2019-11-201-2/+2
|
* Fix media session action handlingFernando Jiménez Moreno2019-11-201-2/+1
|