This source file includes following definitions.
- ToggleFullscreenWithChromeOrFallback
#include "chrome/browser/ui/browser_commands_mac.h"
#include "base/command_line.h"
#include "base/mac/mac_util.h"
#include "chrome/browser/fullscreen.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/fullscreen/fullscreen_controller.h"
#include "chrome/common/chrome_switches.h"
namespace chrome {
void ToggleFullscreenWithChromeOrFallback(Browser* browser) {
DCHECK(browser);
const CommandLine* command_line = CommandLine::ForCurrentProcess();
if (command_line->HasSwitch(switches::kEnableSimplifiedFullscreen))
ToggleFullscreenMode(browser);
else if (chrome::mac::SupportsSystemFullscreen())
browser->fullscreen_controller()->ToggleBrowserFullscreenWithChrome();
else
ToggleFullscreenMode(browser);
}
}