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

Side by Side Diff: third_party/WebKit/Source/web/WebRuntimeFeatures.cpp

Issue 2475983002: Add FeatureList plumbing for the LazyParseCSS experiment (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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 } 135 }
136 136
137 void WebRuntimeFeatures::enableGenericSensor(bool enable) { 137 void WebRuntimeFeatures::enableGenericSensor(bool enable) {
138 RuntimeEnabledFeatures::setSensorEnabled(enable); 138 RuntimeEnabledFeatures::setSensorEnabled(enable);
139 } 139 }
140 140
141 void WebRuntimeFeatures::enableInputMultipleFieldsUI(bool enable) { 141 void WebRuntimeFeatures::enableInputMultipleFieldsUI(bool enable) {
142 RuntimeEnabledFeatures::setInputMultipleFieldsUIEnabled(enable); 142 RuntimeEnabledFeatures::setInputMultipleFieldsUIEnabled(enable);
143 } 143 }
144 144
145 void WebRuntimeFeatures::enableLazyParseCSS(bool enable) {
146 RuntimeEnabledFeatures::setLazyParseCSSEnabled(enable);
147 }
148
145 void WebRuntimeFeatures::enableMediaCapture(bool enable) { 149 void WebRuntimeFeatures::enableMediaCapture(bool enable) {
146 RuntimeEnabledFeatures::setMediaCaptureEnabled(enable); 150 RuntimeEnabledFeatures::setMediaCaptureEnabled(enable);
147 } 151 }
148 152
149 void WebRuntimeFeatures::enableMediaDocumentDownloadButton(bool enable) { 153 void WebRuntimeFeatures::enableMediaDocumentDownloadButton(bool enable) {
150 RuntimeEnabledFeatures::setMediaDocumentDownloadButtonEnabled(enable); 154 RuntimeEnabledFeatures::setMediaDocumentDownloadButtonEnabled(enable);
151 } 155 }
152 156
153 void WebRuntimeFeatures::enableNotificationConstructor(bool enable) { 157 void WebRuntimeFeatures::enableNotificationConstructor(bool enable) {
154 RuntimeEnabledFeatures::setNotificationConstructorEnabled(enable); 158 RuntimeEnabledFeatures::setNotificationConstructorEnabled(enable);
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 RuntimeEnabledFeatures::setTimerThrottlingForHiddenFramesEnabled(enable); 344 RuntimeEnabledFeatures::setTimerThrottlingForHiddenFramesEnabled(enable);
341 } 345 }
342 346
343 void WebRuntimeFeatures::enableSendBeaconThrowForBlobWithNonSimpleType( 347 void WebRuntimeFeatures::enableSendBeaconThrowForBlobWithNonSimpleType(
344 bool enable) { 348 bool enable) {
345 RuntimeEnabledFeatures::setSendBeaconThrowForBlobWithNonSimpleTypeEnabled( 349 RuntimeEnabledFeatures::setSendBeaconThrowForBlobWithNonSimpleTypeEnabled(
346 enable); 350 enable);
347 } 351 }
348 352
349 } // namespace blink 353 } // namespace blink
OLDNEW
« no previous file with comments | « content/public/common/content_features.cc ('k') | third_party/WebKit/public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698