OLD | NEW |
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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 | 217 |
218 static void setDirectoryUploadEnabled(bool isEnabled) { isDirectoryUploadEna
bled = isEnabled; } | 218 static void setDirectoryUploadEnabled(bool isEnabled) { isDirectoryUploadEna
bled = isEnabled; } |
219 static bool directoryUploadEnabled() { return isDirectoryUploadEnabled; } | 219 static bool directoryUploadEnabled() { return isDirectoryUploadEnabled; } |
220 | 220 |
221 static void setExperimentalWebSocketEnabled(bool isEnabled) { isExperimental
WebSocketEnabled = isEnabled; } | 221 static void setExperimentalWebSocketEnabled(bool isEnabled) { isExperimental
WebSocketEnabled = isEnabled; } |
222 static bool experimentalWebSocketEnabled() { return isExperimentalWebSocketE
nabled; } | 222 static bool experimentalWebSocketEnabled() { return isExperimentalWebSocketE
nabled; } |
223 | 223 |
224 static void setIMEAPIEnabled(bool isEnabled) { isIMEAPIEnabled = isEnabled;
} | 224 static void setIMEAPIEnabled(bool isEnabled) { isIMEAPIEnabled = isEnabled;
} |
225 static bool imeAPIEnabled() { return isIMEAPIEnabled; } | 225 static bool imeAPIEnabled() { return isIMEAPIEnabled; } |
226 | 226 |
| 227 static bool experimentalCanvasFeaturesEnabled() { return areExperimentalCanv
asFeaturesEnabled; } |
| 228 static void setExperimentalCanvasFeaturesEnabled(bool isEnabled) { areExperi
mentalCanvasFeaturesEnabled = isEnabled; } |
| 229 |
227 private: | 230 private: |
228 // Never instantiate. | 231 // Never instantiate. |
229 RuntimeEnabledFeatures() { } | 232 RuntimeEnabledFeatures() { } |
230 | 233 |
231 static bool isLocalStorageEnabled; | 234 static bool isLocalStorageEnabled; |
232 static bool isSessionStorageEnabled; | 235 static bool isSessionStorageEnabled; |
233 static bool isWebkitNotificationsEnabled; | 236 static bool isWebkitNotificationsEnabled; |
234 static bool isApplicationCacheEnabled; | 237 static bool isApplicationCacheEnabled; |
235 static bool isGeolocationEnabled; | 238 static bool isGeolocationEnabled; |
236 static bool isIndexedDBEnabled; | 239 static bool isIndexedDBEnabled; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 static bool isDialogElementEnabled; | 287 static bool isDialogElementEnabled; |
285 static bool isLazyLayoutEnabled; | 288 static bool isLazyLayoutEnabled; |
286 static bool isExperimentalContentSecurityPolicyFeaturesEnabled; | 289 static bool isExperimentalContentSecurityPolicyFeaturesEnabled; |
287 static bool isSeamlessIFramesEnabled; | 290 static bool isSeamlessIFramesEnabled; |
288 static bool isLangAttributeAwareFormControlUIEnabled; | 291 static bool isLangAttributeAwareFormControlUIEnabled; |
289 static bool isRequestAutocompleteEnabled; | 292 static bool isRequestAutocompleteEnabled; |
290 static bool isWebPInAcceptHeaderEnabled; | 293 static bool isWebPInAcceptHeaderEnabled; |
291 static bool isDirectoryUploadEnabled; | 294 static bool isDirectoryUploadEnabled; |
292 static bool isExperimentalWebSocketEnabled; | 295 static bool isExperimentalWebSocketEnabled; |
293 static bool isIMEAPIEnabled; | 296 static bool isIMEAPIEnabled; |
| 297 |
| 298 static bool areExperimentalCanvasFeaturesEnabled; |
294 }; | 299 }; |
295 | 300 |
296 } // namespace WebCore | 301 } // namespace WebCore |
297 | 302 |
298 #endif // RuntimeEnabledFeatures_h | 303 #endif // RuntimeEnabledFeatures_h |
OLD | NEW |