Commit graph

3667 commits

Author SHA1 Message Date
Mike Blumenkrantz
16a9712ab7 add parent window setting when creating windows with glutin
needed for embedding api usage
2015-05-13 13:24:56 -04:00
bors-servo
76225bdccb Auto merge of #5992 - zmike:random-fixups, r=larsbergstrom
Attempt to not panic as much if the resources/ dir is not where it's expected to be.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5992)
<!-- Reviewable:end -->
2015-05-12 13:26:22 -05:00
Mike Blumenkrantz
a838318b31 unset resources path on linux in embedding crate
this blocked execution on linux due to bad paths
2015-05-12 13:46:34 -04:00
Mike Blumenkrantz
4513d45c04 implement cef_browser_host_t::get_window_handle() 2015-05-12 13:43:43 -04:00
Mike Blumenkrantz
c1d6d6fe1c implement cef_browser_host_t::get_browser() method 2015-05-12 13:43:41 -04:00
Mike Blumenkrantz
28968023ba load passed url when creating cef_browser 2015-05-12 13:43:32 -04:00
Mike Blumenkrantz
797aa36484 implement cef_browser_t::get_identifier() 2015-05-12 12:52:30 -04:00
Mike Blumenkrantz
49d91a5606 fix async browser on_created callback
broken since 3bf779cd21
2015-05-12 12:52:29 -04:00
Mike Blumenkrantz
17390e75ec fix embedding rendering when using a child window
compositing must be initialized automatically in this case
2015-05-12 12:52:28 -04:00
Simon Sapin
8292f5749e Upgrade to Hyper 0.4.0 2015-05-12 16:48:21 +02:00
bors-servo
ca9c703bf5 Auto merge of #6010 - brson:next, r=pcwalton
Just cleanup.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6010)
<!-- Reviewable:end -->
2015-05-12 03:26:54 -05:00
Brian Anderson
a0d14ac71a Remove lib.rs from gonk port. Unused 2015-05-11 12:37:16 -07:00
James Graham
6e639de664 Add support for getActiveElement webdriver command 2015-05-11 17:31:23 +01:00
Ms2ger
fa31d7d909 Replace TElement::get_link() by specific methods. 2015-05-11 10:52:58 +02:00
bors-servo
d1a0aacc60 Auto merge of #6001 - Ms2ger:runtime, r=jdm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6001)
<!-- Reviewable:end -->
2015-05-10 15:14:37 -05:00
Ms2ger
34e35df986 Move get_attr and get_attrs into TElementAttributes.
These methods are only called on LayoutElement.
2015-05-10 18:26:06 +02:00
Ms2ger
cfe240d117 Remove reference counting from the Runtime implementation. 2015-05-10 18:09:09 +02:00
Ms2ger
9abe47b76f Move evaluate_script to Runtime. 2015-05-10 18:01:09 +02:00
Ms2ger
ddf6cf6a16 Update js. 2015-05-10 17:16:14 +02:00
Ms2ger
076d15992a Update js. 2015-05-10 15:58:07 +02:00
Brian Anderson
bc284691d2 Fix gonk port 2015-05-09 22:04:12 -07:00
Brian Anderson
d1b0a4bd55 Check in new Cargo.lock for cef 2015-05-09 22:04:06 -07:00
Brian Anderson
df9c132551 util: Set the experimental_enabled flag when options are set 2015-05-09 02:22:59 -07:00
Brian Anderson
f8bbc0a974 util: Rename ops::set_opts to ops::set, to match get 2015-05-09 02:12:23 -07:00
Brian Anderson
aa906a54d3 Remove call to env::current_dir from Browser
Put it in util::opts instead.
2015-05-09 00:48:25 -07:00
bors-servo
892a740426 Auto merge of #5985 - zmike:embedding-woodenbikeshed, r=larsbergstrom
Some small changes.

@larsbergstrom or whoever cares the most at this exact moment.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5985)
<!-- Reviewable:end -->
2015-05-08 15:03:52 -05:00
Mike Blumenkrantz
6e74e510c6 fix undefined symbols in embedding lib
cef_get_xdisplay() was an internal function that should not have been used here
2015-05-08 12:04:37 -04:00
bors-servo
02cf89f4d3 Auto merge of #5976 - larsbergstrom:osx-android-fixes, r=glennw
r? @metajack 

Thanks to @alexcrichton for all the work to figure out our problems here!

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5976)
<!-- Reviewable:end -->
2015-05-07 19:51:25 -05:00
Mike Blumenkrantz
7e7ee225c7 add embedding function for checking whether the loaded cef lib is servo 2015-05-07 16:58:08 -04:00
Lars Bergstrom
dedf67ab97 Pick up acrichto's fixes to OSX cross build in submodules 2015-05-07 14:27:39 -05:00
bors-servo
92f46e3149 Auto merge of #5955 - zmike:embedding-REBASE_RAGE, r=larsbergstrom
This updates all the CEF interface stuff to the current CEF codebase.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5955)
<!-- Reviewable:end -->
2015-05-07 14:10:29 -05:00
ecoal95
a3b0c10381 Remove Glutin dependency for WebGL
Now we have mac support, and since android build is broken, we can
drop glutin from WebGL code.

Went back to upstream
(see: https://github.com/servo/rust-offscreen-rendering-context/pull/1#issuecomment-99234534)

Rebased
2015-05-07 13:31:08 +02:00
James Graham
5311d9ab59 Support WebDriver takeScreenshot command.
This adds support for compositing to a PNG without actually quiting
the browser.
2015-05-07 09:56:15 +01:00
Simon Sapin
0d226722b7 Deduplicate some dependencies.
This uses some dependencies from crates.io instead of git
where the crates.io copy was already used in some other part
of the dependency tree, so we had two copies of the same library.

The `android_glue` crate is the only one left where we have two copies,
but solving that is more tricky since we hard-code a path in
`components/servo/.cargo/config`.
2015-05-07 01:56:49 +02:00
bors-servo
ccf1e6b9a7 Auto merge of #5361 - luniv:css-device-adapt, r=mbrubeck
Spec: http://dev.w3.org/csswg/css-device-adapt/

Currently, the actual viewport is used by the layout task as part of the reflow, and the compositor uses the zoom constraints. I'm not sure if anywhere else currently needs access to the constraints (i.e. there's no CSSOM as far as I can tell).

I did not implement sections 9 (viewport <META>) or 10 (handling 'auto' for 'zoom').

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5361)
<!-- Reviewable:end -->
2015-05-06 12:41:09 -05:00
Mike Blumenkrantz
7fc50db898 update cef embedding readme 2015-05-06 13:04:28 -04:00
Mike Blumenkrantz
6011d39ca1 one more embedding interfaces update because they removed cef_url & time_t 2015-05-06 12:49:32 -04: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
Mike Blumenkrantz
efb2b37185 update embedding interfaces/mod.rs to add MPL 2015-05-06 12:33:14 -04:00
Mike Blumenkrantz
ff6667f564 update embedding interfaces mod.rs generator script to add MPL
also use better zsh syntax
2015-05-06 12:33:09 -04:00
bors-servo
b762758366 Auto merge of #5953 - mbrubeck:libc, r=jdm
r? @Ms2ger

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5953)
<!-- Reviewable:end -->
2015-05-06 03:43:02 -05:00
James Gilbertson
138596e861 Constrain the viewport & zoom when reflowing 2015-05-06 00:34:33 -06:00
Glenn Watson
6ec4f3e02e Update glutin to get fix for x crash on exit. 2015-05-06 09:04:50 +10:00
Mike Blumenkrantz
ad91db7224 add shell script to automate generation of ports/cef/interfaces/mod.rs 2015-05-05 17:22:52 -04:00
Mike Blumenkrantz
c2ed3b258f implement pointer type matching for cef window cursor setting
I think this is right?
2015-05-05 17:06:31 -04:00
Mike Blumenkrantz
c62b7236a9 update various cef functions to use correct number of params
cef broke abi/api recently
2015-05-05 17:05:52 -04:00
Mike Blumenkrantz
ba8c585372 add remaining/missing cef types to types.rs
the main cef_types.h header is not part of the generation process,
so these types still need to remain manually generated for now
2015-05-05 17:04:30 -04:00
Mike Blumenkrantz
ae025b23d1 remove duplicated cef types from cef/types.rs
these are all generated now
2015-05-05 17:02:40 -04:00
Mike Blumenkrantz
4679fc77b0 update cef embedding interfaces to latest cef 2015-05-05 17:01:53 -04:00
bors-servo
6d2f70a4fd Auto merge of #5939 - jdm:websocket, r=jdm
...ets using rust-websocket.

Authors:
Shivaji Vidhale <savidhal@ncsu.edu>
William Galliher <wpgallih@ncsu.edu>
Allen Chen <achen4@ncsu.edu>
Rucha Jogaikar <rsjogaik@ncsu.edu>

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5939)
<!-- Reviewable:end -->
2015-05-05 12:57:48 -05:00