This source file includes following definitions.
- IsOverlayScrollbarEnabled
#include "base/command_line.h"
#include "ui/native_theme/native_theme_switches.h"
namespace switches {
const char kEnableOverlayScrollbar[] = "enable-overlay-scrollbar";
const char kDisableOverlayScrollbar[] = "disable-overlay-scrollbar";
}
namespace ui {
bool IsOverlayScrollbarEnabled() {
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
if (command_line.HasSwitch(switches::kDisableOverlayScrollbar))
return false;
else if (command_line.HasSwitch(switches::kEnableOverlayScrollbar))
return true;
return false;
}
}