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

Side by Side Diff: content/child/runtime_features.cc

Issue 2239313002: Hide non-composited native scrollbars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update comment Created 4 years, 4 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 | third_party/WebKit/LayoutTests/fast/scrolling/hide-scrollbars.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/child/runtime_features.h" 5 #include "content/child/runtime_features.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/feature_list.h" 10 #include "base/feature_list.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 bool enable_web_gl_image_chromium = 143 bool enable_web_gl_image_chromium =
144 command_line.HasSwitch(switches::kEnableWebGLImageChromium); 144 command_line.HasSwitch(switches::kEnableWebGLImageChromium);
145 #endif 145 #endif
146 WebRuntimeFeatures::enableWebGLImageChromium(enable_web_gl_image_chromium); 146 WebRuntimeFeatures::enableWebGLImageChromium(enable_web_gl_image_chromium);
147 147
148 if (command_line.HasSwitch(switches::kForceOverlayFullscreenVideo)) 148 if (command_line.HasSwitch(switches::kForceOverlayFullscreenVideo))
149 WebRuntimeFeatures::forceOverlayFullscreenVideo(true); 149 WebRuntimeFeatures::forceOverlayFullscreenVideo(true);
150 150
151 if (ui::IsOverlayScrollbarEnabled()) 151 if (ui::IsOverlayScrollbarEnabled())
152 WebRuntimeFeatures::enableOverlayScrollbars(true); 152 WebRuntimeFeatures::enableOverlayScrollbars(true);
153 if (ui::ShouldHideScrollbars())
154 WebRuntimeFeatures::enableHideScrollbars(true);
153 155
154 if (command_line.HasSwitch(switches::kEnablePreciseMemoryInfo)) 156 if (command_line.HasSwitch(switches::kEnablePreciseMemoryInfo))
155 WebRuntimeFeatures::enablePreciseMemoryInfo(true); 157 WebRuntimeFeatures::enablePreciseMemoryInfo(true);
156 158
157 if (command_line.HasSwitch(switches::kEnableNetworkInformation) || 159 if (command_line.HasSwitch(switches::kEnableNetworkInformation) ||
158 command_line.HasSwitch( 160 command_line.HasSwitch(
159 switches::kEnableExperimentalWebPlatformFeatures)) { 161 switches::kEnableExperimentalWebPlatformFeatures)) {
160 WebRuntimeFeatures::enableNetworkInformation(true); 162 WebRuntimeFeatures::enableNetworkInformation(true);
161 } 163 }
162 164
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 278 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
277 std::vector<std::string> disabled_features = base::SplitString( 279 std::vector<std::string> disabled_features = base::SplitString(
278 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 280 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
279 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 281 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
280 for (const std::string& feature : disabled_features) 282 for (const std::string& feature : disabled_features)
281 WebRuntimeFeatures::enableFeatureFromString(feature, false); 283 WebRuntimeFeatures::enableFeatureFromString(feature, false);
282 } 284 }
283 } 285 }
284 286
285 } // namespace content 287 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/scrolling/hide-scrollbars.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698