blob: 9712fb343482dafe303b1eb231805791f6f4eabe [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/platform/graphics/scrollbar_theme_settings.h"
namespace blink {
static bool g_mock_scrollbars_enabled = false;
static bool g_overlay_scrollbars_enabled = false;
void ScrollbarThemeSettings::SetMockScrollbarsEnabled(bool flag) {
g_mock_scrollbars_enabled = flag;
}
bool ScrollbarThemeSettings::MockScrollbarsEnabled() {
return g_mock_scrollbars_enabled;
}
void ScrollbarThemeSettings::SetOverlayScrollbarsEnabled(bool flag) {
g_overlay_scrollbars_enabled = flag;
}
bool ScrollbarThemeSettings::OverlayScrollbarsEnabled() {
return g_overlay_scrollbars_enabled;
}
} // namespace blink