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

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

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 years, 9 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/window_state_util.h ('k') | ash/common/wm/wm_event.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
deleted file mode 100644
index cea13eb1bda350e1d6105ef8e38171b8b447adac..0000000000000000000000000000000000000000
--- a/ash/common/wm/window_state_util.cc
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ash/common/wm/window_state_util.h"
-
-#include "ash/common/wm/window_state.h"
-#include "ash/common/wm/window_state_delegate.h"
-#include "ash/common/wm_window.h"
-
-namespace ash {
-namespace wm {
-
-void ToggleFullScreen(wm::WindowState* window_state,
- WindowStateDelegate* delegate) {
- // Window which cannot be maximized should not be full screen'ed.
- // It can, however, be restored if it was full screen'ed.
- bool is_fullscreen = window_state->IsFullscreen();
- if (!is_fullscreen && !window_state->CanMaximize())
- return;
-
- if (delegate && delegate->ToggleFullscreen(window_state))
- return;
- window_state->window()->SetFullscreen(!is_fullscreen);
-}
-
-} // namespace wm
-} // namespace ash
« no previous file with comments | « ash/common/wm/window_state_util.h ('k') | ash/common/wm/wm_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698