diff options
author | Kamal Umudlu <kamalumudlu17@gmail.com> | 2019-03-08 00:18:22 -0500 |
---|---|---|
committer | Kamal Umudlu <kamalumudlu17@gmail.com> | 2019-04-01 18:29:02 -0400 |
commit | a8995fbf1aab58eda9ecd1018d74734344daa5eb (patch) | |
tree | 4e830aa8d493445e178b242e95089fcdac64a2b3 /components/script_traits/lib.rs | |
parent | e27653ceae291f7506b6ca1cfe266033bd35ecdc (diff) | |
download | servo-a8995fbf1aab58eda9ecd1018d74734344daa5eb.tar.gz servo-a8995fbf1aab58eda9ecd1018d74734344daa5eb.zip |
Bug: #22853 - Make Window::set_fullscreen pass a non-None value when entering fullscreen is fixed and SetFullscreenState in exit_fullscreen changed to False
Added patch for bug:22853
Added implementation to exit from fullscreen mode by pressing ESC button
Added patch that supports to exit from fullscreen mode by pressing ESC
Deleted patch files
Added all requested changes on project
Removed the loop over self.pending_changes in switch_fullscreen_mode function
Bug #22853 - Make Window::set_fullscreen pass a non-None value when entering fullscreen is fixed and SetFullscreenState in exit_fullscreen changed to False
Added missing bracket in constellation.rs file to fix build issue
Bug: #22853 --> Make Window::set_fullscreen pass a non-None value when entering fullscreen is fixed and SetFullscreenState in exit_fullscreen changed to False
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r-- | components/script_traits/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index 6c5f6500a5a..ea09d5a3f18 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -262,6 +262,8 @@ pub enum ConstellationControlMsg { Resize(PipelineId, WindowSizeData, WindowSizeType), /// Notifies script that window has been resized but to not take immediate action. ResizeInactive(PipelineId, WindowSizeData), + /// Window switched from fullscreen mode. + ExitFullScreen(PipelineId), /// Notifies the script that the document associated with this pipeline should 'unload'. UnloadDocument(PipelineId), /// Notifies the script that a pipeline should be closed. @@ -388,6 +390,7 @@ impl fmt::Debug for ConstellationControlMsg { Reload(..) => "Reload", WebVREvents(..) => "WebVREvents", PaintMetric(..) => "PaintMetric", + ExitFullScreen(..) => "ExitFullScreen", }; write!(formatter, "ConstellationControlMsg::{}", variant) } @@ -782,6 +785,8 @@ pub enum ConstellationMsg { EnableProfiler(Duration, Duration), /// Disable the sampling profiler. DisableProfiler, + /// Request to exit from fullscreen mode + ExitFullScreen(TopLevelBrowsingContextId), } impl fmt::Debug for ConstellationMsg { @@ -811,6 +816,7 @@ impl fmt::Debug for ConstellationMsg { SetCursor(..) => "SetCursor", EnableProfiler(..) => "EnableProfiler", DisableProfiler => "DisableProfiler", + ExitFullScreen(..) => "ExitFullScreen", }; write!(formatter, "ConstellationMsg::{}", variant) } |