Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/fullscreen.h" | 5 #include "chrome/browser/fullscreen.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 #if !defined(USE_ASH) | 9 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
|
sky
2013/09/30 14:45:53
Since you're in effect conditionally compiling thi
| |
| 10 | |
| 11 #include "ash/root_window_controller.h" | |
| 12 #include "chrome/browser/ui/host_desktop.h" | |
| 10 | 13 |
| 11 bool IsFullScreenMode() { | 14 bool IsFullScreenMode() { |
| 15 #if defined(USE_ASH) | |
| 16 if (chrome::GetActiveDesktop() == chrome::HOST_DESKTOP_TYPE_ASH) { | |
| 17 ash::internal::RootWindowController* controller = | |
| 18 ash::internal::RootWindowController::ForTargetRootWindow(); | |
| 19 return controller && controller->GetTopmostFullscreenWindow(); | |
| 20 } | |
| 21 #endif | |
| 22 | |
| 12 // TODO(erg): An implementation here would have to check all existing | 23 // TODO(erg): An implementation here would have to check all existing |
| 13 // RootWindows instead of just recursively walking the Shell's RootWindow as | 24 // RootWindows instead of just recursively walking the Shell's RootWindow as |
| 14 // in the ash implementaiton. | 25 // in the ash implementaiton. |
| 15 NOTIMPLEMENTED(); | 26 NOTIMPLEMENTED(); |
| 16 return false; | 27 return false; |
| 17 } | 28 } |
| 18 | 29 |
| 19 #endif | 30 #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| OLD | NEW |