Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(720)

Side by Side Diff: ui/native_theme/native_theme_features.cc

Issue 2806263005: Convert the overlay scrollbar flag to use FeatureList (Closed)
Patch Set: remove ScopedFeatureList change Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/native_theme/native_theme_features.h ('k') | ui/native_theme/native_theme_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
Ilya Sherman 2017/04/19 21:42:30 nit: 2017
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 #if defined(OS_ANDROID) || defined(OS_CHROMEOS)
10 constexpr base::FeatureState kOverlayScrollbarFeatureState =
11 base::FEATURE_ENABLED_BY_DEFAULT;
12 #else
13 constexpr base::FeatureState kOverlayScrollbarFeatureState =
14 base::FEATURE_DISABLED_BY_DEFAULT;
15 #endif
16
17 // Enables or disables overlay scrollbars in Blink (i.e. web content) on Aura
18 // or Linux. The status of native UI overlay scrollbars are determined in
Ilya Sherman 2017/04/19 21:42:30 nit: s/are/is
19 // PlatformStyle::CreateScrollBar. Does nothing on Mac.
20 const base::Feature kOverlayScrollbar{"OverlayScrollbar",
21 kOverlayScrollbarFeatureState};
22
23 } // namespace features
24
25 namespace ui {
26
27 bool IsOverlayScrollbarEnabled() {
28 return base::FeatureList::IsEnabled(features::kOverlayScrollbar);
29 }
30
31 } // namespace ui
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme_features.h ('k') | ui/native_theme/native_theme_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698