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

Side by Side Diff: chrome/browser/ui/browser_command_controller.cc

Issue 10867053: Revert 153206 - Re-enable Ctrl-w and Ctrl-Shift-w when a non-Pepper window is maximized. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698