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/ui/browser_command_controller.h" | 5 #include "chrome/browser/ui/browser_command_controller.h" |
6 | 6 |
7 #include "chrome/app/chrome_command_ids.h" | 7 #include "chrome/app/chrome_command_ids.h" |
8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/defaults.h" | 9 #include "chrome/browser/defaults.h" |
10 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
(...skipping 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1093 BrowserWindow* BrowserCommandController::window() { | 1093 BrowserWindow* BrowserCommandController::window() { |
1094 return browser_->window(); | 1094 return browser_->window(); |
1095 } | 1095 } |
1096 | 1096 |
1097 Profile* BrowserCommandController::profile() { | 1097 Profile* BrowserCommandController::profile() { |
1098 return browser_->profile(); | 1098 return browser_->profile(); |
1099 } | 1099 } |
1100 | 1100 |
1101 bool BrowserCommandController::IsFullScreenWindowOpen() { | 1101 bool BrowserCommandController::IsFullScreenWindowOpen() { |
1102 #if defined(USE_ASH) | 1102 #if defined(USE_ASH) |
1103 // Returns true when a Pepper Flash window is maximized. | 1103 aura::Window* window = ash::wm::GetActiveWindow(); |
1104 aura::Window* aura_window = ash::wm::GetActiveWindow(); | 1104 return (window && ash::wm::IsWindowFullscreen(window)); |
1105 return aura_window && ash::wm::IsWindowFullscreen(aura_window) && | |
1106 !window()->IsFullscreen(); | |
1107 #else | 1105 #else |
1108 return false; | 1106 return false; |
1109 #endif | 1107 #endif |
1110 } | 1108 } |
1111 | 1109 |
1112 } // namespace chrome | 1110 } // namespace chrome |
OLD | NEW |