From b40db5b55d5035f3cae3078d0c92f75b6b49f9fd Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Wed, 11 Jan 2017 09:04:03 +0100 Subject: Position insertion point in input field with mouse --- components/script_layout_interface/rpc.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'components/script_layout_interface/rpc.rs') 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, client_point: Point2D) -> Vec; + + fn text_index(&self) -> TextIndexResponse; } pub struct ContentBoxResponse(pub Rect); @@ -92,3 +94,6 @@ impl MarginStyleResponse { } } } + +#[derive(Clone)] +pub struct TextIndexResponse(pub Option); -- cgit v1.2.3