Changeset 81779 in webkit


Ignore:
Timestamp:
Mar 23, 2011 9:47:57 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-03-23 Leandro Gracia Gil <leandrogracia@chromium.org>

Reviewed by Steve Block.

Media Stream API: add a flag to RuntimeEnabledFeatures.
https://bugs.webkit.org/show_bug.cgi?id=56921

Add a flag to RuntimeEnabledFeatures to check if the Media Stream API is enabled at runtime.

Tests for the Media Stream API will be provided by the bug 56587.

  • bindings/generic/RuntimeEnabledFeatures.cpp:
  • bindings/generic/RuntimeEnabledFeatures.h: (WebCore::RuntimeEnabledFeatures::mediaStreamEnabled): (WebCore::RuntimeEnabledFeatures::setMediaStreamEnabled): (WebCore::RuntimeEnabledFeatures::webkitGetUserMediaEnabled):
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r81778 r81779  
     12011-03-23  Leandro Gracia Gil  <leandrogracia@chromium.org>
     2
     3        Reviewed by Steve Block.
     4
     5        Media Stream API: add a flag to RuntimeEnabledFeatures.
     6        https://bugs.webkit.org/show_bug.cgi?id=56921
     7
     8        Add a flag to RuntimeEnabledFeatures to check if the Media Stream API is enabled at runtime.
     9
     10        Tests for the Media Stream API will be provided by the bug 56587.
     11
     12        * bindings/generic/RuntimeEnabledFeatures.cpp:
     13        * bindings/generic/RuntimeEnabledFeatures.h:
     14        (WebCore::RuntimeEnabledFeatures::mediaStreamEnabled):
     15        (WebCore::RuntimeEnabledFeatures::setMediaStreamEnabled):
     16        (WebCore::RuntimeEnabledFeatures::webkitGetUserMediaEnabled):
     17
    1182011-03-23  Carol Szabo  <carol.szabo@nokia.com>
    219
  • trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp

    r80536 r81779  
    5757bool RuntimeEnabledFeatures::isDeviceOrientationEnabled = true;
    5858bool RuntimeEnabledFeatures::isSpeechInputEnabled = true;
     59
     60#if ENABLE(MEDIA_STREAM)
     61bool RuntimeEnabledFeatures::isMediaStreamEnabled = true;
     62#endif
    5963
    6064#if ENABLE(XHR_RESPONSE_BLOB)
  • trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h

    r80536 r81779  
    166166#endif
    167167
     168#if ENABLE(MEDIA_STREAM)
     169    static bool mediaStreamEnabled() { return isMediaStreamEnabled; }
     170    static void setMediaStreamEnabled(bool isEnabled) { isMediaStreamEnabled = isEnabled; }
     171    static bool webkitGetUserMediaEnabled() { return isMediaStreamEnabled; }
     172#endif
     173
    168174private:
    169175    // Never instantiate.
     
    195201    static bool isJavaScriptI18NAPIEnabled;
    196202#endif
     203
     204#if ENABLE(MEDIA_STREAM)
     205    static bool isMediaStreamEnabled;
     206#endif
    197207};
    198208
Note: See TracChangeset for help on using the changeset viewer.