| 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 #include <wtf/UnusedParam.h> | 38 #include <wtf/UnusedParam.h> |
| 39 | 39 |
| 40 using namespace WebCore; | 40 using namespace WebCore; |
| 41 | 41 |
| 42 namespace WebKit { | 42 namespace WebKit { |
| 43 | 43 |
| 44 void WebRuntimeFeatures::enableStableFeatures(bool enable) | 44 void WebRuntimeFeatures::enableStableFeatures(bool enable) |
| 45 { | 45 { |
| 46 enableApplicationCache(enable); | 46 enableApplicationCache(enable); |
| 47 enableAudioContext(enable); |
| 47 enableDatabase(enable); | 48 enableDatabase(enable); |
| 48 enableDeviceOrientation(enable); | 49 enableDeviceOrientation(enable); |
| 49 enableDirectoryUpload(enable); | 50 enableDirectoryUpload(enable); |
| 50 enableEncryptedMedia(enable); | 51 enableEncryptedMedia(enable); |
| 51 enableFileSystem(enable); | 52 enableFileSystem(enable); |
| 52 enableFullScreenAPI(enable); | 53 enableFullscreen(enable); |
| 53 enableGamepad(enable); | 54 enableGamepad(enable); |
| 54 enableGeolocation(enable); | 55 enableGeolocation(enable); |
| 55 enableIndexedDatabase(enable); | 56 enableIndexedDB(enable); |
| 56 enableInputTypeWeek(enable); | 57 enableInputTypeWeek(enable); |
| 57 enableJavaScriptI18NAPI(enable); | 58 enableJavaScriptI18NAPI(enable); |
| 58 enableLocalStorage(enable); | 59 enableLocalStorage(enable); |
| 59 enableMediaPlayer(enable); | 60 enableMediaPlayer(enable); |
| 60 enableMediaSource(enable); | 61 enableMediaSource(enable); |
| 61 enableMediaStream(enable); | 62 enableMediaStream(enable); |
| 62 enableNotifications(enable); | 63 enableNotifications(enable); |
| 63 enablePeerConnection(enable); | 64 enablePeerConnection(enable); |
| 64 enableQuota(enable); | 65 enableQuota(enable); |
| 65 enableScriptedSpeech(enable); | 66 enableScriptedSpeech(enable); |
| 66 enableSessionStorage(enable); | 67 enableSessionStorage(enable); |
| 67 enableSpeechInput(enable); | 68 enableSpeechInput(enable); |
| 68 enableTouch(enable); | 69 enableTouch(enable); |
| 69 enableWebAudio(enable); | |
| 70 enableVideoTrack(enable); | 70 enableVideoTrack(enable); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void WebRuntimeFeatures::enableExperimentalFeatures(bool enable) | 73 void WebRuntimeFeatures::enableExperimentalFeatures(bool enable) |
| 74 { | 74 { |
| 75 enableCSSCompositing(enable); | 75 enableCSSCompositing(enable); |
| 76 enableCSSExclusions(enable); | 76 enableCSSExclusions(enable); |
| 77 enableCSSRegions(enable); | 77 enableCSSRegions(enable); |
| 78 enableCustomDOMElements(enable); | 78 enableCustomDOMElements(enable); |
| 79 enableDialogElement(enable); | 79 enableDialogElement(enable); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 void WebRuntimeFeatures::enableGeolocation(bool enable) | 172 void WebRuntimeFeatures::enableGeolocation(bool enable) |
| 173 { | 173 { |
| 174 RuntimeEnabledFeatures::setGeolocationEnabled(enable); | 174 RuntimeEnabledFeatures::setGeolocationEnabled(enable); |
| 175 } | 175 } |
| 176 | 176 |
| 177 bool WebRuntimeFeatures::isGeolocationEnabled() | 177 bool WebRuntimeFeatures::isGeolocationEnabled() |
| 178 { | 178 { |
| 179 return RuntimeEnabledFeatures::geolocationEnabled(); | 179 return RuntimeEnabledFeatures::geolocationEnabled(); |
| 180 } | 180 } |
| 181 | 181 |
| 182 void WebRuntimeFeatures::enableIndexedDatabase(bool enable) | 182 void WebRuntimeFeatures::enableIndexedDB(bool enable) |
| 183 { | 183 { |
| 184 RuntimeEnabledFeatures::setIndexedDBEnabled(enable); | 184 RuntimeEnabledFeatures::setIndexedDBEnabled(enable); |
| 185 } | 185 } |
| 186 | 186 |
| 187 bool WebRuntimeFeatures::isIndexedDatabaseEnabled() | 187 bool WebRuntimeFeatures::isIndexedDBEnabled() |
| 188 { | 188 { |
| 189 return RuntimeEnabledFeatures::indexedDBEnabled(); | 189 return RuntimeEnabledFeatures::indexedDBEnabled(); |
| 190 } | 190 } |
| 191 | 191 |
| 192 void WebRuntimeFeatures::enableWebAudio(bool enable) | 192 void WebRuntimeFeatures::enableAudioContext(bool enable) |
| 193 { | 193 { |
| 194 RuntimeEnabledFeatures::setAudioContextEnabled(enable); | 194 RuntimeEnabledFeatures::setAudioContextEnabled(enable); |
| 195 } | 195 } |
| 196 | 196 |
| 197 bool WebRuntimeFeatures::isWebAudioEnabled() | 197 bool WebRuntimeFeatures::isAudioContextEnabled() |
| 198 { | 198 { |
| 199 return RuntimeEnabledFeatures::audioContextEnabled(); | 199 return RuntimeEnabledFeatures::audioContextEnabled(); |
| 200 } | 200 } |
| 201 | 201 |
| 202 void WebRuntimeFeatures::enableTouch(bool enable) | 202 void WebRuntimeFeatures::enableTouch(bool enable) |
| 203 { | 203 { |
| 204 RuntimeEnabledFeatures::setTouchEnabled(enable); | 204 RuntimeEnabledFeatures::setTouchEnabled(enable); |
| 205 } | 205 } |
| 206 | 206 |
| 207 bool WebRuntimeFeatures::isTouchEnabled() | 207 bool WebRuntimeFeatures::isTouchEnabled() |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 void WebRuntimeFeatures::enablePeerConnection(bool enable) | 301 void WebRuntimeFeatures::enablePeerConnection(bool enable) |
| 302 { | 302 { |
| 303 RuntimeEnabledFeatures::setPeerConnectionEnabled(enable); | 303 RuntimeEnabledFeatures::setPeerConnectionEnabled(enable); |
| 304 } | 304 } |
| 305 | 305 |
| 306 bool WebRuntimeFeatures::isPeerConnectionEnabled() | 306 bool WebRuntimeFeatures::isPeerConnectionEnabled() |
| 307 { | 307 { |
| 308 return RuntimeEnabledFeatures::peerConnectionEnabled(); | 308 return RuntimeEnabledFeatures::peerConnectionEnabled(); |
| 309 } | 309 } |
| 310 | 310 |
| 311 void WebRuntimeFeatures::enableFullScreenAPI(bool enable) | 311 void WebRuntimeFeatures::enableFullscreen(bool enable) |
| 312 { | 312 { |
| 313 RuntimeEnabledFeatures::setFullscreenEnabled(enable); | 313 RuntimeEnabledFeatures::setFullscreenEnabled(enable); |
| 314 } | 314 } |
| 315 | 315 |
| 316 bool WebRuntimeFeatures::isFullScreenAPIEnabled() | 316 bool WebRuntimeFeatures::isFullscreenEnabled() |
| 317 { | 317 { |
| 318 return RuntimeEnabledFeatures::fullscreenEnabled(); | 318 return RuntimeEnabledFeatures::fullscreenEnabled(); |
| 319 } | 319 } |
| 320 | 320 |
| 321 void WebRuntimeFeatures::enableMediaSource(bool enable) | 321 void WebRuntimeFeatures::enableMediaSource(bool enable) |
| 322 { | 322 { |
| 323 RuntimeEnabledFeatures::setMediaSourceEnabled(enable); | 323 RuntimeEnabledFeatures::setMediaSourceEnabled(enable); |
| 324 } | 324 } |
| 325 | 325 |
| 326 bool WebRuntimeFeatures::isMediaSourceEnabled() | 326 bool WebRuntimeFeatures::isMediaSourceEnabled() |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 bool WebRuntimeFeatures::isExperimentalContentSecurityPolicyFeaturesEnabled() | 436 bool WebRuntimeFeatures::isExperimentalContentSecurityPolicyFeaturesEnabled() |
| 437 { | 437 { |
| 438 return RuntimeEnabledFeatures::experimentalContentSecurityPolicyFeaturesEnab
led(); | 438 return RuntimeEnabledFeatures::experimentalContentSecurityPolicyFeaturesEnab
led(); |
| 439 } | 439 } |
| 440 | 440 |
| 441 void WebRuntimeFeatures::enableSeamlessIFrames(bool enable) | 441 void WebRuntimeFeatures::enableSeamlessIFrames(bool enable) |
| 442 { | 442 { |
| 443 return RuntimeEnabledFeatures::setSeamlessIFramesEnabled(enable); | 443 return RuntimeEnabledFeatures::setSeamlessIFramesEnabled(enable); |
| 444 } | 444 } |
| 445 | 445 |
| 446 bool WebRuntimeFeatures::areSeamlessIFramesEnabled() | 446 bool WebRuntimeFeatures::isSeamlessIFramesEnabled() |
| 447 { | 447 { |
| 448 return RuntimeEnabledFeatures::seamlessIFramesEnabled(); | 448 return RuntimeEnabledFeatures::seamlessIFramesEnabled(); |
| 449 } | 449 } |
| 450 | 450 |
| 451 void WebRuntimeFeatures::enableCanvasPath(bool enable) | 451 void WebRuntimeFeatures::enableCanvasPath(bool enable) |
| 452 { | 452 { |
| 453 RuntimeEnabledFeatures::setCanvasPathEnabled(enable); | 453 RuntimeEnabledFeatures::setCanvasPathEnabled(enable); |
| 454 } | 454 } |
| 455 | 455 |
| 456 bool WebRuntimeFeatures::isCanvasPathEnabled() | 456 bool WebRuntimeFeatures::isCanvasPathEnabled() |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 bool WebRuntimeFeatures::isIMEAPIEnabled() | 556 bool WebRuntimeFeatures::isIMEAPIEnabled() |
| 557 { | 557 { |
| 558 return RuntimeEnabledFeatures::imeAPIEnabled(); | 558 return RuntimeEnabledFeatures::imeAPIEnabled(); |
| 559 } | 559 } |
| 560 | 560 |
| 561 void WebRuntimeFeatures::enableExperimentalCanvasFeatures(bool enable) | 561 void WebRuntimeFeatures::enableExperimentalCanvasFeatures(bool enable) |
| 562 { | 562 { |
| 563 RuntimeEnabledFeatures::setExperimentalCanvasFeaturesEnabled(enable); | 563 RuntimeEnabledFeatures::setExperimentalCanvasFeaturesEnabled(enable); |
| 564 } | 564 } |
| 565 | 565 |
| 566 bool WebRuntimeFeatures::areExperimentalCanvasFeaturesEnabled() | 566 bool WebRuntimeFeatures::isExperimentalCanvasFeaturesEnabled() |
| 567 { | 567 { |
| 568 return RuntimeEnabledFeatures::experimentalCanvasFeaturesEnabled(); | 568 return RuntimeEnabledFeatures::experimentalCanvasFeaturesEnabled(); |
| 569 } | 569 } |
| 570 | 570 |
| 571 void WebRuntimeFeatures::enableSpeechSynthesis(bool enable) | 571 void WebRuntimeFeatures::enableSpeechSynthesis(bool enable) |
| 572 { | 572 { |
| 573 RuntimeEnabledFeatures::setSpeechSynthesisEnabled(enable); | 573 RuntimeEnabledFeatures::setSpeechSynthesisEnabled(enable); |
| 574 } | 574 } |
| 575 | 575 |
| 576 bool WebRuntimeFeatures::isSpeechSynthesisEnabled() | 576 bool WebRuntimeFeatures::isSpeechSynthesisEnabled() |
| 577 { | 577 { |
| 578 return RuntimeEnabledFeatures::speechSynthesisEnabled(); | 578 return RuntimeEnabledFeatures::speechSynthesisEnabled(); |
| 579 } | 579 } |
| 580 | 580 |
| 581 } // namespace WebKit | 581 } // namespace WebKit |
| OLD | NEW |