move FocusType enum to the script crate

This commit moves the FocusType enum to the script crate and replaces
all usages with the new `usage`.

Fixes #8840
This commit is contained in:
Roman Klauke 2015-12-06 15:39:45 +01:00
parent 7d9a6a8397
commit bcc53edda4
4 changed files with 11 additions and 12 deletions

View file

@ -84,7 +84,7 @@ use msg::compositor_msg::ScriptToCompositorMsg;
use msg::constellation_msg::ScriptMsg as ConstellationMsg;
use msg::constellation_msg::{ALT, CONTROL, SHIFT, SUPER};
use msg::constellation_msg::{AnimationState, PipelineId};
use msg::constellation_msg::{ConstellationChan, FocusType, Key, KeyModifiers, KeyState};
use msg::constellation_msg::{ConstellationChan, Key, KeyModifiers, KeyState};
use msg::constellation_msg::{MouseButton, MouseEventType, MozBrowserEvent, SubpageId};
use net_traits::ControlMsg::{GetCookiesForUrl, SetCookiesForUrl};
use net_traits::CookieSource::NonHTTP;
@ -2493,3 +2493,10 @@ impl Runnable for DocumentProgressHandler {
}
}
}
/// Specifies the type of focus event that is sent to a pipeline
#[derive(Copy, Clone, PartialEq)]
pub enum FocusType {
Element, // The first focus message - focus the element itself
Parent, // Focusing a parent element (an iframe)
}