mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
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).
This commit is contained in:
parent
636641f905
commit
7371e0b8e3
23 changed files with 564 additions and 171 deletions
|
@ -11,6 +11,7 @@ use geom::scale_factor::ScaleFactor;
|
|||
use hyper::header::Headers;
|
||||
use hyper::method::{Method, Get};
|
||||
use layers::geometry::DevicePixel;
|
||||
use servo_util::cursor::Cursor;
|
||||
use servo_util::geometry::{PagePx, ViewportPx};
|
||||
use std::comm::{channel, Sender, Receiver};
|
||||
use url::Url;
|
||||
|
@ -208,6 +209,8 @@ pub enum Msg {
|
|||
/// Requests that the constellation inform the compositor of the title of the pipeline
|
||||
/// immediately.
|
||||
GetPipelineTitleMsg(PipelineId),
|
||||
/// Requests that the constellation inform the compositor of the a cursor change.
|
||||
SetCursorMsg(Cursor),
|
||||
}
|
||||
|
||||
/// Similar to net::resource_task::LoadData
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue