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

Unified Diff: ash/common/wm_window.cc

Issue 2625113004: Unify window fullscreen and minimizing implementation (Closed)
Patch Set: Fix review issue 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 | « ash/common/wm/default_state.cc ('k') | ui/views/mus/desktop_window_tree_host_mus.h » ('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 74c64d6e5a579ac1eb7a2b4aeb4e12862150a424..0cdaf6b7d6ef0b89c8b8653725bfd7ebc73f340a 100644
--- a/ash/common/wm_window.cc
+++ b/ash/common/wm_window.cc
@@ -766,15 +766,7 @@ void WmWindow::Deactivate() {
}
void WmWindow::SetFullscreen(bool fullscreen) {
- if (fullscreen) {
- window_->SetProperty(aura::client::kShowStateKey,
- ui::SHOW_STATE_FULLSCREEN);
- } else {
- auto state = window_->GetProperty(aura::client::kPreFullscreenShowStateKey);
- DCHECK_NE(state, ui::SHOW_STATE_MINIMIZED);
- window_->SetProperty(aura::client::kShowStateKey, state);
- window_->ClearProperty(aura::client::kPreFullscreenShowStateKey);
- }
+ ::wm::SetWindowFullscreen(window_, fullscreen);
}
void WmWindow::Maximize() {
« no previous file with comments | « ash/common/wm/default_state.cc ('k') | ui/views/mus/desktop_window_tree_host_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698