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

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

Issue 2930493002: Add CompositorTouchAction to RuntimeEnabledFeatures. (Closed)
Patch Set: Rebase - all the set functions are now capitalized Created 3 years, 6 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 | content/public/common/content_features.h » ('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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 if (base::FeatureList::IsEnabled(features::kGamepadExtensions)) 338 if (base::FeatureList::IsEnabled(features::kGamepadExtensions))
339 WebRuntimeFeatures::EnableGamepadExtensions(true); 339 WebRuntimeFeatures::EnableGamepadExtensions(true);
340 340
341 if (base::FeatureList::IsEnabled(features::kCompositeOpaqueFixedPosition)) 341 if (base::FeatureList::IsEnabled(features::kCompositeOpaqueFixedPosition))
342 WebRuntimeFeatures::EnableFeatureFromString("CompositeOpaqueFixedPosition", 342 WebRuntimeFeatures::EnableFeatureFromString("CompositeOpaqueFixedPosition",
343 true); 343 true);
344 344
345 if (!base::FeatureList::IsEnabled(features::kCompositeOpaqueScrollers)) 345 if (!base::FeatureList::IsEnabled(features::kCompositeOpaqueScrollers))
346 WebRuntimeFeatures::EnableFeatureFromString("CompositeOpaqueScrollers", 346 WebRuntimeFeatures::EnableFeatureFromString("CompositeOpaqueScrollers",
347 false); 347 false);
348 if (base::FeatureList::IsEnabled(features::kCompositorTouchAction))
349 WebRuntimeFeatures::EnableCompositorTouchAction(true);
348 350
349 if (base::FeatureList::IsEnabled(features::kSkipCompositingSmallScrollers)) 351 if (base::FeatureList::IsEnabled(features::kSkipCompositingSmallScrollers))
350 WebRuntimeFeatures::EnableSkipCompositingSmallScrollers(true); 352 WebRuntimeFeatures::EnableSkipCompositingSmallScrollers(true);
351 353
352 if (base::FeatureList::IsEnabled(features::kGenericSensor)) 354 if (base::FeatureList::IsEnabled(features::kGenericSensor))
353 WebRuntimeFeatures::EnableGenericSensor(true); 355 WebRuntimeFeatures::EnableGenericSensor(true);
354 356
355 if (base::FeatureList::IsEnabled(features::kLoadingWithMojo)) 357 if (base::FeatureList::IsEnabled(features::kLoadingWithMojo))
356 WebRuntimeFeatures::EnableLoadingWithMojo(true); 358 WebRuntimeFeatures::EnableLoadingWithMojo(true);
357 359
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 398 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
397 std::vector<std::string> disabled_features = base::SplitString( 399 std::vector<std::string> disabled_features = base::SplitString(
398 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 400 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
399 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 401 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
400 for (const std::string& feature : disabled_features) 402 for (const std::string& feature : disabled_features)
401 WebRuntimeFeatures::EnableFeatureFromString(feature, false); 403 WebRuntimeFeatures::EnableFeatureFromString(feature, false);
402 } 404 }
403 } 405 }
404 406
405 } // namespace content 407 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/public/common/content_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698