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

Side by Side Diff: chrome/browser/fullscreen_mac.mm

Issue 1917973002: mac: Remove IsOSLion(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tapted Created 4 years, 8 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #import "chrome/browser/fullscreen.h" 5 #import "chrome/browser/fullscreen.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/mac/mac_util.h"
11 #include "base/mac/sdk_forward_declarations.h" 10 #include "base/mac/sdk_forward_declarations.h"
12 #include "chrome/common/chrome_switches.h" 11 #include "chrome/common/chrome_switches.h"
13 12
14 bool IsFullScreenMode() { 13 bool IsFullScreenMode() {
15 // Check if the main display has been captured (by games in particular). 14 // Check if the main display has been captured (by games in particular).
16 if (CGDisplayIsCaptured(CGMainDisplayID())) 15 if (CGDisplayIsCaptured(CGMainDisplayID()))
17 return true; 16 return true;
18 17
19 NSApplicationPresentationOptions options = 18 NSApplicationPresentationOptions options =
20 [NSApp currentSystemPresentationOptions]; 19 [NSApp currentSystemPresentationOptions];
(...skipping 12 matching lines...) Expand all
33 if (options & NSApplicationPresentationFullScreen) 32 if (options & NSApplicationPresentationFullScreen)
34 return true; 33 return true;
35 34
36 return false; 35 return false;
37 } 36 }
38 37
39 namespace chrome { 38 namespace chrome {
40 namespace mac { 39 namespace mac {
41 40
42 bool SupportsSystemFullscreen() { 41 bool SupportsSystemFullscreen() {
43 return base::mac::IsOSLionOrLater(); 42 // TODO(spqchan): Clean this up, https://crbug.com/579259
43 return true;
44 } 44 }
45 45
46 } // namespace mac 46 } // namespace mac
47 } // namespace chrome 47 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/app_shim/chrome_main_app_mode_mac.mm ('k') | chrome/browser/safe_browsing/signature_evaluator_mac_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698