Arpad Borsos
c880c97b1b
rename deprecated utf16_units to encode_utf16
2016-03-07 16:14:04 +01:00
Manish Goregaokar
dc0e467945
Upgrade to rustc 1.6.0-nightly (d5fde83ae 2015-11-12)
...
… and libc 0.2 and many other dependencies
2015-11-27 00:15:29 -05:00
Johann Tuffe
ec07178b6f
sort all uses
2015-08-20 20:47:12 +08:00
Ms2ger
577407fe68
Improve indentation in CEF strings.
2015-06-20 14:04:24 +02:00
Ms2ger
893fc18c71
Remove unnecessary transmutes from CEF strings.
2015-06-20 14:04:22 +02:00
Ms2ger
611a0cd117
Assign None into CEF string drop fields rather than transmuting a null pointer.
2015-06-20 14:04:14 +02:00
Simon Sapin
ef8edd4e87
Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.
2015-05-05 10:07:34 -04:00
Ms2ger
de94e39ff7
Stop using int/uint in CEF.
2015-04-13 14:11:17 +02:00
Ms2ger
b45cf4ccf8
Fix some warnings in the CEF port.
2015-03-23 00:35:23 +01:00
Ms2ger
7f47b8b8e2
Fix warnings in cef.
2015-02-13 14:57:52 +01:00
Ms2ger
2026cbada2
Fix various build warnings.
2015-01-28 20:42:39 +01:00
Josh Matthews
95fc29fa0d
Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.
2015-01-28 10:16:49 +10:00
Ms2ger
524966e3af
Use std::cmp::Ordering explicitly.
2015-01-22 14:49:25 +01:00
Ms2ger
16c7060bc8
Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19.
2015-01-08 09:58:46 -05:00
Patrick Walton
8b2aadc30b
ports/cef: Implement accelerated compositing for the CEF port.
2014-12-10 08:35:47 -08:00
Patrick Walton
f97e9dfa8a
ports/cef: Replace calls to malloc with calloc.
2014-11-28 09:27:08 -06:00
Patrick Walton
3bf779cd21
ports/cef: Use the CEF translator tool to generate the full set of CEF
...
bindings.
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.
2014-11-27 10:31:32 -06:00
Mike Blumenkrantz
c8da9e1a54
embedding: cef_string_ascii_to_wide()
2014-11-20 11:53:47 -05:00
Mike Blumenkrantz
0d21a68ee7
embedding: cef_string_ascii_to_utf16()
2014-11-20 11:53:47 -05:00
Mike Blumenkrantz
bd5419418e
embedding: cef_string_wide_to_utf8()
2014-11-20 11:53:47 -05:00
Mike Blumenkrantz
8b5f4cff3d
embedding: cef_string_utf8_to_wide()
2014-11-20 11:53:47 -05:00
Mike Blumenkrantz
031963c91e
embedding: cef_string_wide_cmp()
2014-11-20 11:53:44 -05:00
Mike Blumenkrantz
5f10092995
embedding: convert callback Option<> matching to map()
2014-11-14 17:18:50 -05:00
Mike Blumenkrantz
11e30731ef
embedding: change Option<> unwrapping for fptrs to use match
2014-11-14 17:08:36 -05:00
Mike Blumenkrantz
d33f74f499
embedding: remove eutil::fptr_is_null, fix #3967 , add Option<> to fptrs
2014-11-14 14:30:59 -05:00
bors-servo
99fc4ab634
auto merge of #3947 : zmike/servo/embedding-string_map, r=jdm
...
implements a string map which is 100% identical to CEF
r+ @larsbergstrom @jdm
2014-11-13 17:06:30 -07:00
Mike Blumenkrantz
2df8125985
embedding: fix conflicts from rustup
2014-11-13 16:35:38 -05:00
Mike Blumenkrantz
19c80b1741
embedding: replace all occurrences of slicing to &str with slice_to_str()
2014-11-13 14:41:13 -05:00
Mike Blumenkrantz
3d0d004887
embedding: replace transmutes with manual casts in cef_string_utf8_cmp()
2014-11-13 13:49:12 -05:00
Mike Blumenkrantz
852bfdd859
embedding: cef_string_utf8_cmp()
2014-11-09 21:21:41 -05:00
Mike Blumenkrantz
9fe95fc77e
embedding: implement cef_string_utf16_cmp()
2014-10-15 11:04:36 -04:00
Mike Blumenkrantz
5bbce40efe
handle str::from_utf8() failure, improve return calls
2014-10-13 01:46:00 -04:00
Mike Blumenkrantz
62deac9346
use enc.len() for cef_string_utf8_to_utf16 conversion size
2014-10-13 01:32:32 -04:00
Mike Blumenkrantz
cb5d7b98bf
remove rust-encoding usage from cef
2014-10-12 23:36:43 -04:00
Mike Blumenkrantz
f657e76e13
implement cef_string_utf16_to_utf8()
2014-10-12 06:00:01 -04:00
Mike Blumenkrantz
e794f856cf
implement cef_string_utf8_to_utf16()
2014-10-12 06:00:01 -04:00
Jack Moffitt
c6ab60dbfc
Cargoify servo
2014-09-08 20:21:42 -06:00