From e3bc88e953e5e07a9aed2d6fba2295dc8607bfaf Mon Sep 17 00:00:00 2001 From: "mukai@chromium.org" Date: Fri, 6 Sep 2013 06:22:06 +0000 Subject: RootWindowController::GetFullscreenWindow() should return the active one. It returned the fullscreen window (if any) in the active workspace, and a workspace could contain only one fullscreen window at most. However, now there's only one desktop workspace which can contain multiple fullscreen windows. To follow the past state, it would be better to return the active fullscreen window first. TEST=covered by ash_unittests R=oshima@chromium.org, sky@chromium.org BUG=None Review URL: https://chromiumcodereview.appspot.com/23534049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221602 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/fullscreen_chromeos.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/browser/fullscreen_chromeos.cc') diff --git a/chrome/browser/fullscreen_chromeos.cc b/chrome/browser/fullscreen_chromeos.cc index a2adffa..448fdc1 100644 --- a/chrome/browser/fullscreen_chromeos.cc +++ b/chrome/browser/fullscreen_chromeos.cc @@ -9,5 +9,5 @@ bool IsFullScreenMode() { ash::internal::RootWindowController* controller = ash::internal::RootWindowController::ForActiveRootWindow(); - return controller && controller->GetFullscreenWindow(); + return controller && controller->GetTopmostFullscreenWindow(); } -- cgit v1.1