diff options
author | Fabrice Desré <fabrice@desre.org> | 2018-04-21 14:17:02 -0700 |
---|---|---|
committer | Fabrice Desré <fabrice@desre.org> | 2018-04-21 19:46:42 -0700 |
commit | 42886613d32f2daff25f1f3ce7a7328bcc2306f7 (patch) | |
tree | f04f4b80566b6acea2323e9fceedbd2aab9a97b2 /components/script_traits/script_msg.rs | |
parent | 05fe8fa08d507836ce5659ff56f83022a90b241a (diff) | |
download | servo-42886613d32f2daff25f1f3ce7a7328bcc2306f7.tar.gz servo-42886613d32f2daff25f1f3ce7a7328bcc2306f7.zip |
Notify the embedder when it should display or hide an IME
Diffstat (limited to 'components/script_traits/script_msg.rs')
-rw-r--r-- | components/script_traits/script_msg.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs index 43812ad097a..d263753c7de 100644 --- a/components/script_traits/script_msg.rs +++ b/components/script_traits/script_msg.rs @@ -17,7 +17,7 @@ use euclid::{Size2D, TypedSize2D}; use gfx_traits::Epoch; use ipc_channel::ipc::{IpcReceiver, IpcSender}; use msg::constellation_msg::{BrowsingContextId, HistoryStateId, PipelineId, TraversalDirection}; -use msg::constellation_msg::{Key, KeyModifiers, KeyState}; +use msg::constellation_msg::{InputMethodType, Key, KeyModifiers, KeyState}; use net_traits::CoreResourceMsg; use net_traits::request::RequestInit; use net_traits::storage_thread::StorageType; @@ -163,6 +163,10 @@ pub enum ScriptMsg { GetScreenSize(IpcSender<(DeviceUintSize)>), /// Get the available screen size (pixel) GetScreenAvailSize(IpcSender<(DeviceUintSize)>), + /// Request to present an IME to the user when an editable element is focused. + ShowIME(InputMethodType), + /// Request to hide the IME when the editable element is blurred. + HideIME, /// Requests that the compositor shut down. Exit, } |