mrmiywj
909f0da3c2
add reload keyboard shortcut
...
rename the preference to shell.builtin-key-shortcuts.enabled
2016-06-23 17:37:56 +08:00
Jack Moffitt
568d454ca6
Make Servo DPI aware on Windows
...
This implements system level DPI awareness for Windows. It has three
parts:
1. Add a application manifest which is copied alongside servo.exe during
build that declares our DPI awareness level. This is needed otherwise
DPI queries will return 96dpi and our application will be upscaled on
high DPI displays.
2. Rename hidpi_factor to avoid confusion with Glutin's hidpi_factor
which does something else.
3. Correctly convert windows sizes on window creation for
Windows. Unlike OS X, Windows uses device pixels for window creation.
2016-05-20 23:40:39 -06:00
Paul Rouget
df6e7394d4
forcetouch events support
...
This enables Apple forcetouch DOM events. It requires the preference dom.forcetouch.enabled.
The DOM events are described here:
- https://developer.apple.com/library/mac/documentation/AppleApplications/Conceptual/SafariJSProgTopics/RespondingtoForceTouchEventsfromJavaScript.html
The Cocoa mechanism is documented here:
- https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSEvent_Class/#//apple_ref/doc/uid/20000016-SW274
2016-04-05 18:42:28 +08: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
Patrick Walton
c2581d5cef
compositing: In borderless mode, don't show the window until the page
...
has loaded.
This avoids a flash of unstyled content, which looks especially bad in
browser.html since unstyled content is white and browser.html has a
transparent background.
Closes #9996 .
2016-03-15 22:07:21 -07:00
Patrick Walton
8eb2cda438
Implement support for overscrolling on the Mac.
...
Requires tomaka/glutin#734 , servo/webrender_traits#14 , and
servo/webrender#217 .
2016-03-14 11:38:10 -07:00
Anthony Ramine
290694b27e
Move util::cursor to style_traits
2016-02-16 00:50:01 +01:00
Darin Minamoto
374bd5be27
Moving MouseButton from msg to script_traits
2016-01-13 19:23:45 -08:00
rohan.prinja
1f02c4ebbb
task -> thread
2016-01-10 17:58:13 +09:00
Matt Brubeck
8c4fed42b0
Minor refactoring of mouse event types
...
* Move some types into the `msg` crate so they can be shared more.
* Use MouseEventType instead of duplicating it in other enums.
2015-12-03 08:19:40 -08:00
Matt Brubeck
ef93650db9
Handle multi-touch events from glutin
2015-11-03 08:56:34 -08:00
meh
123c19a57a
Add viewport configuration support to the compositor
2015-10-14 17:38:29 +02:00
Ravi Shankar
889eec364b
sorted the extern crate, mod & use declarations
2015-09-24 02:12:45 +05:30
Brandon Fairchild
de3547e401
Fix reported test-tidy errors for unmerged import blocks
...
This merges import blocks that were reported by tidy as unmerged.
2015-09-19 12:50:14 -04:00
farodin91
f0987380dd
Implement viewport functions for window #1718
2015-09-02 00:40:52 +02:00
Johann Tuffe
ec07178b6f
sort all uses
2015-08-20 20:47:12 +08:00
Josh Matthews
8bb853f643
Fix existing syntactics nits.
2015-08-16 10:30:43 -04:00
Connor Imes
b526214a3d
Move net_error_list from net to net_traits. Fixes #7050 .
2015-08-06 16:37:08 -05:00
Bruno de Oliveira Abinader
b3927d5a2d
Implement Msg::Status with serialized url upon mouseover
...
Credits for Mike Blumenkrantz (@zmike), I just rebased against trunk and
fixed the url serialization.
Fixes #6178 .
2015-07-30 16:37:54 +03:00
bors-servo
4674afe846
Auto merge of #6525 - mrobinson:simplify-display, r=glennw
...
Update to latest rust-layers
The compositing context, painting context and display metadata have all
been collapsed into a single NativeDisplay class.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6525 )
<!-- Reviewable:end -->
2015-06-30 17:02:26 -06:00
Martin Robinson
0f27bd6c4b
Update to latest rust-layers
...
The compositing context, painting context and display metadata have all
been collapsed into a single NativeDisplay class.
2015-06-30 21:58:54 -07:00
Jesse Ruderman
1ff4fe02d9
Add keyboard shortcuts to glutin browser
2015-06-27 03:06:18 -07:00
ecoal95
8cbfb3482c
Use euclid from crates.io
2015-06-19 00:04:24 +02:00
Mike Blumenkrantz
ffa2093012
add window method for notifying when the <head> tag has been parsed
2015-06-02 22:16:28 -04:00
Mike Blumenkrantz
12f20f1ecc
add handling for favicon link elements
...
fixes #6166
2015-06-02 22:16:25 -04:00
James Graham
2b396b2485
Allow Window implementations to indicate that they don't support a clipboard.
...
This is important for the SERVO_HEADLESS configuration, because
creating a clipboard on linux creates an X context which then causes
reftest instability.
2015-06-02 08:57:09 +01:00
Mike Blumenkrantz
68fc51205f
add error enum for chromium net errors, create window method for error propagation
2015-05-27 14:45:50 -04:00
Mike Blumenkrantz
0d46a3b89a
add navigation state data to LoadComplete messages, finish cef load state cbs
2015-05-27 14:45:48 -04:00
Mike Blumenkrantz
3481c752cd
add CompositorMsg::LoadStart, implement cef_load_handler::on_loading_state_change()
...
only adds the loading:true callback this time...
2015-05-27 14:45:47 -04:00
Mike Blumenkrantz
fb72a64833
pass width and height information through to cef paint callback
2015-05-21 21:15:15 -04:00
Glenn Watson
eec3fad93d
Fixes a number of race conditions and reliability issues with reftests and compositor.
...
The basic idea is it's safe to output an image for reftest by testing:
- That the compositor doesn't have any animations active.
- That the compositor is not waiting on any outstanding paint messages to arrive.
- That the script tasks are "idle" and therefore won't cause reflow.
- This currently means page loaded, onload fired, reftest-wait not active, first reflow triggered.
- It could easily be expanded to handle pending timers etc.
- That the "epoch" that the layout tasks have last laid out after script went idle, is reflected by the compositor in all visible layers for that pipeline.
2015-05-14 09:35:53 +10:00
Ms2ger
6b127a8df8
Introduce a MouseButton enum.
2015-04-03 01:24:33 +02:00
Josh Matthews
6351fc75fd
Only store the url inside a pipeline instead of the rest of the LoadData.
2015-03-03 16:25:40 -05:00
Simon Sapin
d5dd1d658e
Upgrade to rustc ba2f13ef0 2015-02-04
2015-02-11 14:48:34 -08:00
Ms2ger
b2fcc2397e
Import msg as msg rather than servo_msg.
2015-02-10 11:40:36 +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
16c7060bc8
Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19.
2015-01-08 09:58:46 -05:00
Ms2ger
be683a0888
Rename MouseWindowEvent variants.
2015-01-05 12:08:16 +01:00
Patrick Walton
7371e0b8e3
compositing: Implement cursor
per CSS3-UI § 8.1.1 in the CEF/Mac port.
...
I'm not sure how we want to handle Linux cursors, and GLFW has no
ability to set cursors (short of disabling it and managing it yourself).
2014-12-17 22:58:52 -08:00
Ms2ger
466faac2a5
Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.
2014-12-17 15:19:45 -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
Patrick Walton
8b2aadc30b
ports/cef: Implement accelerated compositing for the CEF port.
2014-12-10 08:35:47 -08: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
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
Josh Matthews
329ba56fca
Dispatch keydown, keyup, and keypress events at appropriate times.
2014-11-13 11:27:15 -05:00
Josh Matthews
1c64dabb15
Pass all key events to the current constellation frame.
2014-11-13 11:24:14 -05:00
Patrick Walton
10f7b49cf7
Invert control flow, fix resizing, and improve checkerboarding
...
significantly by giving tiles some time to paint before we render
unrendered content.
2014-11-04 13:51:56 -08:00
Glenn Watson
2d6626e7ef
Use WindowMethods to get native graphics metadata instead of
...
relying on azure. This is a prerequisite for the switch to glutin.
Tested on Linux, mac. Tested that android + cef build.
2014-10-24 13:45:42 +10:00