| Index: ash/wm/common/window_state_util.cc
|
| diff --git a/ash/wm/common/window_state_util.cc b/ash/wm/common/window_state_util.cc
|
| deleted file mode 100644
|
| index b8f5841da0ed41a0ac5a40e765b7380ac37e1454..0000000000000000000000000000000000000000
|
| --- a/ash/wm/common/window_state_util.cc
|
| +++ /dev/null
|
| @@ -1,34 +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/wm/common/window_state_util.h"
|
| -
|
| -#include "ash/wm/common/window_state.h"
|
| -#include "ash/wm/common/window_state_delegate.h"
|
| -#include "ash/wm/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;
|
| -
|
| - if (is_fullscreen) {
|
| - window_state->Restore();
|
| - } else {
|
| - // Set the property to activate full screen.
|
| - window_state->window()->SetFullscreen();
|
| - }
|
| -}
|
| -
|
| -} // namespace wm
|
| -} // namespace ash
|
|
|