OLD | NEW |
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 "chrome/browser/fullscreen.h" | 8 #include "chrome/browser/fullscreen.h" |
9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
10 #include "chrome/browser/ui/browser_commands.h" | 10 #include "chrome/browser/ui/browser_commands.h" |
11 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" | 11 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" |
12 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
13 | 13 |
14 namespace chrome { | 14 namespace chrome { |
15 | 15 |
16 void ToggleFullscreenWithToolbarOrFallback(Browser* browser) { | 16 void ToggleFullscreenWithToolbarOrFallback(Browser* browser) { |
17 DCHECK(browser); | 17 DCHECK(browser); |
18 if (chrome::mac::SupportsSystemFullscreen()) | 18 if (chrome::mac::SupportsSystemFullscreen()) |
19 browser->fullscreen_controller()->ToggleBrowserFullscreenWithToolbar(); | 19 browser->exclusive_access_manager() |
| 20 ->fullscreen_controller() |
| 21 ->ToggleBrowserFullscreenWithToolbar(); |
20 else | 22 else |
21 ToggleFullscreenMode(browser); | 23 ToggleFullscreenMode(browser); |
22 } | 24 } |
23 | 25 |
24 } // namespace chrome | 26 } // namespace chrome |
OLD | NEW |