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

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

Issue 2525973002: Remove the pointer event capturing flag (Closed)
Patch Set: 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
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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 251
252 if (base::FeatureList::IsEnabled(features::kLazyParseCSS)) 252 if (base::FeatureList::IsEnabled(features::kLazyParseCSS))
253 WebRuntimeFeatures::enableLazyParseCSS(true); 253 WebRuntimeFeatures::enableLazyParseCSS(true);
254 254
255 WebRuntimeFeatures::enableMediaDocumentDownloadButton( 255 WebRuntimeFeatures::enableMediaDocumentDownloadButton(
256 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton)); 256 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton));
257 257
258 WebRuntimeFeatures::enablePointerEvent( 258 WebRuntimeFeatures::enablePointerEvent(
259 base::FeatureList::IsEnabled(features::kPointerEvents)); 259 base::FeatureList::IsEnabled(features::kPointerEvents));
260 260
261 if (base::FeatureList::IsEnabled(features::kPointerEventV1SpecCapturing))
262 WebRuntimeFeatures::enablePointerEventV1SpecCapturing(true);
263
264 WebRuntimeFeatures::enablePassiveDocumentEventListeners( 261 WebRuntimeFeatures::enablePassiveDocumentEventListeners(
265 base::FeatureList::IsEnabled(features::kPassiveDocumentEventListeners)); 262 base::FeatureList::IsEnabled(features::kPassiveDocumentEventListeners));
266 263
267 if (base::FeatureList::IsEnabled(features::kPassiveEventListenersDueToFling)) 264 if (base::FeatureList::IsEnabled(features::kPassiveEventListenersDueToFling))
268 WebRuntimeFeatures::enablePassiveEventListenersDueToFling(true); 265 WebRuntimeFeatures::enablePassiveEventListenersDueToFling(true);
269 266
270 WebRuntimeFeatures::enableFeatureFromString( 267 WebRuntimeFeatures::enableFeatureFromString(
271 "FontCacheScaling", 268 "FontCacheScaling",
272 base::FeatureList::IsEnabled(features::kFontCacheScaling)); 269 base::FeatureList::IsEnabled(features::kFontCacheScaling));
273 270
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 336 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
340 std::vector<std::string> disabled_features = base::SplitString( 337 std::vector<std::string> disabled_features = base::SplitString(
341 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 338 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
342 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 339 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
343 for (const std::string& feature : disabled_features) 340 for (const std::string& feature : disabled_features)
344 WebRuntimeFeatures::enableFeatureFromString(feature, false); 341 WebRuntimeFeatures::enableFeatureFromString(feature, false);
345 } 342 }
346 } 343 }
347 344
348 } // namespace content 345 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698