Commit graph

4498 commits

Author SHA1 Message Date
Michael Wu
d3c669db45 Update azure to fix gonk build 2014-12-15 09:21:47 -05:00
Michael Wu
814ca68c72 Add handle_key stub to gonk port 2014-12-15 09:21:32 -05:00
Nathan E. Egge
b0552cb98e Sending key events through script task before processing them in the compositor.
Fixes #4163
2014-12-12 12:31:44 -05:00
Joseph Crail
c254d195ad Fix spelling mistakes in comments. 2014-12-11 23:56:29 -05:00
Glenn Watson
76c18473b1 Remove glut port now that android glutin has landed. 2014-12-12 11:04:44 +10:00
Glenn Watson
9d192de63d Switch android to glutin. 2014-12-12 08:13:04 +10:00
Glenn Watson
eb19d663f0 Update skia + azure to get android compile and text rendering fixes. Sync CEF as well. 2014-12-11 10:53:32 +10:00
bors-servo
5b53d5a163 auto merge of #4316 : michaelwu/servo/fix-gonk, r=glennw
This makes the gonk port build/work again after the recent CEF port update.
2014-12-10 13:15:59 -07:00
Glenn Watson
2bd6e48035 CEF updates for Linux / MiniServo-GTK. 2014-12-11 05:46:26 +10:00
Michael Wu
fe42749487 Make the gonk port work again 2014-12-10 11:43:30 -05:00
Patrick Walton
8b2aadc30b ports/cef: Implement accelerated compositing for the CEF port. 2014-12-10 08:35:47 -08:00
Michael Wu
4d71be1fc9 Remove use of rustuv/green in the gonk port. 2014-12-09 16:27:24 -05:00
bors-servo
cbbbf4fbb5 auto merge of #4306 : michaelwu/servo/gonk-port-three, r=glennw
Trying again since critic didn't notice https://github.com/servo/servo/pull/4294 .
2014-12-09 14:42:57 -07:00
Glenn Watson
4d7e134cfa Update rust-openssl to add static linking for android. 2014-12-10 07:06:40 +10:00
Michael Wu
3b42eb31fb Eliminate use of allow(dead_code) in window.rs 2014-12-09 13:29:50 -05:00
Michael Wu
0d792ce455 Convert C code to Rust 2014-12-09 13:27:01 -05:00
Ms2ger
5d71609ccd Update typeable to pick up a warning fix. 2014-12-09 13:09:36 +01:00
Michael Wu
05cd389729 Add a gonk port. 2014-12-08 18:34:02 -05:00
Glenn Watson
030dab553e Use mach to build openssl on android instead of glut makefile.
The glut makefile will be removed shortly after glutin lands
for android, so we need to build openssl for android elsewhere
in the build process.
2014-12-09 08:20:36 +10:00
Tetsuharu OHZEKI
15a32247a6 Rename WindowMethods::set_paint_state() 2014-12-08 14:05:50 +09:00
Tetsuharu OHZEKI
806b6f09c9 Rename RenderState -> PaintState 2014-12-08 14:05:50 +09: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
Manish Goregaokar
00a0f1527c Set up openssl on Android 2014-12-05 01:03:43 -08:00
Sean McArthur
b7de46970f adjust WPT since hyper fixed some 2014-12-04 10:12:04 -08:00
Glenn Watson
6f6400ee3a Disable debugging, set wikipedia page for demo. 2014-12-03 20:55:06 -08:00
Glenn Watson
f2100ec676 Update skia submodule to get android build fix. 2014-12-03 17:59:23 -08:00
Cameron Zwarich
e3b7aeb531 Remove libgreen support. 2014-12-03 15:32:15 -08:00
Patrick Walton
1c1c507c03 layout: Implement opacity per CSS-COLOR § 3.2.
This adds the infrastructure necessary to support stacking contexts that
are not containing blocks for absolutely-positioned elements. Our
infrastructure did not support that before. This minor revamp actually
ended up simplifying the logic around display list building and
stacking-relative position computation for absolutely-positioned flows,
which was nice.
2014-12-03 14:17:16 -08:00
Simon Sapin
26cd2b46df Fix up android/glut port to find its servo dependency. 2014-12-02 18:04:06 -08:00
Simon Sapin
2f413c8937 Move the servo crate from root to components/servo 2014-12-02 18:03:39 -08:00
Patrick Walton
f97e9dfa8a ports/cef: Replace calls to malloc with calloc. 2014-11-28 09:27:08 -06:00
Patrick Walton
c52f550367 Update to get the reference counting correct 2014-11-27 10:31:32 -06:00
Patrick Walton
1ac5bfe830 Add mostly-correct (albeit leaky) string marshaling 2014-11-27 10:31:32 -06:00
Patrick Walton
14ef53cf57 Add back API hashes 2014-11-27 10:31:32 -06:00
Jack Moffitt
e4362dad73 Fixes for Linux. 2014-11-27 10:31:32 -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
Simon Sapin
99e8358305 Add .cargo/config to .gitignore, move content to ports/android
This allows using .cargo/config at the root of the repository
for local path override, without risk of accidentally committing it.
2014-11-25 15:04:01 +00:00
Martin Robinson
737a14663d Update rust-layers to fix empty BufferRequest failures
rust-layers will now avoid sending empty buffer requests which can
cause failures when Servo tries to create empty platform surfaces.

Fixes #4060.
2014-11-22 23:36:21 -06:00
Mike Blumenkrantz
d4ddfaa623 embedding: redo browser creation, split after_created COM to separate function
this causes the callback to run at the expected time for applications that may depend on the browser loop having started or somesuch
2014-11-21 21:54:09 -05: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
0ddbd430a3 embedding: add cef_window_info_t decl 2014-11-21 21:52:56 -05:00
Mike Blumenkrantz
cd0bcbd777 embedding: add cef_client_t decl 2014-11-21 21:52:56 -05:00
Mike Blumenkrantz
8f34fcb530 embedding: add cef_life_span_handler_t decl 2014-11-21 21:52:56 -05:00
Mike Blumenkrantz
1704838d7d embedding: add cef_display_handler_t decl 2014-11-21 21:52:56 -05:00
Mike Blumenkrantz
cb77e79522 embedding: fix type decls 2014-11-21 21:52:56 -05:00
Glenn Watson
898c1ecc8f Remove unused exit after load option.
This simplifies some upcoming changes to how event handling works.
2014-11-21 09:15:02 +10: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