mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
refactor(constellation): replace constellationmsg to filemanagermsg
This commit is contained in:
parent
c4c0d263e9
commit
52b9e4f0ab
4 changed files with 40 additions and 21 deletions
|
@ -19,6 +19,7 @@ use ipc_channel::ipc::{IpcReceiver, IpcSender};
|
|||
use msg::constellation_msg::{BrowsingContextId, HistoryStateId, PipelineId, TraversalDirection};
|
||||
use msg::constellation_msg::{InputMethodType, Key, KeyModifiers, KeyState};
|
||||
use net_traits::CoreResourceMsg;
|
||||
use net_traits::filemanager_thread::FilterPattern;
|
||||
use net_traits::request::RequestInit;
|
||||
use net_traits::storage_thread::StorageType;
|
||||
use servo_url::ImmutableOrigin;
|
||||
|
@ -217,3 +218,10 @@ pub enum SWManagerMsg {
|
|||
/// Provide the constellation with a means of communicating with the Service Worker Manager
|
||||
OwnSender(IpcSender<ServiceWorkerMsg>),
|
||||
}
|
||||
|
||||
/// Messages outgoing from the File Manager thread to constellation
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub enum FileManagerMsg {
|
||||
/// Requesting to open file select dialog
|
||||
OpenFileSelectDialog(Vec<FilterPattern>, bool, IpcSender<Option<Vec<String>>>)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue