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

Unified Diff: ash/common/wm_window.cc

Issue 2625113004: Unify window fullscreen and minimizing implementation (Closed)
Patch Set: Update 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 | ash/wm/window_util.h » ('j') | ash/wm/window_util.cc » ('J')
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..8db6b8c4324282c00d71327544b925895b10d5a9 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 | « no previous file | ash/wm/window_util.h » ('j') | ash/wm/window_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698