aboutsummaryrefslogtreecommitdiffstats
path: root/components/embedder_traits/lib.rs
diff options
context:
space:
mode:
authorPhilip Lamb <phil.git@eden.net.nz>2021-03-29 17:55:54 +1300
committerPhilip Lamb <phil.git@eden.net.nz>2021-03-29 17:55:54 +1300
commitb8a74e89cf4548deaf2b5f059a7b96ffa13a8680 (patch)
tree89a99e12274837011925e917ce3a82e27e411097 /components/embedder_traits/lib.rs
parent0539043e35c3615c408c9bff692d1c615335dc8a (diff)
downloadservo-b8a74e89cf4548deaf2b5f059a7b96ffa13a8680.tar.gz
servo-b8a74e89cf4548deaf2b5f059a7b96ffa13a8680.zip
Improve IME messaging to embedder with insertion point index and multiline flag.
Diffstat (limited to 'components/embedder_traits/lib.rs')
-rw-r--r--components/embedder_traits/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/embedder_traits/lib.rs b/components/embedder_traits/lib.rs
index e004756d4a2..c6f372dec19 100644
--- a/components/embedder_traits/lib.rs
+++ b/components/embedder_traits/lib.rs
@@ -197,7 +197,10 @@ pub enum EmbedderMsg {
/// Open interface to request permission specified by prompt.
PromptPermission(PermissionPrompt, IpcSender<PermissionRequest>),
/// Request to present an IME to the user when an editable element is focused.
- ShowIME(InputMethodType, Option<String>, DeviceIntRect),
+ /// If the input is text, the second parameter defines the pre-existing string
+ /// text content and the zero-based index into the string locating the insertion point.
+ /// bool is true for multi-line and false otherwise.
+ ShowIME(InputMethodType, Option<(String, i32)>, bool, DeviceIntRect),
/// Request to hide the IME when the editable element is blurred.
HideIME,
/// Servo has shut down