Commit graph

321 commits

Author SHA1 Message Date
Paul Rouget
d339d1f30b Implement window.alert on Android 2019-08-27 08:09:03 +02:00
Josh Matthews
c0ff30b71f Enable GStreamer on Windows. 2019-08-26 17:41:22 -04:00
Paul Rouget
b2c56940eb Resize Servo on surface resize 2019-08-23 11:10:09 +02:00
Paul Rouget
10f86935b8 Support hidpi 2019-08-23 11:08:46 +02:00
bors-servo
5bf00c07c2
Auto merge of #24013 - paulrouget:gestureCapture, r=jdm
[hololens] Gesture capture

I can't reproduce #24010 but I think this should fix it.

Fix #24010

Depends on #24008

<!-- 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/24013)
<!-- Reviewable:end -->
2019-08-23 01:06:45 -04:00
bors-servo
8672ab5447
Auto merge of #23999 - paulrouget:missingCMethods, r=jdm
Missing C methods

Depends on #23983

Fix #23969

<!-- 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/23999)
<!-- Reviewable:end -->
2019-08-22 22:59:55 -04:00
Paul Rouget
b642ff2057 Implement missing C callbacks 2019-08-22 07:43:12 +02:00
Josh Matthews
c98878f833 Downgrade UWP app target platform. 2019-08-21 20:28:46 -04:00
angelortiz1007
3dd1bfc317 Added support to download nuget and added python code to automate the x64 and arm64 mach build -r/-d --uwp build process. 2019-08-21 20:28:41 -04:00
Paul Rouget
aaefaee5dc Disable URL bar hit testing while scrolling in Servo 2019-08-21 11:12:20 +02:00
Paul Rouget
5c1d130217 Handle servo:// url 2019-08-21 11:03:19 +02:00
bors-servo
5f89dc87bd
Auto merge of #23983 - paulrouget:handlePanic, r=jdm
[hololens] Handle servo panic

Depends on #23981

Fix #23937

I've used a different approach than checking the return code of every single functions.
Basically calling a C function on panic.

That means the errors are not recoverable. I think it's fine for now.

I'm open to any other better approach.

@jdm what do you think?

<!-- 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/23983)
<!-- Reviewable:end -->
2019-08-21 00:50:45 -04:00
Paul Rouget
3933b432fa Panic HoloLens app on rust panic 2019-08-21 06:20:20 +02:00
Paul Rouget
42f2c472f7 Remove Immersive Mode demo 2019-08-20 08:17:43 +02:00
Paul Rouget
d09692664e Use URL keyboard layout for urlbar 2019-08-20 05:34:48 +02:00
Paul Rouget
92f57b66d1 move control to its own directory 2019-08-19 07:12:17 +02:00
Paul Rouget
663ec48e00 Move Servo into a Control Template 2019-08-19 07:12:16 +02:00
bors-servo
9a0c02cfc1
Auto merge of #23978 - servo:jdm-patch-49, r=Manishearth
Enable webxr for the UWP port.

This avoids a common papercut for the UWP port while our webxr support is still in progress.

<!-- 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/23978)
<!-- Reviewable:end -->
2019-08-16 18:19:15 -04:00
Josh Matthews
a94d4b267a
Enable webxr for the UWP port. 2019-08-15 17:55:48 -04:00
Alan Jeffrey
9a2ba596e5 Package both Servo2D and Servo3D in one magicleap mpk 2019-08-15 10:19:02 -05:00
bors-servo
c47575535c
Auto merge of #23963 - asajeffrey:magicleap-grainier, r=Manishearth
Reduce magicleap servo screen resolution

<!-- Please describe your changes on the following line: -->

Reduce the magicleap resolution from 720p to 480p. (Videos at 720p seem to lag.)

---
<!-- 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 do not require tests because we don't test native UI

<!-- 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/23963)
<!-- Reviewable:end -->
2019-08-14 10:54:19 -04:00
Alan Jeffrey
b4565dd3e2 Reduce magicleap servo screen resolution 2019-08-13 13:50:50 -05:00
Manish Goregaokar
c879ce078d Use packaged OpenXR 2019-08-12 19:28:48 -07:00
Manish Goregaokar
acfe1ee0dd Add support for OpenXR hololens backend 2019-08-12 19:28:48 -07:00
Alan Jeffrey
db4edaee87 Make the magicleap servo2d app 16x9 rather than square 2019-08-12 17:15:35 -05:00
Alan Jeffrey
4709a3061d Use the built-in laser pointer for magicleap 2019-08-12 11:26:46 -05:00
bors-servo
2af31be4ec
Auto merge of #23944 - Manishearth:hl-scroll, r=jdm
Fix scrolling on hololens

This got inverted in https://github.com/servo/servo/pull/23900 by accident, mostly because the old code had two ordering mistakes that cancel each other out.

r? @jdm @paulrouget

<!-- 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/23944)
<!-- Reviewable:end -->
2019-08-10 14:21:07 -04:00
Manish Goregaokar
8686e74c25 Fix scrolling on hololens 2019-08-09 16:53:23 -07:00
Alan Jeffrey
deb06ffcec Updated Servo2D to LRE v0.22.0 2019-08-09 15:02:53 -05:00
Alan Jeffrey
11b3d78f40 Added gstreamer support to the magicleap port 2019-08-08 16:52:50 -05:00
Paul Rouget
20c7692e3e Add clang-format file 2019-08-02 00:45:42 +02:00
Paul Rouget
b7667ff362 Clarify hololens loop 2019-08-02 00:45:42 +02:00
bors-servo
45af8a34fe
Auto merge of #23900 - paulrouget:tasks, r=jdm
Use tasks instead of events

<!-- 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/23900)
<!-- Reviewable:end -->
2019-08-01 03:46:44 -04:00
Paul Rouget
224fc8bea5 Missing libraries for HoloLens x64 2019-07-31 19:46:51 +02:00
Paul Rouget
4525530310 Use tasks instead of events 2019-07-31 18:59:28 +02:00
Josh Matthews
8a10faf3b9 Remove GStreamer dependencies from UWP app. Remove GStreamer backend on Windows.
It's impossible to conditionally use a crate based only on cargo features, so
temporarily disable the backend on all Windows builds while we sort out how
to get the UWP builds working again.
2019-07-30 21:17:34 -07:00
Josh Matthews
71a3b24529
Fix deployment condition for debug arm64 GStreamer DLL. 2019-07-30 00:05:38 -04:00
Josh Matthews
330706b73b Add missing GStreamer DLLs to ARM64 UWP app. 2019-07-28 12:46:22 -04:00
bors-servo
b9b01764fb
Auto merge of #23863 - jdm:gstreamer-uwp, r=ferjm
Various UWP GStreamer improvements

There are a number of positive changes in these commits:
* we successfully load GStreamer plugins in ARM64 UWP builds
* we correctly link the ARM64 ANGLE libraries when appropriate
* it is no longer necessary to manually set the LIB environment variable on Windows
* we automatically download and link against UWP-friendly GStreamer binaries when building with `--uwp`
* the use of vcruntime140.dll, msvcp140.dll and api-ms-win-crt-runtime-l1-1-0.dll in the UWP application has been removed and the build does not repackage them
* the set of base supporting GStreamer DLLs has been expanded to allow the gstlibav plugin to load correctly

---
<!-- 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 #23742
- [x] There are tests for these changes

<!-- 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/23863)
<!-- Reviewable:end -->
2019-07-27 12:03:11 -04:00
Josh Matthews
817a7fe2af Add more DLLs to UWP app. 2019-07-27 09:55:42 -04:00
Josh Matthews
5d3d766204 Vendor UWP GStreamer binaries. 2019-07-27 09:55:42 -04:00
Paul Rouget
c6a2f6eb05 Fix shutdown 2019-07-26 18:25:29 +02:00
bors-servo
3e90b93b83
Auto merge of #23845 - paulrouget:cleanup, r=jdm
[hololens] More events, remove most of the statics, better shutdown

Depends on #23831

- Buttons are greyed out when necessary
- Reload, Stop, Back and Fwd are properly bound
- Servo.cpp rewritten in a much cleaner way
- Removed most of the statics
- Improved (but not full) shutdown

<!-- 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/23845)
<!-- Reviewable:end -->
2019-07-25 04:39:50 -04:00
bors-servo
9f6d134957
Auto merge of #23841 - servo:arm64-configuration, r=paulrouget
Make Windows arm64 easy

* Add a ServoApp project configuration
* Add a `--win-arm64` build flag (now `python mach build -r --win-arm64 --uwp`)
* Automatically set up GStreamer LIB environment
* Yell if the cross-compilation environment isn't set up correctly
* Automatically find the Visual C++ installation for DLL packaging, rather than relying on an environment variable

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #23793 and fix #23795
- [x] There are tests for these changes

<!-- 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/23841)
<!-- Reviewable:end -->
2019-07-25 01:25:39 -04:00
Paul Rouget
d0436f16b6 More events, remove most of the statics, better shutdown 2019-07-25 05:47:56 +02:00
bors-servo
82f649751c
Auto merge of #23835 - jdm:arm64-openssl, r=paulrouget
Use openssl dependency that works on arm64.

This uses binaries that I generated with https://github.com/servo/openssl-src-rs/tree/servo and https://github.com/servo/openssl/tree/servo that don't crash on arm64.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #23811
- [x] These changes do not require tests can't run automated tests for arm64 windows.

<!-- 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/23835)
<!-- Reviewable:end -->
2019-07-24 16:11:14 -04:00
bors-servo
b8af92a3ef
Auto merge of #23831 - paulrouget:hl2.scroll, r=jdm
Support Scroll in HoloLens mode

<!-- 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/23831)
<!-- Reviewable:end -->
2019-07-24 13:52:52 -04:00
Josh Matthews
317977237d Add ARM64 configuration to ServoApp. 2019-07-23 11:14:25 -04:00
Josh Matthews
157077c826 Use Servo's ANGLE fork for UWP. 2019-07-23 09:41:59 -04:00
Josh Matthews
962a2a0afa Use openssl dependency that works on arm64. 2019-07-23 09:00:41 -04:00