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

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

Issue 2879323002: Disable Overlay Scrollbar for CrOS M59 (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/native_theme/native_theme_features.h" 5 #include "ui/native_theme/native_theme_features.h"
6 6
7 namespace features { 7 namespace features {
8 8
9 #if defined(OS_ANDROID) || defined(OS_CHROMEOS) 9 #if defined(OS_ANDROID)
10 constexpr base::FeatureState kOverlayScrollbarFeatureState = 10 constexpr base::FeatureState kOverlayScrollbarFeatureState =
11 base::FEATURE_ENABLED_BY_DEFAULT; 11 base::FEATURE_ENABLED_BY_DEFAULT;
12 #else 12 #else
13 constexpr base::FeatureState kOverlayScrollbarFeatureState = 13 constexpr base::FeatureState kOverlayScrollbarFeatureState =
14 base::FEATURE_DISABLED_BY_DEFAULT; 14 base::FEATURE_DISABLED_BY_DEFAULT;
15 #endif 15 #endif
16 16
17 // Enables or disables overlay scrollbars in Blink (i.e. web content) on Aura 17 // Enables or disables overlay scrollbars in Blink (i.e. web content) on Aura
18 // or Linux. The status of native UI overlay scrollbars is determined in 18 // or Linux. The status of native UI overlay scrollbars is determined in
19 // PlatformStyle::CreateScrollBar. Does nothing on Mac. 19 // PlatformStyle::CreateScrollBar. Does nothing on Mac.
20 const base::Feature kOverlayScrollbar{"OverlayScrollbar", 20 const base::Feature kOverlayScrollbar{"OverlayScrollbar",
21 kOverlayScrollbarFeatureState}; 21 kOverlayScrollbarFeatureState};
22 22
23 } // namespace features 23 } // namespace features
24 24
25 namespace ui { 25 namespace ui {
26 26
27 bool IsOverlayScrollbarEnabled() { 27 bool IsOverlayScrollbarEnabled() {
28 return base::FeatureList::IsEnabled(features::kOverlayScrollbar); 28 return base::FeatureList::IsEnabled(features::kOverlayScrollbar);
29 } 29 }
30 30
31 } // namespace ui 31 } // namespace ui
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698