servo/ports/libsimpleservo
bors-servo 94e337f22f
Auto merge of #28308 - philip-lamb:phil-ime-textentry, r=jdm
Improve IME messaging to embedder with insertion point index and mult…

…iline flag.

<!-- Please describe your changes on the following line: -->
This improves handling of IME requests in the embedder by passing the location of the insertion point along with the current text, and a boolean flag 'multiline' (true for HTML textarea, false otherwise) which allows the embedder to be more clever about handling of the 'enter' or 'return' keys.

Tested and working in an embedding example.

---
<!-- 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: -->
- [x] 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. -->
2021-03-29 23:10:17 -04:00
..
api Improve IME messaging to embedder with insertion point index and multiline flag. 2021-03-29 17:55:54 +13:00
capi Auto merge of #28308 - philip-lamb:phil-ime-textentry, r=jdm 2021-03-29 23:10:17 -04:00
jniapi Improve IME messaging to embedder with insertion point index and multiline flag. 2021-03-29 17:55:54 +13:00
README.md add instruction for building libsimpleservo 2020-12-28 21:34:15 +01:00

libsimpleservo

This is a basic wrapper around Servo. While libservo itself (/components/servo/) offers a lot of flexibility, libsimpleservo (/ports/libsimpleservo/) tries to make it easier to embed Servo, without much configuration needed. It is limited to only one view (no tabs, no multiple rendering area).

Building

Run the following command to generate libsimpleservo

./mach build --release --libsimpleservo

this will generate a shared library (libsimpleservo.so on linux) as well as a header file in target/release that you can then link to your application.