OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/immersive_fullscreen_configuration.h" | 5 #include "chrome/browser/ui/immersive_fullscreen_configuration.h" |
6 | 6 |
7 #if defined(OS_CHROMEOS) | |
8 #include "ash/ash_switches.h" | |
9 #include "base/command_line.h" | |
10 #include "chrome/common/chrome_switches.h" | |
11 #endif // defined(OS_CHROMEOS) | |
12 | |
13 bool ImmersiveFullscreenConfiguration::UseImmersiveFullscreen() { | |
14 #if defined(OS_CHROMEOS) | |
15 CommandLine* command = CommandLine::ForCurrentProcess(); | |
16 // Kiosk mode needs the whole screen. | |
17 if (command->HasSwitch(switches::kKioskMode)) | |
18 return false; | |
19 // Immersive fullscreen is on by default. If you change the default you must | |
20 // change the enable function below and BrowserTest FullscreenBookmarkBar | |
James Cook
2013/05/27 12:00:20
c/b/ui/browser_browsertest.cc should be able to ca
tfarina
2013/05/29 02:03:52
I'll look into this next.
| |
21 // (which cannot depend on this function due to DEPS). | |
22 return !command->HasSwitch(ash::switches::kAshDisableImmersiveFullscreen); | |
23 #endif | |
24 return false; | |
25 } | |
26 | |
7 int ImmersiveFullscreenConfiguration::immersive_mode_reveal_delay_ms_ = 200; | 27 int ImmersiveFullscreenConfiguration::immersive_mode_reveal_delay_ms_ = 200; |
8 int | 28 int |
9 ImmersiveFullscreenConfiguration::immersive_mode_reveal_x_threshold_pixels_ = 3; | 29 ImmersiveFullscreenConfiguration::immersive_mode_reveal_x_threshold_pixels_ = 3; |
OLD | NEW |