mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove WindowNavigateMsg
This commit is contained in:
parent
18c5ba108d
commit
0cce5776a7
4 changed files with 16 additions and 25 deletions
|
@ -8,7 +8,7 @@ use compositor_thread::EventLoopWaker;
|
|||
use euclid::{Point2D, Size2D};
|
||||
use euclid::{TypedPoint2D, TypedRect, ScaleFactor, TypedSize2D};
|
||||
use gleam::gl;
|
||||
use msg::constellation_msg::{Key, KeyModifiers, KeyState};
|
||||
use msg::constellation_msg::{Key, KeyModifiers, KeyState, TraversalDirection};
|
||||
use net_traits::net_error_list::NetError;
|
||||
use script_traits::{DevicePixel, LoadData, MouseButton, TouchEventType, TouchId, TouchpadPressurePhase};
|
||||
use servo_geometry::DeviceIndependentPixel;
|
||||
|
@ -25,12 +25,6 @@ pub enum MouseWindowEvent {
|
|||
MouseUp(MouseButton, TypedPoint2D<f32, DevicePixel>),
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub enum WindowNavigateMsg {
|
||||
Forward,
|
||||
Back,
|
||||
}
|
||||
|
||||
/// Events that the windowing system sends to Servo.
|
||||
#[derive(Clone)]
|
||||
pub enum WindowEvent {
|
||||
|
@ -66,7 +60,7 @@ pub enum WindowEvent {
|
|||
/// Sent when the user resets zoom to default.
|
||||
ResetZoom,
|
||||
/// Sent when the user uses chrome navigation (i.e. backspace or shift-backspace).
|
||||
Navigation(WindowNavigateMsg),
|
||||
Navigation(TraversalDirection),
|
||||
/// Sent when the user quits the application
|
||||
Quit,
|
||||
/// Sent when a key input state changes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue