Commit graph

56 commits

Author SHA1 Message Date
Anthony Ramine
c66380d83c Update Rust to 1.13.0-nightly (198713106 2016-08-26) 2016-08-28 13:45:03 +02:00
Anthony Ramine
3bfeaf08b1 Rewrite CefBrowser::send_window_event with try_borrow 2016-08-20 21:00:16 +02:00
Patrick Trottier
ca1fdb70ae Fix iter_arith warning when running ./mach build-cef 2016-08-14 10:36:32 -04:00
Matt Brubeck
83a4658cb4 Fix unused extern crate warnings in build-cef 2016-05-12 09:03:52 -07:00
Matt Brubeck
b2e874e151 Remove unnecessary dependencies and features from top-level Cargo.tomls
The features for each crate will be computed based on the union of features
specified in the dependency graph.  Specifying the same ones again just adds
more ways for them to get out of sync.
2016-05-11 08:46:55 -07:00
Josh Matthews
03e3cb24b9 Remove CEF warnings about unused features and snake case names. 2016-03-29 10:03:10 -04:00
Arpad Borsos
c880c97b1b rename deprecated utf16_units to encode_utf16 2016-03-07 16:14:04 +01:00
Ulf Nilsson
8c07a1a3af Use piston_image instead of stb_image for decoding JPEGs
Bump image to 0.7
2016-03-02 09:13:49 +01:00
Anthony Ramine
290694b27e Move util::cursor to style_traits 2016-02-16 00:50:01 +01:00
Matt Brubeck
b649246fe2 Replace stb_image with PistonDevelopers/image
Fixes #3368
2015-10-09 12:23:33 -07:00
Ms2ger
561368fdd5 Remove the now-stable box_raw feature gate from cef. 2015-09-24 18:36:10 +02:00
Connor Imes
b526214a3d Move net_error_list from net to net_traits. Fixes #7050. 2015-08-06 16:37:08 -05:00
Ms2ger
c5902bac93 Remove the negate_unsigned feature gate from CEF.
There's no real reason to use it.
2015-06-27 20:01:34 +02:00
Ms2ger
9330c7420f Remove the unused thread_local feature gate. 2015-06-26 22:57:37 +02:00
Ms2ger
73a7e92bfd Update to rustc 2d0cbf3e3e25e092bd9e4c94d08e446b680869f0. 2015-06-25 20:02:36 +02:00
Michael Wu
675267b782 Upgrade to SM 39 2015-06-19 18:42:48 -04:00
ecoal95
8cbfb3482c Use euclid from crates.io 2015-06-19 00:04:24 +02:00
Eduard Burtescu
00e8e5f77d Use the correct log crate and setup env_logger in main. 2015-06-06 23:20:40 +03:00
Mike Blumenkrantz
caa8172560 implement cef browser title setting callback 2015-05-27 14:45:40 -04:00
Lars Bergstrom
442bfb716b Update various Cargo patches and deal with the fallout 2015-05-22 16:16:50 -05:00
Mike Blumenkrantz
745e3bd49f update embedding interfaces again to use filling_drop feature
...and remove trailing whitespaces
2015-05-06 12:33:15 -04: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
6b127a8df8 Introduce a MouseButton enum. 2015-04-03 01:24:33 +02:00
Ms2ger
5f15eb5fbf Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev. 2015-03-18 13:18:31 -04:00
Ms2ger
35a707e287 Remove the libc feature gate from cef.
As it depends on the crates.io libc crate, the feature gate doesn't apply.
2015-02-19 14:42:21 +01:00
Ms2ger
7f47b8b8e2 Fix warnings in cef. 2015-02-13 14:57:52 +01:00
hgentry
9ee3278c28 Remove our copy of Utf16Encoder in favor of the built-in equivalent (fixes #4725). 2015-02-10 15:31:31 +01:00
Ms2ger
a09a912178 Import net as net rather than servo_net. 2015-02-10 12:55:24 +01:00
Ms2ger
b2fcc2397e Import msg as msg rather than servo_msg. 2015-02-10 11:40:36 +01:00
Josh Matthews
446f0f447e Allow unused variables, imports, and mutable. 2015-02-09 17:41:57 -05:00
Matt Brubeck
96cb0fbabf Add [no_link] attribute to plugins crate
Fixes errors linking to our CEF embedding library.
2015-02-03 13:12:14 -08:00
Ms2ger
505159a464 Import the util crate as util rather than servo_util.
This used to conflict with the util crate from the standard library, which
has long since been removed.

The import in layout has not been changed because of a conflict with the
util mod there.
2015-01-29 12:16:41 +01:00
Josh Matthews
95fc29fa0d Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. 2015-01-28 10:16:49 +10:00
Glenn Watson
db31b818bc Switch CEF on screen build from glfw -> glutin. 2015-01-19 08:56:43 +10:00
Ms2ger
16c7060bc8 Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19. 2015-01-08 09:58:46 -05:00
Ms2ger
79266e725c Remove unused libgreen import. 2014-12-19 21:59:32 +01:00
Glenn Watson
2bd6e48035 CEF updates for Linux / MiniServo-GTK. 2014-12-11 05:46:26 +10:00
Patrick Walton
8b2aadc30b ports/cef: Implement accelerated compositing for the CEF port. 2014-12-10 08:35:47 -08:00
Glenn Watson
ad9e76b04c Update cargo.lock for CEF and fix left over line from libgreen removal. 2014-12-08 08:03:06 +10: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
8aceb59824 embedding: redo browser creation and message loop code to be more CEF-like
big thanks to @alexcrichton for his help with this
2014-11-21 21:54:09 -05:00
Mike Blumenkrantz
37583ea8f5 embedding: add some commonly used string constants from chromium 2014-11-20 11:53:37 -05:00
Patrick Walton
10cc07e137 cef: Don't link against librustc in the final build artifact 2014-11-19 12:12:04 -08:00
Mike Blumenkrantz
89fa3bb99a embedding: begin cef string_multimap api
cef_string_multimap_alloc()
2014-11-17 14:41:22 -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
Jack Moffitt
d1b433a3b3 Rust upgrade to rustc hash b03a2755193cd756583bcf5831cf4545d75ecb8a 2014-11-13 11:17:43 +10:00
Mike Blumenkrantz
6dd1eca677 embedding: begin cef string_map api
cef_string_map_alloc()
2014-11-09 21:21:29 -05:00
Glenn Watson
69c5bc8fca Update to use new GL bindings. 2014-10-30 15:31:10 +10:00
Ms2ger
a8dc87aa2c Make some warnings errors in the cef port. 2014-10-24 00:37:47 +02:00