refactor(constellation): replace constellationmsg to filemanagermsg

This commit is contained in:
OJ Kwon 2018-04-03 09:57:46 -07:00
parent c4c0d263e9
commit 52b9e4f0ab
No known key found for this signature in database
GPG key ID: 6C23A45602A44DA6
4 changed files with 40 additions and 21 deletions

View file

@ -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>>>)
}