diff options
author | Connor Brewster <connor.brewster@eagles.oc.edu> | 2018-04-14 01:53:11 -0500 |
---|---|---|
committer | Connor Brewster <connor.brewster@eagles.oc.edu> | 2018-04-16 10:21:15 -0500 |
commit | 17bd80a7b17e002e325985dbe3135a318f2fbaca (patch) | |
tree | 44505df16dd6a41774b26c5eeb6f7d73d7bad9a9 /components/script_traits/lib.rs | |
parent | e4472f7c1f1346d7e0489bbd0df50a567ae0ebb1 (diff) | |
download | servo-17bd80a7b17e002e325985dbe3135a318f2fbaca.tar.gz servo-17bd80a7b17e002e325985dbe3135a318f2fbaca.zip |
Implement history state
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r-- | components/script_traits/lib.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index c65ad10be4b..d270d87a50c 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -48,8 +48,8 @@ use hyper::method::Method; use ipc_channel::{Error as IpcError}; use ipc_channel::ipc::{IpcReceiver, IpcSender}; use libc::c_void; -use msg::constellation_msg::{BrowsingContextId, TopLevelBrowsingContextId, Key, KeyModifiers, KeyState}; -use msg::constellation_msg::{PipelineId, PipelineNamespaceId, TraversalDirection}; +use msg::constellation_msg::{BrowsingContextId, HistoryStateId, Key, KeyModifiers, KeyState, PipelineId}; +use msg::constellation_msg::{PipelineNamespaceId, TraversalDirection, TopLevelBrowsingContextId}; use net_traits::{FetchResponseMsg, ReferrerPolicy, ResourceThreads}; use net_traits::image::base::Image; use net_traits::image::base::PixelFormat; @@ -289,6 +289,8 @@ pub enum ConstellationControlMsg { /// Updates the current pipeline ID of a given iframe. /// First PipelineId is for the parent, second is the new PipelineId for the frame. UpdatePipelineId(PipelineId, BrowsingContextId, PipelineId, UpdatePipelineIdReason), + /// Updates the history state of a given pipeline. + UpdateHistoryStateId(PipelineId, Option<HistoryStateId>), /// Set an iframe to be focused. Used when an element in an iframe gains focus. /// PipelineId is for the parent, BrowsingContextId is for the nested browsing context FocusIFrame(PipelineId, BrowsingContextId), @@ -343,6 +345,7 @@ impl fmt::Debug for ConstellationControlMsg { Navigate(..) => "Navigate", PostMessage(..) => "PostMessage", UpdatePipelineId(..) => "UpdatePipelineId", + UpdateHistoryStateId(..) => "UpdateHistoryStateId", FocusIFrame(..) => "FocusIFrame", WebDriverScriptCommand(..) => "WebDriverScriptCommand", TickAllAnimations(..) => "TickAllAnimations", |