Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2226)

Unified Diff: ash/common/wm_window.cc

Issue 2645673003: Add an aura window property for Immersive fullscreen mode (Closed)
Patch Set: Fix review issues Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | services/ui/public/interfaces/window_manager.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm_window.cc
diff --git a/ash/common/wm_window.cc b/ash/common/wm_window.cc
index 0cdaf6b7d6ef0b89c8b8653725bfd7ebc73f340a..f7e86e1ed49bda6b80f80ef83918798d38ccde5b 100644
--- a/ash/common/wm_window.cc
+++ b/ash/common/wm_window.cc
@@ -937,6 +937,11 @@ void WmWindow::OnWindowPropertyChanged(aura::Window* window,
ash::wm::GetWindowState(window_)->OnWindowShowStateChanged();
return;
}
+ if (key == aura::client::kImmersiveFullscreenKey) {
sky 2017/01/25 17:42:12 The description doesn't match usage of the propert
Peng 2017/01/25 19:02:38 See [1], the in_immersive_fullscreen() is only use
+ bool enable = window_->GetProperty(aura::client::kImmersiveFullscreenKey);
+ GetWindowState()->set_in_immersive_fullscreen(enable);
+ return;
+ }
WmWindowProperty wm_property;
if (key == aura::client::kAlwaysOnTopKey) {
wm_property = WmWindowProperty::ALWAYS_ON_TOP;
« no previous file with comments | « no previous file | services/ui/public/interfaces/window_manager.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698