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

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

Issue 817153002: Switch users of foundation_util.h to include it directly and clean up uses of mac_util.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_commands_mac.h" 5 #include "chrome/browser/ui/browser_commands_mac.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/mac/mac_util.h"
9 #include "chrome/browser/fullscreen.h" 8 #include "chrome/browser/fullscreen.h"
10 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
11 #include "chrome/browser/ui/browser_commands.h" 10 #include "chrome/browser/ui/browser_commands.h"
12 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" 11 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h"
13 #include "chrome/common/chrome_switches.h" 12 #include "chrome/common/chrome_switches.h"
14 13
15 namespace chrome { 14 namespace chrome {
16 15
17 void ToggleFullscreenWithToolbarOrFallback(Browser* browser) { 16 void ToggleFullscreenWithToolbarOrFallback(Browser* browser) {
18 DCHECK(browser); 17 DCHECK(browser);
19 if (chrome::mac::SupportsSystemFullscreen()) 18 if (chrome::mac::SupportsSystemFullscreen())
20 browser->fullscreen_controller()->ToggleBrowserFullscreenWithToolbar(); 19 browser->fullscreen_controller()->ToggleBrowserFullscreenWithToolbar();
21 else 20 else
22 ToggleFullscreenMode(browser); 21 ToggleFullscreenMode(browser);
23 } 22 }
24 23
25 } // namespace chrome 24 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_browsertest.cc ('k') | chrome/browser/ui/cocoa/base_bubble_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698