[AiS] Mac AiS on two lines
[chromium-blink-merge.git] / chrome / browser / ui / browser_commands_mac.cc
blob1cf43c62cc2a8890a7d5142f09e690228789a485
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
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/browser_commands_mac.h"
7 #include "base/command_line.h"
8 #include "chrome/browser/fullscreen.h"
9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/browser/ui/browser_commands.h"
11 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h"
12 #include "chrome/common/chrome_switches.h"
14 namespace chrome {
16 void ToggleFullscreenWithToolbarOrFallback(Browser* browser) {
17 DCHECK(browser);
18 if (chrome::mac::SupportsSystemFullscreen())
19 browser->exclusive_access_manager()
20 ->fullscreen_controller()
21 ->ToggleBrowserFullscreenWithToolbar();
22 else
23 ToggleFullscreenMode(browser);
26 } // namespace chrome