summaryrefslogtreecommitdiffstats
path: root/chromium/ui/base/base_window.cc
blob: 43812c3f3bbaeab5aa40058202dc792eb38ed668 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2013 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 "ui/base/base_window.h"

namespace ui {

namespace {
bool g_is_fullscreen_faked_for_testing = false;
}  // namespace

bool BaseWindow::IsRestored(const BaseWindow& window) {
  return !window.IsMaximized() &&
     !window.IsMinimized() &&
     !window.IsFullscreen();
}

void BaseWindow::SetFullscreenFakedForTesting(
    bool is_fullscreen_faked_for_testing) {
  g_is_fullscreen_faked_for_testing = is_fullscreen_faked_for_testing;
}

bool BaseWindow::IsFullscreenFakedForTesting() {
  return g_is_fullscreen_faked_for_testing;
}

}  // namespace ui