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

Unified Diff: ash/common/wm/window_state_util.cc

Issue 2622053004: ash: Restore previous show state after exiting fullscreen. (Closed)
Patch Set: Rebase 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') | ash/common/wm_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/window_state_util.cc
diff --git a/ash/common/wm/window_state_util.cc b/ash/common/wm/window_state_util.cc
index 49a2e5198ec1187bb18f2b744d614780bb5a3412..cea13eb1bda350e1d6105ef8e38171b8b447adac 100644
--- a/ash/common/wm/window_state_util.cc
+++ b/ash/common/wm/window_state_util.cc
@@ -21,13 +21,7 @@ void ToggleFullScreen(wm::WindowState* window_state,
if (delegate && delegate->ToggleFullscreen(window_state))
return;
-
- if (is_fullscreen) {
- window_state->Restore();
- } else {
- // Set the property to activate full screen.
- window_state->window()->SetFullscreen();
- }
+ window_state->window()->SetFullscreen(!is_fullscreen);
}
} // namespace wm
« no previous file with comments | « ash/common/wm/default_state.cc ('k') | ash/common/wm_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698