aboutsummaryrefslogtreecommitdiffstats
path: root/ports
Commit message (Collapse)AuthorAgeFilesLines
* Add support for touch events on AndroidManish Goregaokar2018-11-203-1/+113
| | | | | | | | | | 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.
* Update MPL license to https (part 1)Jan Andre Ikenmeyer2018-11-1917-17/+17
|
* Update crossbeam-channel to 0.3Bastien Orivel2018-11-181-1/+1
|
* Update image related dependenciesBastien Orivel2018-11-181-2/+2
|
* Auto merge of #22206 - asajeffrey:magicleap-sharks-with-frikkin-lasers, r=jdmbors-servo2018-11-171-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a laser pointer rather than the trackpad to control web content <!-- Please describe your changes on the following line: --> Replace the trackpad with a laser pointer in the magicleap app. --- <!-- 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 #22184. <!-- Either: --> - [X] These changes do not require tests because no testing for ML <!-- 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/22206) <!-- Reviewable:end -->
| * Use a laser pointer rather than the trackpad to control web content.Alan Jeffrey2018-11-151-1/+1
| |
* | Move prepare_pixels helper functions to canvas_traitsAnthony Ramine2018-11-161-1/+1
|/
* Use keyboard-types::webdriver::send_keysPyfisch2018-11-111-1/+1
| | | | | | | | This improves the quality of KeyboardEvents sent by WebDriver. Now key, code, location and modifiers are set according to spec. CompositionEvents are discarded as servo does not handle them at all.
* Get the magicleap build to work in CIAlan Jeffrey2018-11-093-8/+5
|
* Remove useless `use crate_name;` imports.Simon Sapin2018-11-084-10/+0
| | | | A `crate_name::foo` path always works in 2018
* `cargo fix --edition-idioms`Simon Sapin2018-11-087-58/+19
|
* Reorder importsPyfisch2018-11-064-12/+14
|
* Format remaining filesPyfisch2018-11-065-120/+180
|
* Switch most crates to the 2018 editionSimon Sapin2018-11-063-0/+3
|
* Sort `use` statementsSimon Sapin2018-11-061-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-065-9/+9
|
* Auto merge of #22092 - paulrouget:thread_count, r=manishearthbors-servo2018-11-064-1/+56
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Count threads at shutdown, warn if not all finished and optionally block On Desktop, after servo shutdown, the process exits, killing all the still-running threads. On mobile, the process doesn't necessarily shutdown, and we are left with multiple threads failing to use channels, printing warning and panicking. In the future, we'd like to do a clean shutdown, as in, shutdown only once all the threads have properly finished. For now, I'm printing a warning if all the threads are not finished, and also add an option to only exit if all the threads have finished. This only works on MacOS for now, in C, as I haven't found a Rust/multiplatform way to count running threads. I recommend trying to run servo with `--clean-shutdown` option. Interesting to see how long it takes for other threads to shutdown, and see which threads start panicking. --- <!-- 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/22092) <!-- Reviewable:end -->
| * Count threads at shutdown and warn if not all finishedPaul Rouget2018-11-064-1/+56
| |
* | Auto merge of #22094 - asajeffrey:magicleap-shutdown, r=paulrougetbors-servo2018-11-061-3/+25
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Shut down Servo when the ML app quits <!-- Please describe your changes on the following line: --> Shut down servo when shutting down the magic leap app. --- <!-- 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 ML <!-- 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/22094) <!-- Reviewable:end -->
| * | Argh tabs vs spacesAlan Jeffrey2018-11-051-2/+2
| | |
| * | Responding to review commentsAlan Jeffrey2018-11-051-2/+7
| | |
| * | Shut down servo when the ML app quitsAlan Jeffrey2018-11-021-3/+20
| | |
* | | Support scrolling in Magic Leap ServoAlan Jeffrey2018-11-011-6/+88
|/ /
* | Auto merge of #22060 - jdm:ml, r=asajeffreybors-servo2018-11-011-0/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a build switch to disable the native bluetooth backend. Fixes #22059. <!-- 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/22060) <!-- Reviewable:end -->
| * | Add a build switch to disable the native bluetooth backend.Josh Matthews2018-10-301-0/+1
| |/
* / Get the Servo2D URL bar to show the current URL, and to navigate when edited.Alan Jeffrey2018-10-311-1/+40
|/
* Hook up the back and forward buttons to history traversal in Magic Leap Servo2DAlan Jeffrey2018-10-301-19/+39
|
* Auto merge of #22044 - asajeffrey:magicleap-less-egl-buffer-swapping, r=jdmbors-servo2018-10-301-19/+23
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce the amount of EGL buffer swapping the ML port is doing <!-- Please describe your changes on the following line: --> At the moment, we're swapping the EGL buffers every heartbeat, which produces a lot of flickering. We should only swap the buffers when needed. --- <!-- 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 have no way to test on ML <!-- 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/22044) <!-- Reviewable:end -->
| * Reduce the amount of EGL buffer swapping the ML port is doingAlan Jeffrey2018-10-291-19/+23
| |
* | Auto merge of #22048 - paulrouget:remove_prepare_for_composite_args, r=jdmbors-servo2018-10-302-13/+9
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | remove useless arguments from prepare_for_composite Accidentally fixes #22009 --- <!-- 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 #22009 (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/22048) <!-- Reviewable:end -->
| * | remove useless arguments from prepare_for_compositePaul Rouget2018-10-302-13/+9
| | |
* | | Auto merge of #22045 - asajeffrey:magicleap-follow-hyperlinks, r=paulrougetbors-servo2018-10-301-0/+59
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Get the ML port to follow hyperlinks <!-- Please describe your changes on the following line: --> This PR adds some basic mouse support to the magic leap touchpad. Moves are mapped to mouse moves (for hover style) and trigger pulls are mapped to mouse clicks (for following hyperlinks). --- <!-- 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 can't test on ML <!-- 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/22045) <!-- Reviewable:end -->
| * | | Get the ML port to follow hyperlinksAlan Jeffrey2018-10-291-0/+59
| | |/ | |/|
* | | Auto merge of #22021 - paulrouget:shutdown, r=paulrougetbors-servo2018-10-303-1/+61
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | 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 -->
| * | Android: proper shutdown mechanismPaul Rouget2018-10-263-1/+61
| |/
* | Support building for Magic Leap.Alan Jeffrey2018-10-292-0/+251
| |
* | Update osmesa-srcAnthony Ramine2018-10-261-4/+1
|/
* Auto merge of #21881 - pyfisch:keyboard-types, r=paulrougetbors-servo2018-10-176-425/+383
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use keyboard-types crate Have embedders send DOM keys to servo and use a strongly typed KeyboardEvent from the W3C UI Events spec. All keyboard handling now uses the new types. Introduce a ShortcutMatcher to recognize key bindings. Shortcuts are now recognized in a uniform way. Updated the winit port. Updated webdriver integration. part of #20331 What this PR does: * allow the use non-ASCII keyboards for text input * decouple keyboard event "key" from "code" (key meaning vs location) What this PR does not do: * completely improve keyboard events send from winit and webdriver * add support for CompositionEvent or IME Notes: * The winit embedder does not send keyup events for printable keys (this is a regression) * keyboard-types is on crates.io because I believe it to be useful outside of servo. If you prefer I can add a copy in this repo. <!-- 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/21881) <!-- Reviewable:end -->
| * Minor keyboard updatesPyfisch2018-10-133-66/+49
| | | | | | | | | | | | Support combined character input from winit. Make use of utility methods from keyboard-types. Remove prinatable attribute of KeyboardEvent.
| * Use keyboard-types cratePyfisch2018-10-076-393/+368
| | | | | | | | | | | | | | | | | | | | | | | | | | Have embedders send DOM keys to servo and use a strongly typed KeyboardEvent from the W3C UI Events spec. All keyboard handling now uses the new types. Introduce a ShortcutMatcher to recognize key bindings. Shortcuts are now recognized in a uniform way. Updated the winit port. Updated webdriver integration. part of #20331
* | Flush the android logging buffer when most recent read fills it up.Josh Matthews2018-10-151-1/+1
| |
* | Make android logging thread only process buffer slice that contains real data.Josh Matthews2018-10-151-0/+3
| |
* | Report to logcat when android logging thread terminates unexpectedly.Josh Matthews2018-10-151-1/+4
|/
* Disable subpixel text antialiasing for ServoSurfacePaul Rouget2018-10-063-1/+12
|
* Make JNI code more robustPaul Rouget2018-10-053-118/+203
|
* Auto merge of #21825 - jdm:backtrace-helpers, r=Manishearthbors-servo2018-10-022-0/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Optional backtraces for JS errors and WebGL errors This adds two new build-time features to enable useful debugging tools when investigating why JS and WebGL content isn't working. They're optional because they're quite heavyweight. --- - [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 they're optional developer features. <!-- 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/21825) <!-- Reviewable:end -->
| * script: Optionally store backtraces when throwing DOM exceptions.Josh Matthews2018-10-012-1/+3
| |
| * webgl: Add feature to store backtraces for each WebGL API call for easier ↵Josh Matthews2018-10-012-0/+2
| | | | | | | | debugging.
* | com.mozilla to org.mozillaPaul Rouget2018-10-021-18/+18
| |
* | Auto merge of #21809 - servo:features, r=SimonSapinbors-servo2018-09-271-0/+3
|\ \ | |/ |/| | | | | | | | | | | | | | | | | Only build ports/servo by default (except Android), add `./mach build --libsimpleservo` Fixes #21314 <!-- 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/21809) <!-- Reviewable:end -->