gecko-dev/servo/ports
Patrick Walton 860ec5ac31 servo: Merge #4102 - ports/cef: Use the CEF translator tool to generate the full set of CEF bindings (from pcwalton:cef-autogeneration); r=larsbergstrom
This replaces hand-implemented CEF bindings with proper Rust wrappers
automatically generated from the C++ headers. This means that, whenever
CEF's C++ headers change, we can easily generate both the appropriate C
API and the appropriate Rust API. It eliminates much of the hand-written
unsafe code within the CEF port, because the CEF translator tool now
knows how to generate Rust smart pointer wrappers for each class that
corrently perform reference counting.

Additionally, this commit adds utility macros (located in `macros.rs`)
that make it easier to correctly expose Rust objects as CEF objects.
They handle the marshaling of objects between Rust and CEF properly.
The net result of this is that you can write mostly-natural-looking Rust
in the CEF port and interact with it with a natural-looking C++ API on
the embedding side.

This setup relies on the branch of CEF located here:

    https://github.com/pcwalton/chromium-embedded-framework

To regenerate, follow the instructions in `ports/cef/README.md`. For
convenience, and because I don't anticipate the API to change much, I
have vendored in all of the appropriate interfaces.

r? @zmike or @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: 02c2f53ccd8b75ff0b87edfce4f2f9315a6417bd
2014-11-27 23:18:44 -07:00
..
android servo: Merge #4099 - Add .cargo/config to .gitignore, move content to ports/android (from SimonSapin:cargo-config); r=mbrubeck 2014-11-25 10:01:32 -07:00
cef servo: Merge #4102 - ports/cef: Use the CEF translator tool to generate the full set of CEF bindings (from pcwalton:cef-autogeneration); r=larsbergstrom 2014-11-27 23:18:44 -07:00
glfw servo: Merge #4051 - Remove unused exit after load option (from glennw:remove-exit-load); r=mbrubeck 2014-11-20 16:54:31 -07:00
glutin servo: Merge #4051 - Remove unused exit after load option (from glennw:remove-exit-load); r=mbrubeck 2014-11-20 16:54:31 -07:00