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

Side by Side Diff: chrome/browser/fullscreen_aura.cc

Issue 25108005: linux_aura: Compile ash into chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chromeos link Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698