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

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

Issue 2098883002: Make PointerEvent an experimental web platform feature. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, fixed js path. Created 4 years, 5 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 | third_party/WebKit/LayoutTests/LeakExpectations » ('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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 // non-android versions. 222 // non-android versions.
223 if (base::FeatureList::IsEnabled(features::kNewMediaPlaybackUi)) 223 if (base::FeatureList::IsEnabled(features::kNewMediaPlaybackUi))
224 WebRuntimeFeatures::enableNewMediaPlaybackUi(true); 224 WebRuntimeFeatures::enableNewMediaPlaybackUi(true);
225 225
226 if (base::FeatureList::IsEnabled(features::kDocumentWriteEvaluator)) 226 if (base::FeatureList::IsEnabled(features::kDocumentWriteEvaluator))
227 WebRuntimeFeatures::enableDocumentWriteEvaluator(true); 227 WebRuntimeFeatures::enableDocumentWriteEvaluator(true);
228 228
229 WebRuntimeFeatures::enableMediaDocumentDownloadButton( 229 WebRuntimeFeatures::enableMediaDocumentDownloadButton(
230 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton)); 230 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton));
231 231
232 if (base::FeatureList::IsEnabled(features::kPointerEvents)) { 232 if (base::FeatureList::IsEnabled(features::kPointerEvents))
233 WebRuntimeFeatures::enableFeatureFromString( 233 WebRuntimeFeatures::enableFeatureFromString("PointerEvent", true);
234 std::string("PointerEvent"), true);
235 }
236 234
237 WebRuntimeFeatures::enableFeatureFromString( 235 WebRuntimeFeatures::enableFeatureFromString(
238 "FontCacheScaling", 236 "FontCacheScaling",
239 base::FeatureList::IsEnabled(features::kFontCacheScaling)); 237 base::FeatureList::IsEnabled(features::kFontCacheScaling));
240 238
241 if (!base::FeatureList::IsEnabled(features::kPaintOptimizations)) 239 if (!base::FeatureList::IsEnabled(features::kPaintOptimizations))
242 WebRuntimeFeatures::enableFeatureFromString("PaintOptimizations", false); 240 WebRuntimeFeatures::enableFeatureFromString("PaintOptimizations", false);
243 241
244 WebRuntimeFeatures::enableRenderingPipelineThrottling( 242 WebRuntimeFeatures::enableRenderingPipelineThrottling(
245 base::FeatureList::IsEnabled(features::kRenderingPipelineThrottling)); 243 base::FeatureList::IsEnabled(features::kRenderingPipelineThrottling));
(...skipping 10 matching lines...) Expand all
256 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 254 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
257 std::vector<std::string> disabled_features = base::SplitString( 255 std::vector<std::string> disabled_features = base::SplitString(
258 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 256 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
259 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 257 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
260 for (const std::string& feature : disabled_features) 258 for (const std::string& feature : disabled_features)
261 WebRuntimeFeatures::enableFeatureFromString(feature, false); 259 WebRuntimeFeatures::enableFeatureFromString(feature, false);
262 } 260 }
263 } 261 }
264 262
265 } // namespace content 263 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/LeakExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698