aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_layout_interface/rpc.rs
diff options
context:
space:
mode:
authorFlorian Merz <flomerz@gmail.com>2017-01-11 09:04:03 +0100
committerFlorian Merz <flomerz@gmail.com>2017-01-11 09:04:03 +0100
commitb40db5b55d5035f3cae3078d0c92f75b6b49f9fd (patch)
tree99b06f30a460e468a6ef9866771ca305a24b6ebd /components/script_layout_interface/rpc.rs
parentc784bc69443ee6f4f3bd54474ac0e03a2bb92a6f (diff)
downloadservo-b40db5b55d5035f3cae3078d0c92f75b6b49f9fd.tar.gz
servo-b40db5b55d5035f3cae3078d0c92f75b6b49f9fd.zip
Position insertion point in input field with mouse
Diffstat (limited to 'components/script_layout_interface/rpc.rs')
-rw-r--r--components/script_layout_interface/rpc.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/script_layout_interface/rpc.rs b/components/script_layout_interface/rpc.rs
index 7bc58dbf334..7b559078291 100644
--- a/components/script_layout_interface/rpc.rs
+++ b/components/script_layout_interface/rpc.rs
@@ -39,6 +39,8 @@ pub trait LayoutRPC {
fn margin_style(&self) -> MarginStyleResponse;
fn nodes_from_point(&self, page_point: Point2D<f32>, client_point: Point2D<f32>) -> Vec<UntrustedNodeAddress>;
+
+ fn text_index(&self) -> TextIndexResponse;
}
pub struct ContentBoxResponse(pub Rect<Au>);
@@ -92,3 +94,6 @@ impl MarginStyleResponse {
}
}
}
+
+#[derive(Clone)]
+pub struct TextIndexResponse(pub Option<usize>);