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) || defined(OS_CHROMEOS) | |
13 const base::Feature kOverlayScrollbar{"OverlayScrollbar", | |
dtapuska
2017/04/12 17:21:02
I think it is probably more consistent to define O
chaopeng
2017/04/12 20:23:15
Done.
| |
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 |