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

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

Issue 1968653002: Rename flags for Origin Trials framework (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 7 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
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 void WebRuntimeFeatures::enableDocumentWriteEvaluator(bool enable) 113 void WebRuntimeFeatures::enableDocumentWriteEvaluator(bool enable)
114 { 114 {
115 RuntimeEnabledFeatures::setDocumentWriteEvaluatorEnabled(enable); 115 RuntimeEnabledFeatures::setDocumentWriteEvaluatorEnabled(enable);
116 } 116 }
117 117
118 void WebRuntimeFeatures::enableExperimentalCanvasFeatures(bool enable) 118 void WebRuntimeFeatures::enableExperimentalCanvasFeatures(bool enable)
119 { 119 {
120 RuntimeEnabledFeatures::setExperimentalCanvasFeaturesEnabled(enable); 120 RuntimeEnabledFeatures::setExperimentalCanvasFeaturesEnabled(enable);
121 } 121 }
122 122
123 void WebRuntimeFeatures::enableExperimentalFramework(bool enable)
124 {
125 RuntimeEnabledFeatures::setExperimentalFrameworkEnabled(enable);
126 }
127
128 bool WebRuntimeFeatures::isExperimentalFrameworkEnabled()
129 {
130 return RuntimeEnabledFeatures::experimentalFrameworkEnabled();
131 }
132
133 void WebRuntimeFeatures::enableFastMobileScrolling(bool enable) 123 void WebRuntimeFeatures::enableFastMobileScrolling(bool enable)
134 { 124 {
135 RuntimeEnabledFeatures::setFastMobileScrollingEnabled(enable); 125 RuntimeEnabledFeatures::setFastMobileScrollingEnabled(enable);
136 } 126 }
137 127
138 void WebRuntimeFeatures::enableFileSystem(bool enable) 128 void WebRuntimeFeatures::enableFileSystem(bool enable)
139 { 129 {
140 RuntimeEnabledFeatures::setFileSystemEnabled(enable); 130 RuntimeEnabledFeatures::setFileSystemEnabled(enable);
141 } 131 }
142 132
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 void WebRuntimeFeatures::enableNetworkInformation(bool enable) 168 void WebRuntimeFeatures::enableNetworkInformation(bool enable)
179 { 169 {
180 RuntimeEnabledFeatures::setNetworkInformationEnabled(enable); 170 RuntimeEnabledFeatures::setNetworkInformationEnabled(enable);
181 } 171 }
182 172
183 void WebRuntimeFeatures::enableOrientationEvent(bool enable) 173 void WebRuntimeFeatures::enableOrientationEvent(bool enable)
184 { 174 {
185 RuntimeEnabledFeatures::setOrientationEventEnabled(enable); 175 RuntimeEnabledFeatures::setOrientationEventEnabled(enable);
186 } 176 }
187 177
178 void WebRuntimeFeatures::enableOriginTrials(bool enable)
179 {
180 RuntimeEnabledFeatures::setOriginTrialsEnabled(enable);
181 }
182
183 bool WebRuntimeFeatures::isOriginTrialsEnabled()
184 {
185 return RuntimeEnabledFeatures::originTrialsEnabled();
186 }
187
188 void WebRuntimeFeatures::enablePagePopup(bool enable) 188 void WebRuntimeFeatures::enablePagePopup(bool enable)
189 { 189 {
190 RuntimeEnabledFeatures::setPagePopupEnabled(enable); 190 RuntimeEnabledFeatures::setPagePopupEnabled(enable);
191 } 191 }
192 192
193 void WebRuntimeFeatures::enablePermissionsAPI(bool enable) 193 void WebRuntimeFeatures::enablePermissionsAPI(bool enable)
194 { 194 {
195 RuntimeEnabledFeatures::setPermissionsEnabled(enable); 195 RuntimeEnabledFeatures::setPermissionsEnabled(enable);
196 } 196 }
197 197
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 { 299 {
300 RuntimeEnabledFeatures::setWebFontsInterventionTriggerEnabled(enable); 300 RuntimeEnabledFeatures::setWebFontsInterventionTriggerEnabled(enable);
301 } 301 }
302 302
303 void WebRuntimeFeatures::enableScrollAnchoring(bool enable) 303 void WebRuntimeFeatures::enableScrollAnchoring(bool enable)
304 { 304 {
305 RuntimeEnabledFeatures::setScrollAnchoringEnabled(enable); 305 RuntimeEnabledFeatures::setScrollAnchoringEnabled(enable);
306 } 306 }
307 307
308 } // namespace blink 308 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in ('k') | third_party/WebKit/public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698