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

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

Issue 2501073002: Enable Root Document Level Passive Event Listeners (Closed)
Patch Set: Created 4 years, 1 month 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.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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 253
254 WebRuntimeFeatures::enableMediaDocumentDownloadButton( 254 WebRuntimeFeatures::enableMediaDocumentDownloadButton(
255 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton)); 255 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton));
256 256
257 WebRuntimeFeatures::enablePointerEvent( 257 WebRuntimeFeatures::enablePointerEvent(
258 base::FeatureList::IsEnabled(features::kPointerEvents)); 258 base::FeatureList::IsEnabled(features::kPointerEvents));
259 259
260 if (base::FeatureList::IsEnabled(features::kPointerEventV1SpecCapturing)) 260 if (base::FeatureList::IsEnabled(features::kPointerEventV1SpecCapturing))
261 WebRuntimeFeatures::enablePointerEventV1SpecCapturing(true); 261 WebRuntimeFeatures::enablePointerEventV1SpecCapturing(true);
262 262
263 if (base::FeatureList::IsEnabled(features::kPassiveDocumentEventListeners)) 263 WebRuntimeFeatures::enablePassiveDocumentEventListeners(
264 WebRuntimeFeatures::enablePassiveDocumentEventListeners(true); 264 base::FeatureList::IsEnabled(features::kPassiveDocumentEventListeners));
265 265
266 if (base::FeatureList::IsEnabled(features::kPassiveEventListenersDueToFling)) 266 if (base::FeatureList::IsEnabled(features::kPassiveEventListenersDueToFling))
267 WebRuntimeFeatures::enablePassiveEventListenersDueToFling(true); 267 WebRuntimeFeatures::enablePassiveEventListenersDueToFling(true);
268 268
269 WebRuntimeFeatures::enableFeatureFromString( 269 WebRuntimeFeatures::enableFeatureFromString(
270 "FontCacheScaling", 270 "FontCacheScaling",
271 base::FeatureList::IsEnabled(features::kFontCacheScaling)); 271 base::FeatureList::IsEnabled(features::kFontCacheScaling));
272 272
273 WebRuntimeFeatures::enableFeatureFromString( 273 WebRuntimeFeatures::enableFeatureFromString(
274 "FramebustingNeedsSameOriginOrUserGesture", 274 "FramebustingNeedsSameOriginOrUserGesture",
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 338 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
339 std::vector<std::string> disabled_features = base::SplitString( 339 std::vector<std::string> disabled_features = base::SplitString(
340 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 340 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
341 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 341 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
342 for (const std::string& feature : disabled_features) 342 for (const std::string& feature : disabled_features)
343 WebRuntimeFeatures::enableFeatureFromString(feature, false); 343 WebRuntimeFeatures::enableFeatureFromString(feature, false);
344 } 344 }
345 } 345 }
346 346
347 } // namespace content 347 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/public/common/content_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698