Commit graph

111 commits

Author SHA1 Message Date
Fernando Jiménez Moreno
08f9f17ed3 Send MediaSessionAction from Android 2019-11-20 13:33:51 +01:00
Fernando Jiménez Moreno
0bbacdda0c Move media session related code out of MainActivity 2019-11-20 13:33:16 +01:00
Fernando Jiménez Moreno
dd63ba425f MediaSession show media controls on Android 2019-11-20 13:33:15 +01:00
Fernando Jiménez Moreno
3f6569447d MediaSession Android bits 2019-11-20 13:33:15 +01:00
Jan Andre Ikenmeyer
c71988e70b
Make https the default protocol for address bar on Android, too. 2019-11-10 18:08:44 +01:00
Paul Rouget
f2f8223cf1 UWP: better mouse interaction support 2019-10-29 07:35:50 +01:00
Fernando Jiménez Moreno
11993bb8f5 Allow setting GST_DEBUG on Android through mach 2019-10-14 17:27:29 +02:00
Paul Rouget
d339d1f30b Implement window.alert on Android 2019-08-27 08:09:03 +02:00
Paul Rouget
3a374b3455 Expose javascript:window.alert() to libsimpleservo 2019-07-19 16:49:26 +02:00
akshitkrnagpal
027514c3e6 Add support for market:// urls 2019-06-28 17:30:42 -04:00
Josh Matthews
ccde5867fb Use llvm toolchain for entirety of android build. 2019-05-24 16:05:01 -04:00
Josh Matthews
d0d3401361 Use correct android platform version when linking. 2019-05-10 22:43:42 -04:00
Josh Matthews
7a95cbcf91 Upgrade NDK to v15c. 2019-05-01 15:08:37 -04:00
Paul Rouget
8f2390fdff Add transparent padding around ServoSurface 2019-03-25 19:01:39 +01:00
bors-servo
6c161e5037
Auto merge of #22773 - paulrouget:immersive, r=jdm
Support for ExternalVR implementation

This PR adds the hook necessary for the ExternalVR rust-webvr driver.
Waiting on rust-webvr 0.9.3 to be published before landing.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22773)
<!-- Reviewable:end -->
2019-02-07 00:17:26 -05:00
Paul Rouget
c055b74e13 Support for ExternalVR implementation 2019-02-07 06:15:11 +01:00
Paul Rouget
475756ec2f Remove readfile callback 2019-02-06 07:52:58 +01:00
Paul Rouget
c146653707 Implement ServoSurface::onSurfaceChanged 2019-01-30 07:40:55 +01:00
Manish Goregaokar
82f81fb9fd Stop catching Android click events
Servo already can simulate clicks from multiple tap events

fixes https://github.com/servo/servo/issues/22702
2019-01-16 18:23:07 -05:00
Manish Goregaokar
d11c81aff5 Remove titlebar
fixes https://github.com/servo/servo/issues/22318
2018-11-29 17:33:06 -08:00
Manish Goregaokar
731b7c472c Add daydream and cardboard intent filters 2018-11-29 14:42:43 -08:00
Manish Goregaokar
d171daa81c Automatically enable webvr for Android VR builds 2018-11-28 15:43:24 -08:00
Anthony Ramine
496a62860e Move Android and ML build artefacts to their own subdirectory
Works around #20380.
2018-11-28 13:00:44 +01:00
bors-servo
d7d9015518
Auto merge of #22239 - paulrouget:shutdown2, r=jdm
shutdown synchronously

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22239)
<!-- Reviewable:end -->
2018-11-23 11:19:00 -05:00
Paul Rouget
799833a94b shutdown synchronously 2018-11-22 11:48:57 +01:00
Paul Rouget
651f94fcf8 Handle more config changes 2018-11-22 11:48:41 +01:00
Manish Goregaokar
3bccb8c387 Add support for touch events on Android
Currently on Android we treat all touch events as scroll events. Servo
is already capable of distinguishing between scroll-touches and regular
touch events (see `on_touch_move` in `components/compositor/touch.rs`),
so we should just be passing touch events through.

Servo however does not natively support fling gestures, so we continue
to use `GestureDetector` for that.
2018-11-20 22:39:47 -08:00
Jan Andre Ikenmeyer
f5ab95786f
Update MPL license to https (part 1) 2018-11-19 14:46:43 +01:00
bors-servo
6da89a630f
Auto merge of #22178 - paulrouget:fixScroll, r=jdm
Properly cancel looping before triggering another drawing loop

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #21991 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22178)
<!-- Reviewable:end -->
2018-11-17 09:05:58 -05:00
Paul Rouget
971bda7b10 Add only one architecture per apk 2018-11-14 11:41:38 +01:00
Paul Rouget
6b2d9bf140 Properly cancel looping before triggering another drawing loop 2018-11-12 08:19:59 +01:00
Jan Andre Ikenmeyer
357f23fae1
Consistent servo-deps download URLs 2018-11-06 12:20:10 +01:00
bors-servo
662fd0afa4
Auto merge of #22021 - paulrouget:shutdown, r=paulrouget
Android: proper shutdown mechanism

Fix #21834

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22021)
<!-- Reviewable:end -->
2018-10-30 01:47:17 -04:00
Paul Rouget
549c8c565a Android: proper shutdown mechanism 2018-10-26 12:15:52 +02:00
Fernando Jiménez Moreno
e3a5568bcf Handle open URL intent on Android 2018-10-24 08:59:45 +02:00
Josh Matthews
03a75f418e
Use a depth buffer when embedding Servo on android. 2018-10-11 16:07:58 -04:00
Sebastian Kaspari
f8a84a763b
ServoView: Add default constructor.
Android's `View` has multiple constructors. Currently only `ServoView(Context, AttributeSet)` is available.
This constructor is usually used by Android when inflating a View from a layout XML file. However when
creating the `View` in code no `AttributeSet` is available.
2018-10-08 16:08:31 +02:00
bors-servo
65710bee94
Auto merge of #21871 - paulrouget:servooptions, r=jdm
Make JNI code more robust and introduce antialiasing option

This throws exceptions in various places. Trying to reduce the amount of unwrap/expect.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #21306 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21871)
<!-- Reviewable:end -->
2018-10-06 01:58:22 -04:00
Paul Rouget
5ddb8d577f Disable subpixel text antialiasing for ServoSurface 2018-10-06 07:57:07 +02:00
Paul Rouget
e0ce73abb2 Make JNI code more robust 2018-10-05 13:17:27 +02:00
bors-servo
7fa2b2c879
Auto merge of #21842 - jdm:android-extra-frame, r=paulrouget
Fix flickering on Android

This is particularly noticeable in debug builds on WebGL pages, but also appears during startup when loading normal pages. requestRender() causes Android to swap buffers under the assumption that the buffer contains a fully rendered frame, but when calling it from `doFrame` there are no guarantees that Servo has finished compositing yet. This causes stale buffers to be composited instead, leading to flickering at startup when there is no content, or general jerkiness on pages using animation callbacks as previous frames replace current frames.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #21796
- [x] These changes do not require tests because no android integration tests.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21842)
<!-- Reviewable:end -->
2018-10-03 05:00:48 -04:00
Josh Matthews
de8fae14b7 android: Do not trigger a composite before Servo has finished compositing. 2018-10-03 03:44:16 +02:00
Paul Rouget
54d7788698 Create a Maven repository 2018-10-02 18:16:44 +02:00
Paul Rouget
6d543dec28 com.mozilla to org.mozilla 2018-10-02 08:09:35 +02:00
Josh Matthews
4db25fe581
Remove unnecessary thread specification when flushing GL on Android. 2018-10-01 10:22:12 +02:00
Josh Matthews
5edf4e163e Set android toolchain version correctly. 2018-09-25 12:14:50 -04:00
Josh Matthews
4fe41c69d3 Add mach command to setup remote debugging on Android devices. 2018-09-25 12:14:18 -04:00
Fernando Jiménez Moreno
c7d11b9a1e Remove duplicated context param from Servo constructor 2018-09-25 11:53:27 +02:00
Fernando Jiménez Moreno
991fdbe5d4 Declare libgstreamer_android as prebuilt library 2018-09-24 15:50:45 +02:00
Fernando Jiménez Moreno
e3c98802eb Move GStreamer initialization to a path shared by ServoSurface and ServoView 2018-09-24 15:50:06 +02:00