| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 static bool scriptedSpeechEnabled() { return isScriptedSpeechEnabled; } | 152 static bool scriptedSpeechEnabled() { return isScriptedSpeechEnabled; } |
| 153 static bool webkitSpeechRecognitionEnabled() { return isScriptedSpeechEnable
d; } | 153 static bool webkitSpeechRecognitionEnabled() { return isScriptedSpeechEnable
d; } |
| 154 static bool webkitSpeechRecognitionErrorEnabled() { return isScriptedSpeechE
nabled; } | 154 static bool webkitSpeechRecognitionErrorEnabled() { return isScriptedSpeechE
nabled; } |
| 155 static bool webkitSpeechRecognitionEventEnabled() { return isScriptedSpeechE
nabled; } | 155 static bool webkitSpeechRecognitionEventEnabled() { return isScriptedSpeechE
nabled; } |
| 156 static bool webkitSpeechGrammarEnabled() { return isScriptedSpeechEnabled; } | 156 static bool webkitSpeechGrammarEnabled() { return isScriptedSpeechEnabled; } |
| 157 static bool webkitSpeechGrammarListEnabled() { return isScriptedSpeechEnable
d; } | 157 static bool webkitSpeechGrammarListEnabled() { return isScriptedSpeechEnable
d; } |
| 158 | 158 |
| 159 static bool fileSystemEnabled(); | 159 static bool fileSystemEnabled(); |
| 160 static void setFileSystemEnabled(bool isEnabled) { isFileSystemEnabled = isE
nabled; } | 160 static void setFileSystemEnabled(bool isEnabled) { isFileSystemEnabled = isE
nabled; } |
| 161 | 161 |
| 162 #if ENABLE(JAVASCRIPT_I18N_API) | |
| 163 static bool javaScriptI18NAPIEnabled(); | |
| 164 static void setJavaScriptI18NAPIEnabled(bool isEnabled) { isJavaScriptI18NAP
IEnabled = isEnabled; } | |
| 165 #endif | |
| 166 | |
| 167 #if ENABLE(MEDIA_STREAM) | 162 #if ENABLE(MEDIA_STREAM) |
| 168 static bool mediaStreamEnabled() { return isMediaStreamEnabled; } | 163 static bool mediaStreamEnabled() { return isMediaStreamEnabled; } |
| 169 static void setMediaStreamEnabled(bool isEnabled) { isMediaStreamEnabled = i
sEnabled; } | 164 static void setMediaStreamEnabled(bool isEnabled) { isMediaStreamEnabled = i
sEnabled; } |
| 170 static bool webkitGetUserMediaEnabled() { return isMediaStreamEnabled; } | 165 static bool webkitGetUserMediaEnabled() { return isMediaStreamEnabled; } |
| 171 static bool webkitMediaStreamEnabled() { return isMediaStreamEnabled; } | 166 static bool webkitMediaStreamEnabled() { return isMediaStreamEnabled; } |
| 172 | 167 |
| 173 static bool peerConnectionEnabled() { return isMediaStreamEnabled && isPeerC
onnectionEnabled; } | 168 static bool peerConnectionEnabled() { return isMediaStreamEnabled && isPeerC
onnectionEnabled; } |
| 174 static void setPeerConnectionEnabled(bool isEnabled) { isPeerConnectionEnabl
ed = isEnabled; } | 169 static void setPeerConnectionEnabled(bool isEnabled) { isPeerConnectionEnabl
ed = isEnabled; } |
| 175 static bool webkitRTCPeerConnectionEnabled() { return peerConnectionEnabled(
); } | 170 static bool webkitRTCPeerConnectionEnabled() { return peerConnectionEnabled(
); } |
| 176 #endif | 171 #endif |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 static bool isDeviceOrientationEnabled; | 258 static bool isDeviceOrientationEnabled; |
| 264 static bool isSpeechInputEnabled; | 259 static bool isSpeechInputEnabled; |
| 265 static bool isCanvasPathEnabled; | 260 static bool isCanvasPathEnabled; |
| 266 static bool isCSSExclusionsEnabled; | 261 static bool isCSSExclusionsEnabled; |
| 267 static bool isCSSRegionsEnabled; | 262 static bool isCSSRegionsEnabled; |
| 268 static bool isCSSCompositingEnabled; | 263 static bool isCSSCompositingEnabled; |
| 269 static bool isLangAttributeAwareFormControlUIEnabled; | 264 static bool isLangAttributeAwareFormControlUIEnabled; |
| 270 static bool isScriptedSpeechEnabled; | 265 static bool isScriptedSpeechEnabled; |
| 271 static bool isFileSystemEnabled; | 266 static bool isFileSystemEnabled; |
| 272 | 267 |
| 273 #if ENABLE(JAVASCRIPT_I18N_API) | |
| 274 static bool isJavaScriptI18NAPIEnabled; | |
| 275 #endif | |
| 276 | |
| 277 #if ENABLE(MEDIA_STREAM) | 268 #if ENABLE(MEDIA_STREAM) |
| 278 static bool isMediaStreamEnabled; | 269 static bool isMediaStreamEnabled; |
| 279 static bool isPeerConnectionEnabled; | 270 static bool isPeerConnectionEnabled; |
| 280 #endif | 271 #endif |
| 281 | 272 |
| 282 #if ENABLE(GAMEPAD) | 273 #if ENABLE(GAMEPAD) |
| 283 static bool isGamepadEnabled; | 274 static bool isGamepadEnabled; |
| 284 #endif | 275 #endif |
| 285 | 276 |
| 286 static bool isQuotaEnabled; | 277 static bool isQuotaEnabled; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 static bool isWebPInAcceptHeaderEnabled; | 319 static bool isWebPInAcceptHeaderEnabled; |
| 329 | 320 |
| 330 static bool isDirectoryUploadEnabled; | 321 static bool isDirectoryUploadEnabled; |
| 331 | 322 |
| 332 static bool isExperimentalWebSocketEnabled; | 323 static bool isExperimentalWebSocketEnabled; |
| 333 }; | 324 }; |
| 334 | 325 |
| 335 } // namespace WebCore | 326 } // namespace WebCore |
| 336 | 327 |
| 337 #endif // RuntimeEnabledFeatures_h | 328 #endif // RuntimeEnabledFeatures_h |
| OLD | NEW |