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

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

Issue 2921923002: Remove chrome://flag enable-pointer-events (Closed)
Patch Set: Rebase 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 | « chrome/browser/flag_descriptions.cc ('k') | content/public/common/content_features.cc » ('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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 272
273 if (base::FeatureList::IsEnabled(features::kDocumentWriteEvaluator)) 273 if (base::FeatureList::IsEnabled(features::kDocumentWriteEvaluator))
274 WebRuntimeFeatures::EnableDocumentWriteEvaluator(true); 274 WebRuntimeFeatures::EnableDocumentWriteEvaluator(true);
275 275
276 if (base::FeatureList::IsEnabled(features::kLazyParseCSS)) 276 if (base::FeatureList::IsEnabled(features::kLazyParseCSS))
277 WebRuntimeFeatures::EnableLazyParseCSS(true); 277 WebRuntimeFeatures::EnableLazyParseCSS(true);
278 278
279 WebRuntimeFeatures::EnableMediaDocumentDownloadButton( 279 WebRuntimeFeatures::EnableMediaDocumentDownloadButton(
280 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton)); 280 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton));
281 281
282 WebRuntimeFeatures::EnablePointerEvent(
283 base::FeatureList::IsEnabled(features::kPointerEvents));
284
285 WebRuntimeFeatures::EnablePassiveDocumentEventListeners( 282 WebRuntimeFeatures::EnablePassiveDocumentEventListeners(
286 base::FeatureList::IsEnabled(features::kPassiveDocumentEventListeners)); 283 base::FeatureList::IsEnabled(features::kPassiveDocumentEventListeners));
287 284
288 WebRuntimeFeatures::EnableFeatureFromString( 285 WebRuntimeFeatures::EnableFeatureFromString(
289 "FontCacheScaling", 286 "FontCacheScaling",
290 base::FeatureList::IsEnabled(features::kFontCacheScaling)); 287 base::FeatureList::IsEnabled(features::kFontCacheScaling));
291 288
292 WebRuntimeFeatures::EnableFeatureFromString( 289 WebRuntimeFeatures::EnableFeatureFromString(
293 "FramebustingNeedsSameOriginOrUserGesture", 290 "FramebustingNeedsSameOriginOrUserGesture",
294 base::FeatureList::IsEnabled( 291 base::FeatureList::IsEnabled(
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 393 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
397 std::vector<std::string> disabled_features = base::SplitString( 394 std::vector<std::string> disabled_features = base::SplitString(
398 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 395 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
399 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 396 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
400 for (const std::string& feature : disabled_features) 397 for (const std::string& feature : disabled_features)
401 WebRuntimeFeatures::EnableFeatureFromString(feature, false); 398 WebRuntimeFeatures::EnableFeatureFromString(feature, false);
402 } 399 }
403 } 400 }
404 401
405 } // namespace content 402 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/flag_descriptions.cc ('k') | content/public/common/content_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698