mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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. --> |
||
---|---|---|
.. | ||
api | ||
capi | ||
jniapi | ||
README.md |
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.