| 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 RuntimeEnabledFeatures::setWebkitFullScreenAPIEnabled(enable); | 372 RuntimeEnabledFeatures::setWebkitFullScreenAPIEnabled(enable); |
| 373 } | 373 } |
| 374 | 374 |
| 375 bool WebRuntimeFeatures::isFullScreenAPIEnabled() | 375 bool WebRuntimeFeatures::isFullScreenAPIEnabled() |
| 376 { | 376 { |
| 377 return RuntimeEnabledFeatures::webkitFullScreenAPIEnabled(); | 377 return RuntimeEnabledFeatures::webkitFullScreenAPIEnabled(); |
| 378 } | 378 } |
| 379 | 379 |
| 380 void WebRuntimeFeatures::enableMediaSource(bool enable) | 380 void WebRuntimeFeatures::enableMediaSource(bool enable) |
| 381 { | 381 { |
| 382 #if ENABLE(MEDIA_SOURCE) | |
| 383 RuntimeEnabledFeatures::setMediaSourceEnabled(enable); | 382 RuntimeEnabledFeatures::setMediaSourceEnabled(enable); |
| 384 #else | |
| 385 UNUSED_PARAM(enable); | |
| 386 #endif | |
| 387 } | 383 } |
| 388 | 384 |
| 389 bool WebRuntimeFeatures::isMediaSourceEnabled() | 385 bool WebRuntimeFeatures::isMediaSourceEnabled() |
| 390 { | 386 { |
| 391 #if ENABLE(MEDIA_SOURCE) | |
| 392 return RuntimeEnabledFeatures::mediaSourceEnabled(); | 387 return RuntimeEnabledFeatures::mediaSourceEnabled(); |
| 393 #else | |
| 394 return false; | |
| 395 #endif | |
| 396 } | 388 } |
| 397 | 389 |
| 398 void WebRuntimeFeatures::enableEncryptedMedia(bool enable) | 390 void WebRuntimeFeatures::enableEncryptedMedia(bool enable) |
| 399 { | 391 { |
| 400 #if ENABLE(ENCRYPTED_MEDIA) | 392 #if ENABLE(ENCRYPTED_MEDIA) |
| 401 RuntimeEnabledFeatures::setEncryptedMediaEnabled(enable); | 393 RuntimeEnabledFeatures::setEncryptedMediaEnabled(enable); |
| 402 #else | 394 #else |
| 403 UNUSED_PARAM(enable); | 395 UNUSED_PARAM(enable); |
| 404 #endif | 396 #endif |
| 405 } | 397 } |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 720 bool WebRuntimeFeatures::isRequestAutocompleteEnabled() | 712 bool WebRuntimeFeatures::isRequestAutocompleteEnabled() |
| 721 { | 713 { |
| 722 #if ENABLE(REQUEST_AUTOCOMPLETE) | 714 #if ENABLE(REQUEST_AUTOCOMPLETE) |
| 723 return RuntimeEnabledFeatures::requestAutocompleteEnabled(); | 715 return RuntimeEnabledFeatures::requestAutocompleteEnabled(); |
| 724 #else | 716 #else |
| 725 return false; | 717 return false; |
| 726 #endif | 718 #endif |
| 727 } | 719 } |
| 728 | 720 |
| 729 } // namespace WebKit | 721 } // namespace WebKit |
| OLD | NEW |