| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 | 237 |
| 238 static bool directoryUploadEnabled() { return isDirectoryUploadEnabled; } | 238 static bool directoryUploadEnabled() { return isDirectoryUploadEnabled; } |
| 239 static void setDirectoryUploadEnabled(bool isEnabled) { isDirectoryUploadEna
bled = isEnabled; } | 239 static void setDirectoryUploadEnabled(bool isEnabled) { isDirectoryUploadEna
bled = isEnabled; } |
| 240 | 240 |
| 241 static void setExperimentalWebSocketEnabled(bool isEnabled) { isExperimental
WebSocketEnabled = isEnabled; } | 241 static void setExperimentalWebSocketEnabled(bool isEnabled) { isExperimental
WebSocketEnabled = isEnabled; } |
| 242 static bool experimentalWebSocketEnabled() { return isExperimentalWebSocketE
nabled; } | 242 static bool experimentalWebSocketEnabled() { return isExperimentalWebSocketE
nabled; } |
| 243 | 243 |
| 244 static bool imeAPIEnabled() { return isIMEAPIEnabled; } | 244 static bool imeAPIEnabled() { return isIMEAPIEnabled; } |
| 245 static void setIMEAPIEnabled(bool isEnabled) { isIMEAPIEnabled = isEnabled;
} | 245 static void setIMEAPIEnabled(bool isEnabled) { isIMEAPIEnabled = isEnabled;
} |
| 246 | 246 |
| 247 static void setAnimatedWebPEnabled(bool isEnabled) { isAnimatedWebPEnabled =
isEnabled; } |
| 248 static bool animatedWebPEnabled() { return isAnimatedWebPEnabled; } |
| 249 |
| 247 private: | 250 private: |
| 248 // Never instantiate. | 251 // Never instantiate. |
| 249 RuntimeEnabledFeatures() { } | 252 RuntimeEnabledFeatures() { } |
| 250 | 253 |
| 251 static bool isLocalStorageEnabled; | 254 static bool isLocalStorageEnabled; |
| 252 static bool isSessionStorageEnabled; | 255 static bool isSessionStorageEnabled; |
| 253 static bool isWebkitNotificationsEnabled; | 256 static bool isWebkitNotificationsEnabled; |
| 254 static bool isApplicationCacheEnabled; | 257 static bool isApplicationCacheEnabled; |
| 255 static bool isGeolocationEnabled; | 258 static bool isGeolocationEnabled; |
| 256 static bool isIndexedDBEnabled; | 259 static bool isIndexedDBEnabled; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 | 322 |
| 320 static bool isFontLoadEventsEnabled; | 323 static bool isFontLoadEventsEnabled; |
| 321 | 324 |
| 322 static bool isWebPInAcceptHeaderEnabled; | 325 static bool isWebPInAcceptHeaderEnabled; |
| 323 | 326 |
| 324 static bool isDirectoryUploadEnabled; | 327 static bool isDirectoryUploadEnabled; |
| 325 | 328 |
| 326 static bool isExperimentalWebSocketEnabled; | 329 static bool isExperimentalWebSocketEnabled; |
| 327 | 330 |
| 328 static bool isIMEAPIEnabled; | 331 static bool isIMEAPIEnabled; |
| 332 |
| 333 static bool isAnimatedWebPEnabled; |
| 329 }; | 334 }; |
| 330 | 335 |
| 331 } // namespace WebCore | 336 } // namespace WebCore |
| 332 | 337 |
| 333 #endif // RuntimeEnabledFeatures_h | 338 #endif // RuntimeEnabledFeatures_h |
| OLD | NEW |