summaryrefslogtreecommitdiffstats
path: root/chrome/browser/fullscreen_chromeos.cc
blob: 605f4bd49f8eca9855bc86ddea6d8b9a40fb4f75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright (c) 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 "chrome/browser/fullscreen.h"

#include "ash/root_window_controller.h"

bool IsFullScreenMode() {
  // TODO(oshima): Fullscreen is per display state. Investigate
  // and fix if necessary.
  ash::internal::RootWindowController* controller =
      ash::internal::RootWindowController::ForTargetRootWindow();
  return controller && controller->GetWindowForFullscreenMode();
}