diff options
author | HyunJune Kim <hyunjune.kim@samsung.com> | 2014-02-05 18:01:13 +0900 |
---|---|---|
committer | HyunJune Kim <hyunjune.kim@samsung.com> | 2014-02-10 11:16:07 +0900 |
commit | c8d503898a6f53126c6ead740fcfa880b9059273 (patch) | |
tree | f48a177a76edc65d89d7fdaafbaa6da1401336fe /src/components/script/layout_interface.rs | |
parent | d2f8b593a9a61e0bd4984f4c1dabad4239657d11 (diff) | |
download | servo-c8d503898a6f53126c6ead740fcfa880b9059273.tar.gz servo-c8d503898a6f53126c6ead740fcfa880b9059273.zip |
This is implement Hover Event. If over element, currently full reflow. after PR, will make partial reflow.
Diffstat (limited to 'src/components/script/layout_interface.rs')
-rw-r--r-- | src/components/script/layout_interface.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/script/layout_interface.rs b/src/components/script/layout_interface.rs index b0b9ec479f4..8f6688b84aa 100644 --- a/src/components/script/layout_interface.rs +++ b/src/components/script/layout_interface.rs @@ -57,6 +57,7 @@ pub enum LayoutQuery { ContentBoxesQuery(AbstractNode, Chan<ContentBoxesResponse>), /// Requests the node containing the point of interest HitTestQuery(AbstractNode, Point2D<f32>, Chan<Result<HitTestResponse, ()>>), + MouseOverQuery(AbstractNode, Point2D<f32>, Chan<Result<MouseOverResponse, ()>>), } /// The address of a node. Layout sends these back. They must be validated via @@ -66,6 +67,7 @@ pub type UntrustedNodeAddress = *c_void; pub struct ContentBoxResponse(Rect<Au>); pub struct ContentBoxesResponse(~[Rect<Au>]); pub struct HitTestResponse(UntrustedNodeAddress); +pub struct MouseOverResponse(~[UntrustedNodeAddress]); /// Determines which part of the #[deriving(Eq, Ord)] |