| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 static bool seamlessIFramesEnabled() { return areSeamlessIFramesEnabled; } | 241 static bool seamlessIFramesEnabled() { return areSeamlessIFramesEnabled; } |
| 242 static void setSeamlessIFramesEnabled(bool isEnabled) { areSeamlessIFramesEn
abled = isEnabled; } | 242 static void setSeamlessIFramesEnabled(bool isEnabled) { areSeamlessIFramesEn
abled = isEnabled; } |
| 243 | 243 |
| 244 static bool langAttributeAwareFormControlUIEnabled() { return isLangAttribut
eAwareFormControlUIEnabled; } | 244 static bool langAttributeAwareFormControlUIEnabled() { return isLangAttribut
eAwareFormControlUIEnabled; } |
| 245 // The lang attribute support is incomplete and should only be turned on for
tests. | 245 // The lang attribute support is incomplete and should only be turned on for
tests. |
| 246 static void setLangAttributeAwareFormControlUIEnabled(bool isEnabled) { isLa
ngAttributeAwareFormControlUIEnabled = isEnabled; } | 246 static void setLangAttributeAwareFormControlUIEnabled(bool isEnabled) { isLa
ngAttributeAwareFormControlUIEnabled = isEnabled; } |
| 247 | 247 |
| 248 static bool requestAutocompleteEnabled() { return isRequestAutocompleteEnabl
ed; } | 248 static bool requestAutocompleteEnabled() { return isRequestAutocompleteEnabl
ed; } |
| 249 static void setRequestAutocompleteEnabled(bool isEnabled) { isRequestAutocom
pleteEnabled = isEnabled; } | 249 static void setRequestAutocompleteEnabled(bool isEnabled) { isRequestAutocom
pleteEnabled = isEnabled; } |
| 250 | 250 |
| 251 #if USE(WEBP) |
| 252 static void setWebPInAcceptHeaderEnabled(bool isEnabled) { isWebPInAcceptHea
derEnabled = isEnabled; } |
| 253 static bool webPInAcceptHeaderEnabled() { return isWebPInAcceptHeaderEnabled
; } |
| 254 #endif |
| 255 |
| 251 private: | 256 private: |
| 252 // Never instantiate. | 257 // Never instantiate. |
| 253 RuntimeEnabledFeatures() { } | 258 RuntimeEnabledFeatures() { } |
| 254 | 259 |
| 255 static bool isLocalStorageEnabled; | 260 static bool isLocalStorageEnabled; |
| 256 static bool isSessionStorageEnabled; | 261 static bool isSessionStorageEnabled; |
| 257 static bool isWebkitNotificationsEnabled; | 262 static bool isWebkitNotificationsEnabled; |
| 258 static bool isApplicationCacheEnabled; | 263 static bool isApplicationCacheEnabled; |
| 259 static bool isDataTransferItemsEnabled; | 264 static bool isDataTransferItemsEnabled; |
| 260 static bool isGeolocationEnabled; | 265 static bool isGeolocationEnabled; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 static bool areExperimentalContentSecurityPolicyFeaturesEnabled; | 331 static bool areExperimentalContentSecurityPolicyFeaturesEnabled; |
| 327 | 332 |
| 328 static bool areSeamlessIFramesEnabled; | 333 static bool areSeamlessIFramesEnabled; |
| 329 | 334 |
| 330 #if ENABLE(FONT_LOAD_EVENTS) | 335 #if ENABLE(FONT_LOAD_EVENTS) |
| 331 static bool isFontLoadEventsEnabled; | 336 static bool isFontLoadEventsEnabled; |
| 332 #endif | 337 #endif |
| 333 | 338 |
| 334 static bool isDoNotTrackEnabled; | 339 static bool isDoNotTrackEnabled; |
| 335 | 340 |
| 341 #if USE(WEBP) |
| 342 static bool isWebPInAcceptHeaderEnabled; |
| 343 #endif |
| 344 |
| 336 }; | 345 }; |
| 337 | 346 |
| 338 } // namespace WebCore | 347 } // namespace WebCore |
| 339 | 348 |
| 340 #endif // RuntimeEnabledFeatures_h | 349 #endif // RuntimeEnabledFeatures_h |
| OLD | NEW |