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

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

Issue 2559283002: Remove PassiveEventListenersDueToFling from WebRuntimeFeatures (Closed)
Patch Set: remove flag Created 4 years 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/Source/platform/RuntimeEnabledFeatures.in » ('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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 264
265 WebRuntimeFeatures::enableMediaDocumentDownloadButton( 265 WebRuntimeFeatures::enableMediaDocumentDownloadButton(
266 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton)); 266 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton));
267 267
268 WebRuntimeFeatures::enablePointerEvent( 268 WebRuntimeFeatures::enablePointerEvent(
269 base::FeatureList::IsEnabled(features::kPointerEvents)); 269 base::FeatureList::IsEnabled(features::kPointerEvents));
270 270
271 WebRuntimeFeatures::enablePassiveDocumentEventListeners( 271 WebRuntimeFeatures::enablePassiveDocumentEventListeners(
272 base::FeatureList::IsEnabled(features::kPassiveDocumentEventListeners)); 272 base::FeatureList::IsEnabled(features::kPassiveDocumentEventListeners));
273 273
274 if (base::FeatureList::IsEnabled(features::kPassiveEventListenersDueToFling))
275 WebRuntimeFeatures::enablePassiveEventListenersDueToFling(true);
276
277 WebRuntimeFeatures::enableFeatureFromString( 274 WebRuntimeFeatures::enableFeatureFromString(
278 "FontCacheScaling", 275 "FontCacheScaling",
279 base::FeatureList::IsEnabled(features::kFontCacheScaling)); 276 base::FeatureList::IsEnabled(features::kFontCacheScaling));
280 277
281 WebRuntimeFeatures::enableFeatureFromString( 278 WebRuntimeFeatures::enableFeatureFromString(
282 "FramebustingNeedsSameOriginOrUserGesture", 279 "FramebustingNeedsSameOriginOrUserGesture",
283 base::FeatureList::IsEnabled( 280 base::FeatureList::IsEnabled(
284 features::kFramebustingNeedsSameOriginOrUserGesture)); 281 features::kFramebustingNeedsSameOriginOrUserGesture));
285 282
286 if (base::FeatureList::IsEnabled(features::kParseHTMLOnMainThread)) 283 if (base::FeatureList::IsEnabled(features::kParseHTMLOnMainThread))
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 343 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
347 std::vector<std::string> disabled_features = base::SplitString( 344 std::vector<std::string> disabled_features = base::SplitString(
348 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 345 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
349 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 346 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
350 for (const std::string& feature : disabled_features) 347 for (const std::string& feature : disabled_features)
351 WebRuntimeFeatures::enableFeatureFromString(feature, false); 348 WebRuntimeFeatures::enableFeatureFromString(feature, false);
352 } 349 }
353 } 350 }
354 351
355 } // namespace content 352 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698