Chromium Code Reviews| 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 277 | 277 |
| 278 static bool langAttributeAwareFormControlUIEnabled() { return isLangAttribut eAwareFormControlUIEnabled; } | 278 static bool langAttributeAwareFormControlUIEnabled() { return isLangAttribut eAwareFormControlUIEnabled; } |
| 279 // The lang attribute support is incomplete and should only be turned on for tests. | 279 // The lang attribute support is incomplete and should only be turned on for tests. |
| 280 static void setLangAttributeAwareFormControlUIEnabled(bool isEnabled) { isLa ngAttributeAwareFormControlUIEnabled = isEnabled; } | 280 static void setLangAttributeAwareFormControlUIEnabled(bool isEnabled) { isLa ngAttributeAwareFormControlUIEnabled = isEnabled; } |
| 281 | 281 |
| 282 #if ENABLE(REQUEST_AUTOCOMPLETE) | 282 #if ENABLE(REQUEST_AUTOCOMPLETE) |
| 283 static bool requestAutocompleteEnabled() { return isRequestAutocompleteEnabl ed; } | 283 static bool requestAutocompleteEnabled() { return isRequestAutocompleteEnabl ed; } |
| 284 static void setRequestAutocompleteEnabled(bool isEnabled) { isRequestAutocom pleteEnabled = isEnabled; } | 284 static void setRequestAutocompleteEnabled(bool isEnabled) { isRequestAutocom pleteEnabled = isEnabled; } |
| 285 #endif | 285 #endif |
| 286 | 286 |
| 287 #if USE(WEBP) | |
|
darin (slow to review)
2013/04/10 23:13:16
WTF_USE_WEBP is no longer required in Blink. We c
urvang (Google)
2013/04/11 00:42:51
I was having a look at the latest tree, and WTF_US
| |
| 288 static void setWebPInAcceptHeaderEnabled(bool isEnabled) { isWebPInAcceptHea derEnabled = isEnabled; } | |
| 289 static bool webPInAcceptHeaderEnabled() { return isWebPInAcceptHeaderEnabled ; } | |
| 290 #endif | |
| 291 | |
| 287 private: | 292 private: |
| 288 // Never instantiate. | 293 // Never instantiate. |
| 289 RuntimeEnabledFeatures() { } | 294 RuntimeEnabledFeatures() { } |
| 290 | 295 |
| 291 static bool isLocalStorageEnabled; | 296 static bool isLocalStorageEnabled; |
| 292 static bool isSessionStorageEnabled; | 297 static bool isSessionStorageEnabled; |
| 293 static bool isWebkitNotificationsEnabled; | 298 static bool isWebkitNotificationsEnabled; |
| 294 static bool isApplicationCacheEnabled; | 299 static bool isApplicationCacheEnabled; |
| 295 static bool isDataTransferItemsEnabled; | 300 static bool isDataTransferItemsEnabled; |
| 296 static bool isGeolocationEnabled; | 301 static bool isGeolocationEnabled; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 384 #endif | 389 #endif |
| 385 | 390 |
| 386 static bool areExperimentalContentSecurityPolicyFeaturesEnabled; | 391 static bool areExperimentalContentSecurityPolicyFeaturesEnabled; |
| 387 | 392 |
| 388 static bool areSeamlessIFramesEnabled; | 393 static bool areSeamlessIFramesEnabled; |
| 389 | 394 |
| 390 #if ENABLE(FONT_LOAD_EVENTS) | 395 #if ENABLE(FONT_LOAD_EVENTS) |
| 391 static bool isFontLoadEventsEnabled; | 396 static bool isFontLoadEventsEnabled; |
| 392 #endif | 397 #endif |
| 393 | 398 |
| 399 #if USE(WEBP) | |
| 400 static bool isWebPInAcceptHeaderEnabled; | |
| 401 #endif | |
| 402 | |
| 394 }; | 403 }; |
| 395 | 404 |
| 396 } // namespace WebCore | 405 } // namespace WebCore |
| 397 | 406 |
| 398 #endif // RuntimeEnabledFeatures_h | 407 #endif // RuntimeEnabledFeatures_h |
| OLD | NEW |