Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ui/native_theme/native_theme_features.h" | |
| 6 | |
| 7 namespace features { | |
| 8 | |
| 9 // Enables or disables overlay scrollbars in Blink (i.e. web content) on Aura | |
| 10 // or Linux. The status of native UI overlay scrollbars are determined in | |
| 11 // PlatformStyle::CreateScrollBar. Does nothing on Mac. | |
| 12 #if defined(OS_ANDROID) | |
|
bokan
2017/04/11 19:11:42
Shouldn't ChromeOS also be enabled by default?
chaopeng
2017/04/11 19:16:48
We can enable on finch configuration for now. Then
bokan
2017/04/11 19:26:31
I think the idea is that we'd use finch to disable
chaopeng
2017/04/11 20:27:33
Done.
| |
| 13 const base::Feature kOverlayScrollbar{"OverlayScrollbar", | |
| 14 base::FEATURE_ENABLED_BY_DEFAULT}; | |
| 15 #else | |
| 16 const base::Feature kOverlayScrollbar{"OverlayScrollbar", | |
| 17 base::FEATURE_DISABLED_BY_DEFAULT}; | |
| 18 #endif | |
| 19 } // namespace features | |
| 20 | |
| 21 namespace ui { | |
| 22 | |
| 23 bool IsOverlayScrollbarEnabled() { | |
| 24 return base::FeatureList::IsEnabled(features::kOverlayScrollbar); | |
| 25 } | |
| 26 | |
| 27 } // namespace ui | |
| OLD | NEW |