Anthony Ramine
3bfeaf08b1
Rewrite CefBrowser::send_window_event with try_borrow
2016-08-20 21:00:16 +02:00
Kyle Headley
f6682c2f96
update cef build with proper Window params
2016-05-31 15:29:20 -06:00
Michael Howell
c9cb4839e4
No more headless compositor. Just the normal one.
...
This changes headless operation to strictly be a runtime option, rather
than a compile-time one. Note that the old headless version still relied
on a display server to support WebGL, while it now requires one all the
time.
Fixes #8573
2016-03-24 11:18:54 -07:00
rohan.prinja
1f02c4ebbb
task -> thread
2016-01-10 17:58:13 +09:00
Matt Brubeck
ce61dc2623
Upgrade to latest glutin
2015-11-05 09:05:17 -08:00
Mathieu Rheaume
7320433cca
Remove 'get_*' on getters as per RFC 0344 on various components
2015-09-12 20:14:01 -04:00
Ms2ger
bd53792269
Fix the CEF build.
2015-08-25 16:31:58 +02:00
João Oliveira
067a22a868
Replace uses of for foo in bar.iter()
,
...
and `for foo in bar.iter_mut(), and for foo in bar.into_iter()
(continuation of #7197 )
2015-08-18 01:46:11 +01:00
Mike Blumenkrantz
5d99933ddc
implement cef_display_handler::on_favicon_urlchange
...
also fixes #6166 but with more fix than last fix
2015-06-02 22:16:26 -04:00
Mike Blumenkrantz
2a55a91b9a
force cef browser resize check on initial load
...
ensure that the output render size matches the desired size
2015-05-28 16:04:06 -04:00
Mike Blumenkrantz
ca1f49aaa3
spawn a task for cef async browser creation to kick the main loop awake
...
without this, the initial url loading message will never be sent to the
constellation, preventing the engine from ever doing anything
2015-05-27 14:45:59 -04:00
Mike Blumenkrantz
81eb426b04
when creating a cef browser, setup the url to load but don't load it
...
cef apps will expect to enter their main loops before this happens due to
various callbacks being hit, so it's necessary to punt this loading off until
a later time
2015-05-27 14:45:58 -04:00
Mike Blumenkrantz
aef3218169
Revert "temp re-set default url for cef while I figure out wtf is going on"
...
This reverts commit 8330eabac1
.
2015-05-27 14:45:54 -04:00
Mike Blumenkrantz
90169e8f3b
force resize after sending cef_browser::on_after_created() callback
...
this fixes rendering of the first frame to be at the size of the browser
instead of the size of the initial window_info
2015-05-27 14:45:53 -04:00
Mike Blumenkrantz
3f8d8a3cc9
add back/forward/loading members to ServoCefBrowser with related browser methods
2015-05-27 14:45:49 -04:00
Mike Blumenkrantz
a809d6b911
remove unused cef imports
2015-05-27 14:45:43 -04:00
Mike Blumenkrantz
25f87aa8ab
fix compile after pcwalton's multi-event handling PR
2015-05-21 21:16:24 -04:00
Mike Blumenkrantz
ca7fc036fe
ensure window protocol handling occurs during cef browser loop updating
...
fixes window events when using cef windowed rendering
2015-05-21 21:15:18 -04:00
Mike Blumenkrantz
1cd850b121
add window member to servo cef browser object to fix framebuffer size method
...
platforms other than macos will not need/use a get_backing_rect() method since
there is no virtual pixel scaling, and this method will need to be usable
even before browsers are finished setting up, so ensure we can at least pass
initial window size back
also check method pointer availability before calling into a null function
2015-05-21 21:15:17 -04:00
Mike Blumenkrantz
8330eabac1
temp re-set default url for cef while I figure out wtf is going on
2015-05-21 21:15:13 -04:00
Patrick Walton
0098d9e9e8
compositing: Support multiple events per frame.
...
Improves scrolling performance on Mac.
2015-05-20 10:53:48 -07:00
Glenn Watson
676c59cc18
Fix a few warnings in cef build
2015-05-15 13:48:03 +10:00
bors-servo
a97f81b83d
Auto merge of #6016 - zmike:embedding-windowing, r=larsbergstrom
...
Depends on glutin PR #21
@glennw @larsbergstrom
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6016 )
<!-- Reviewable:end -->
2015-05-14 20:06:04 -05:00
Mike Blumenkrantz
6f6945aafc
try fixing macos embedding build
2015-05-14 21:00:42 -04:00
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
Mike Blumenkrantz
4513d45c04
implement cef_browser_host_t::get_window_handle()
2015-05-12 13:43:43 -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
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
Ms2ger
de94e39ff7
Stop using int/uint in CEF.
2015-04-13 14:11:17 +02:00
Jag Talon
74cd4cd56a
opts.rs: don't accept multiple URLs. Fixes #5520 .
...
Switched from opts.urls from being of type Vec to type String and changing the name to `url` as well. Changed the other files that are using opts.urls accordingly.
servo/lib.rs + gonk/src/lib.rs: no need for a block scope.
cef: fix compiler errors.
- remove the use of `mut` since it's not needed.
- use `to_owned` instead of `to_string` because it's more efficient.
2015-04-07 15:46:51 -04:00
Ms2ger
b45cf4ccf8
Fix some warnings in the CEF port.
2015-03-23 00:35:23 +01:00
Ms2ger
5f15eb5fbf
Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev.
2015-03-18 13:18:31 -04:00
Ms2ger
7f47b8b8e2
Fix warnings in cef.
2015-02-13 14:57:52 +01: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
Ms2ger
faefb27f3e
Use std::sync::atomic::Ordering explicitly.
2015-01-22 14:49:25 +01:00
Ms2ger
01ed338746
Move to to_owned rather than into_string.
...
into_string has been removed from Rust.
2015-01-20 14:49:07 +01:00
bors-servo
e4f0b816d5
auto merge of #4655 : glennw/servo/cef-glutin, r=larsbergstrom
2015-01-19 12:57:46 -07:00
Glenn Watson
8c3e3b66b3
Add basic support for closing cef tabs. Prevents crashes, but leaks memory for now.
2015-01-19 10:43:57 +10:00
Glenn Watson
db31b818bc
Switch CEF on screen build from glfw -> glutin.
2015-01-19 08:56:43 +10:00
Glenn Watson
f7b83d9a76
Add support for multiple cef browsers (multiple tabs).
2015-01-09 10:21:49 +10:00
Ms2ger
16c7060bc8
Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19.
2015-01-08 09:58:46 -05:00
Ms2ger
b6117a57aa
Replace the remaining to_string calls by into_string calls.
2014-12-31 10:34:44 +01:00
Ms2ger
466faac2a5
Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.
2014-12-17 15:19:45 -05:00
Patrick Walton
8b2aadc30b
ports/cef: Implement accelerated compositing for the CEF port.
2014-12-10 08:35:47 -08:00
Patrick Walton
1ac5bfe830
Add mostly-correct (albeit leaky) string marshaling
2014-11-27 10:31:32 -06:00
Jack Moffitt
e4362dad73
Fixes for Linux.
2014-11-27 10:31:32 -06:00