diff options
Diffstat (limited to 'components/shared/embedder/lib.rs')
-rw-r--r-- | components/shared/embedder/lib.rs | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/components/shared/embedder/lib.rs b/components/shared/embedder/lib.rs index 0acf7d01ce5..0a5cfdbb479 100644 --- a/components/shared/embedder/lib.rs +++ b/components/shared/embedder/lib.rs @@ -6,11 +6,11 @@ pub mod resources; use std::fmt::{Debug, Error, Formatter}; +use base::id::{PipelineId, TopLevelBrowsingContextId, WebViewId}; use crossbeam_channel::{Receiver, Sender}; use ipc_channel::ipc::IpcSender; use keyboard_types::KeyboardEvent; use log::warn; -use msg::constellation_msg::{InputMethodType, PipelineId, TopLevelBrowsingContextId, WebViewId}; use num_derive::FromPrimitive; use serde::{Deserialize, Serialize}; use servo_url::ServoUrl; @@ -368,3 +368,23 @@ pub enum PermissionRequest { Granted, Denied, } + +/// Used to specify the kind of input method editor appropriate to edit a field. +/// This is a subset of htmlinputelement::InputType because some variants of InputType +/// don't make sense in this context. +#[derive(Debug, Deserialize, Serialize)] +pub enum InputMethodType { + Color, + Date, + DatetimeLocal, + Email, + Month, + Number, + Password, + Search, + Tel, + Text, + Time, + Url, + Week, +} |