[][src]Struct servo::browser::Browser

pub struct Browser {
    current_url: Option<ServoUrl>,
    browser_id: Option<BrowserId>,
    browsers: Vec<BrowserId>,
    title: Option<String>,
    status: Option<String>,
    favicon: Option<ServoUrl>,
    loading_state: Option<LoadingState>,
    window: Rc<Window>,
    event_queue: Vec<WindowEvent>,
    shutdown_requested: bool,


current_url: Option<ServoUrl>browser_id: Option<BrowserId>

id of the top level browsing context. It is unique as tabs are not supported yet. None until created.

browsers: Vec<BrowserId>title: Option<String>status: Option<String>favicon: Option<ServoUrl>loading_state: Option<LoadingState>window: Rc<Window>event_queue: Vec<WindowEvent>shutdown_requested: bool


impl Browser[src]

pub fn new(window: Rc<Window>) -> Browser[src]

pub fn get_events(&mut self) -> Vec<WindowEvent>[src]

pub fn handle_window_events(&mut self, events: Vec<WindowEvent>)[src]

pub fn shutdown_requested(&self) -> bool[src]

fn handle_key_from_window(&mut self, key_event: KeyboardEvent)[src]

Handle key events before sending them to Servo.

fn platform_handle_key(&mut self, key_event: KeyboardEvent)[src]

fn handle_key_from_servo(&mut self, _: Option<BrowserId>, event: KeyboardEvent)[src]

Handle key events after they have been handled by Servo.

fn scroll_window_from_key(
    &mut self,
    scroll_location: ScrollLocation,
    phase: TouchEventType

pub fn handle_servo_events(
    &mut self,
    events: Vec<(Option<BrowserId>, EmbedderMsg)>

Auto Trait Implementations

impl !Send for Browser

impl !Sync for Browser

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> BorrowMut for T where
    T: ?Sized

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T[src]

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> Same for T[src]

type Output = T

Should always be Self

impl<T> MaybeBoxed for T[src]

impl<T> MaybeBoxed for T[src]