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

Unified Diff: chrome/browser/fullscreen_mac.mm

Issue 18576005: [Mac] Adds a flag to force 10.6-style fullscreen for testing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased. Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/fullscreen.h ('k') | chrome/browser/ui/browser_commands_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/fullscreen_mac.mm
diff --git a/chrome/browser/fullscreen_mac.mm b/chrome/browser/fullscreen_mac.mm
index d40ce0a4fb2e677741402bf945897e1794f0db76..2d283603fee2db9327fd03ae4e1438819daeb6f9 100644
--- a/chrome/browser/fullscreen_mac.mm
+++ b/chrome/browser/fullscreen_mac.mm
@@ -6,6 +6,10 @@
#import <Cocoa/Cocoa.h>
+#include "base/command_line.h"
+#include "base/mac/mac_util.h"
+#include "chrome/common/chrome_switches.h"
+
// Replicate specific 10.7 SDK declarations for building with prior SDKs.
#if !defined(MAC_OS_X_VERSION_10_7) || \
MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
@@ -40,3 +44,17 @@ bool IsFullScreenMode() {
return false;
}
+
+namespace chrome {
+namespace mac {
+
+bool SupportsSystemFullscreen() {
+ const CommandLine* command_line = CommandLine::ForCurrentProcess();
+ if (command_line->HasSwitch(switches::kDisableSystemFullscreenForTesting))
+ return false;
+
+ return base::mac::IsOSLionOrLater();
+}
+
+} // namespace mac
+} // namespace chrome
« no previous file with comments | « chrome/browser/fullscreen.h ('k') | chrome/browser/ui/browser_commands_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698