Changeset 206811 in webkit


Ignore:
Timestamp:
Oct 5, 2016 9:02:35 AM (8 years ago)
Author:
zandobersek@gmail.com
Message:

Rename ENABLE_ENCRYPTED_MEDIA_V2 to ENABLE_LEGACY_ENCRYPTED_MEDIA
https://bugs.webkit.org/show_bug.cgi?id=162903

Reviewed by Alex Christensen.

Rename build guards for the remaining implementation of the legacy EME API
to ENABLE_LEGACY_ENCRYPTED_MEDIA. This will allow for the future implementation
of the near-finished API to be guarded with the simple ENABLE_ENCRYPTED_MEDIA guards.

.:

  • Source/cmake/OptionsEfl.cmake:
  • Source/cmake/OptionsMac.cmake:
  • Source/cmake/OptionsWin.cmake:
  • Source/cmake/WebKitFeatures.cmake:
  • Source/cmake/tools/vsprops/FeatureDefines.props:
  • Source/cmake/tools/vsprops/FeatureDefinesCairo.props:

Source/JavaScriptCore:

  • Configurations/FeatureDefines.xcconfig:

Source/WebCore:

No new tests -- no change in behavior.

  • CMakeLists.txt:
  • Configurations/FeatureDefines.xcconfig:
  • DerivedSources.cpp:
  • DerivedSources.make:
  • Modules/encryptedmedia/CDM.cpp:
  • Modules/encryptedmedia/CDM.h:
  • Modules/encryptedmedia/CDMPrivate.h:
  • Modules/encryptedmedia/CDMPrivateClearKey.cpp:
  • Modules/encryptedmedia/CDMPrivateClearKey.h:
  • Modules/encryptedmedia/CDMPrivateMediaPlayer.cpp:
  • Modules/encryptedmedia/CDMPrivateMediaPlayer.h:
  • Modules/encryptedmedia/CDMSessionClearKey.cpp:
  • Modules/encryptedmedia/CDMSessionClearKey.h:
  • Modules/encryptedmedia/MediaKeyMessageEvent.cpp:
  • Modules/encryptedmedia/MediaKeyMessageEvent.h:
  • Modules/encryptedmedia/MediaKeyMessageEvent.idl:
  • Modules/encryptedmedia/MediaKeyNeededEvent.cpp:
  • Modules/encryptedmedia/MediaKeyNeededEvent.h:
  • Modules/encryptedmedia/MediaKeyNeededEvent.idl:
  • Modules/encryptedmedia/MediaKeySession.cpp:
  • Modules/encryptedmedia/MediaKeySession.h:
  • Modules/encryptedmedia/MediaKeySession.idl:
  • Modules/encryptedmedia/MediaKeys.cpp:
  • Modules/encryptedmedia/MediaKeys.h:
  • Modules/encryptedmedia/MediaKeys.idl:
  • bindings/js/JSDictionary.cpp:
  • bindings/js/JSDictionary.h:
  • dom/Element.idl:
  • dom/EventNames.in:
  • dom/EventTargetFactory.in:
  • html/HTMLMediaElement.cpp:

(WebCore::HTMLMediaElement::~HTMLMediaElement):
(WebCore::HTMLMediaElement::webkitGenerateKeyRequest):
(WebCore::HTMLMediaElement::webkitAddKey):

  • html/HTMLMediaElement.h:
  • html/HTMLMediaElement.idl:
  • html/MediaError.h:
  • html/MediaError.idl:
  • html/MediaKeyError.h:
  • html/MediaKeyError.idl:
  • page/Settings.h:
  • platform/graphics/CDMSession.h:
  • platform/graphics/MediaPlayer.cpp:
  • platform/graphics/MediaPlayer.h:
  • platform/graphics/MediaPlayerPrivate.h:
  • platform/graphics/avfoundation/CDMPrivateMediaSourceAVFObjC.h:
  • platform/graphics/avfoundation/CDMPrivateMediaSourceAVFObjC.mm:
  • platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
  • platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
  • platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.cpp:
  • platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.h:
  • platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:

(WebCore::MediaPlayerPrivateAVFoundationCF::supportsKeySystem):
(WebCore::AVFWrapper::shouldWaitForLoadingOfResource):

  • platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.h:
  • platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.h:
  • platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.mm:
  • platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.h:
  • platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm:
  • platform/graphics/avfoundation/objc/CDMSessionAVStreamSession.h:
  • platform/graphics/avfoundation/objc/CDMSessionAVStreamSession.mm:
  • platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.h:
  • platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm:
  • platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
  • platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:

(WebCore::MediaPlayerPrivateAVFoundationObjC::supportsKeySystem):
(WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForLoadingOfResource):
(WebCore::playerKVOProperties):
(-[WebCoreAVFMovieObserver observeValueForKeyPath:ofObject:change:context:]):

  • platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.h:
  • platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
  • platform/graphics/avfoundation/objc/MediaSourcePrivateAVFObjC.h:
  • platform/graphics/avfoundation/objc/MediaSourcePrivateAVFObjC.mm:
  • platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:

(WebCore::SourceBufferPrivateAVFObjC::willProvideContentKeyRequestInitializationDataForTrackID):
(WebCore::SourceBufferPrivateAVFObjC::didProvideContentKeyRequestInitializationDataForTrackID):

  • testing/Internals.cpp:
  • testing/Internals.h:
  • testing/Internals.idl:
  • testing/MockCDM.cpp:
  • testing/MockCDM.h:

Source/WebKit/mac:

  • Configurations/FeatureDefines.xcconfig:
  • WebView/WebPreferences.mm:

(+[WebPreferences initialize]):

  • WebView/WebView.mm:

(-[WebView _preferencesChanged:]):

Source/WebKit2:

  • Configurations/FeatureDefines.xcconfig:
  • WebProcess/WebPage/WebPage.cpp:

(WebKit::m_userInterfaceLayoutDirection):

  • WebProcess/WebProcess.cpp:

(WebKit::m_resourceLoadStatisticsStorage):

Source/WTF:

  • wtf/FeatureDefines.h:

Tools:

  • TestWebKitAPI/Configurations/FeatureDefines.xcconfig: Also remove the

ENABLE_IOS_TEXT_AUTOSIZING feature define that was renamed in r206395 and was
throwing up style checker errors.

Location:
trunk
Files:
92 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r206731 r206811  
     12016-10-05  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        Rename ENABLE_ENCRYPTED_MEDIA_V2 to ENABLE_LEGACY_ENCRYPTED_MEDIA
     4        https://bugs.webkit.org/show_bug.cgi?id=162903
     5
     6        Reviewed by Alex Christensen.
     7
     8        Rename build guards for the remaining implementation of the legacy EME API
     9        to ENABLE_LEGACY_ENCRYPTED_MEDIA. This will allow for the future implementation
     10        of the near-finished API to be guarded with the simple ENABLE_ENCRYPTED_MEDIA guards.
     11
     12        * Source/cmake/OptionsEfl.cmake:
     13        * Source/cmake/OptionsMac.cmake:
     14        * Source/cmake/OptionsWin.cmake:
     15        * Source/cmake/WebKitFeatures.cmake:
     16        * Source/cmake/tools/vsprops/FeatureDefines.props:
     17        * Source/cmake/tools/vsprops/FeatureDefinesCairo.props:
     18
    1192016-10-03  Carlos Garcia Campos  <cgarcia@igalia.com>
    220
  • trunk/Source/JavaScriptCore/ChangeLog

    r206808 r206811  
     12016-10-05  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        Rename ENABLE_ENCRYPTED_MEDIA_V2 to ENABLE_LEGACY_ENCRYPTED_MEDIA
     4        https://bugs.webkit.org/show_bug.cgi?id=162903
     5
     6        Reviewed by Alex Christensen.
     7
     8        Rename build guards for the remaining implementation of the legacy EME API
     9        to ENABLE_LEGACY_ENCRYPTED_MEDIA. This will allow for the future implementation
     10        of the near-finished API to be guarded with the simple ENABLE_ENCRYPTED_MEDIA guards.
     11
     12        * Configurations/FeatureDefines.xcconfig:
     13
    1142016-10-05  Csaba Osztrogonác  <ossy@webkit.org>
    215
  • trunk/Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig

    r206440 r206811  
    7676ENABLE_DEVICE_ORIENTATION[sdk=iphone*] = ENABLE_DEVICE_ORIENTATION;
    7777ENABLE_DOM4_EVENTS_CONSTRUCTOR = ENABLE_DOM4_EVENTS_CONSTRUCTOR;
    78 ENABLE_ENCRYPTED_MEDIA_V2[sdk=macosx*] = ENABLE_ENCRYPTED_MEDIA_V2;
    7978ENABLE_FETCH_API = ENABLE_FETCH_API;
    8079ENABLE_FILTERS_LEVEL_2 = ENABLE_FILTERS_LEVEL_2;
     
    125124
    126125ENABLE_LEGACY_CSS_VENDOR_PREFIXES = ENABLE_LEGACY_CSS_VENDOR_PREFIXES;
     126ENABLE_LEGACY_ENCRYPTED_MEDIA[sdk=macosx*] = ENABLE_LEGACY_ENCRYPTED_MEDIA;
    127127ENABLE_LEGACY_NOTIFICATIONS[sdk=macosx*] = ENABLE_LEGACY_NOTIFICATIONS;
    128128ENABLE_LEGACY_VENDOR_PREFIXES = ENABLE_LEGACY_VENDOR_PREFIXES;
     
    201201ENABLE_CUSTOM_ELEMENTS = ENABLE_CUSTOM_ELEMENTS;
    202202
    203 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_ANIMATIONS_LEVEL_2) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS3_TEXT) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_ELEMENTS) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ENCRYPTED_MEDIA_V2) $(ENABLE_ES6_MODULES) $(ENABLE_ES2017_ASYNCFUNCTION_SYNTAX) $(ENABLE_FETCH_API) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_READABLE_STREAM_API) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEB_ANIMATIONS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_WRITABLE_STREAM_API) $(ENABLE_XSLT);
     203FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_ANIMATIONS_LEVEL_2) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS3_TEXT) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_ELEMENTS) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ES6_MODULES) $(ENABLE_ES2017_ASYNCFUNCTION_SYNTAX) $(ENABLE_FETCH_API) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_READABLE_STREAM_API) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEB_ANIMATIONS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_WRITABLE_STREAM_API) $(ENABLE_XSLT);
  • trunk/Source/WTF/ChangeLog

    r206804 r206811  
     12016-10-05  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        Rename ENABLE_ENCRYPTED_MEDIA_V2 to ENABLE_LEGACY_ENCRYPTED_MEDIA
     4        https://bugs.webkit.org/show_bug.cgi?id=162903
     5
     6        Reviewed by Alex Christensen.
     7
     8        Rename build guards for the remaining implementation of the legacy EME API
     9        to ENABLE_LEGACY_ENCRYPTED_MEDIA. This will allow for the future implementation
     10        of the near-finished API to be guarded with the simple ENABLE_ENCRYPTED_MEDIA guards.
     11
     12        * wtf/FeatureDefines.h:
     13
    1142016-10-04  Saam Barati  <sbarati@apple.com>
    215
  • trunk/Source/WTF/wtf/FeatureDefines.h

    r206803 r206811  
    178178#endif
    179179
    180 #if !defined(ENABLE_ENCRYPTED_MEDIA_V2)
    181 #define ENABLE_ENCRYPTED_MEDIA_V2 1
     180#if !defined(ENABLE_LEGACY_ENCRYPTED_MEDIA)
     181#define ENABLE_LEGACY_ENCRYPTED_MEDIA 1
    182182#endif
    183183
     
    442442#endif
    443443
    444 #if !defined(ENABLE_ENCRYPTED_MEDIA_V2)
    445 #define ENABLE_ENCRYPTED_MEDIA_V2 0
     444#if !defined(ENABLE_LEGACY_ENCRYPTED_MEDIA)
     445#define ENABLE_LEGACY_ENCRYPTED_MEDIA 0
    446446#endif
    447447
  • trunk/Source/WebCore/CMakeLists.txt

    r206795 r206811  
    29872987)
    29882988
    2989 if (ENABLE_ENCRYPTED_MEDIA_V2)
     2989if (ENABLE_LEGACY_ENCRYPTED_MEDIA)
    29902990    list(APPEND WebCore_SOURCES
    29912991        Modules/encryptedmedia/CDM.cpp
  • trunk/Source/WebCore/ChangeLog

    r206809 r206811  
     12016-10-05  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        Rename ENABLE_ENCRYPTED_MEDIA_V2 to ENABLE_LEGACY_ENCRYPTED_MEDIA
     4        https://bugs.webkit.org/show_bug.cgi?id=162903
     5
     6        Reviewed by Alex Christensen.
     7
     8        Rename build guards for the remaining implementation of the legacy EME API
     9        to ENABLE_LEGACY_ENCRYPTED_MEDIA. This will allow for the future implementation
     10        of the near-finished API to be guarded with the simple ENABLE_ENCRYPTED_MEDIA guards.
     11
     12        No new tests -- no change in behavior.
     13
     14        * CMakeLists.txt:
     15        * Configurations/FeatureDefines.xcconfig:
     16        * DerivedSources.cpp:
     17        * DerivedSources.make:
     18        * Modules/encryptedmedia/CDM.cpp:
     19        * Modules/encryptedmedia/CDM.h:
     20        * Modules/encryptedmedia/CDMPrivate.h:
     21        * Modules/encryptedmedia/CDMPrivateClearKey.cpp:
     22        * Modules/encryptedmedia/CDMPrivateClearKey.h:
     23        * Modules/encryptedmedia/CDMPrivateMediaPlayer.cpp:
     24        * Modules/encryptedmedia/CDMPrivateMediaPlayer.h:
     25        * Modules/encryptedmedia/CDMSessionClearKey.cpp:
     26        * Modules/encryptedmedia/CDMSessionClearKey.h:
     27        * Modules/encryptedmedia/MediaKeyMessageEvent.cpp:
     28        * Modules/encryptedmedia/MediaKeyMessageEvent.h:
     29        * Modules/encryptedmedia/MediaKeyMessageEvent.idl:
     30        * Modules/encryptedmedia/MediaKeyNeededEvent.cpp:
     31        * Modules/encryptedmedia/MediaKeyNeededEvent.h:
     32        * Modules/encryptedmedia/MediaKeyNeededEvent.idl:
     33        * Modules/encryptedmedia/MediaKeySession.cpp:
     34        * Modules/encryptedmedia/MediaKeySession.h:
     35        * Modules/encryptedmedia/MediaKeySession.idl:
     36        * Modules/encryptedmedia/MediaKeys.cpp:
     37        * Modules/encryptedmedia/MediaKeys.h:
     38        * Modules/encryptedmedia/MediaKeys.idl:
     39        * bindings/js/JSDictionary.cpp:
     40        * bindings/js/JSDictionary.h:
     41        * dom/Element.idl:
     42        * dom/EventNames.in:
     43        * dom/EventTargetFactory.in:
     44        * html/HTMLMediaElement.cpp:
     45        (WebCore::HTMLMediaElement::~HTMLMediaElement):
     46        (WebCore::HTMLMediaElement::webkitGenerateKeyRequest):
     47        (WebCore::HTMLMediaElement::webkitAddKey):
     48        * html/HTMLMediaElement.h:
     49        * html/HTMLMediaElement.idl:
     50        * html/MediaError.h:
     51        * html/MediaError.idl:
     52        * html/MediaKeyError.h:
     53        * html/MediaKeyError.idl:
     54        * page/Settings.h:
     55        * platform/graphics/CDMSession.h:
     56        * platform/graphics/MediaPlayer.cpp:
     57        * platform/graphics/MediaPlayer.h:
     58        * platform/graphics/MediaPlayerPrivate.h:
     59        * platform/graphics/avfoundation/CDMPrivateMediaSourceAVFObjC.h:
     60        * platform/graphics/avfoundation/CDMPrivateMediaSourceAVFObjC.mm:
     61        * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
     62        * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
     63        * platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.cpp:
     64        * platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.h:
     65        * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:
     66        (WebCore::MediaPlayerPrivateAVFoundationCF::supportsKeySystem):
     67        (WebCore::AVFWrapper::shouldWaitForLoadingOfResource):
     68        * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.h:
     69        * platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.h:
     70        * platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.mm:
     71        * platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.h:
     72        * platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm:
     73        * platform/graphics/avfoundation/objc/CDMSessionAVStreamSession.h:
     74        * platform/graphics/avfoundation/objc/CDMSessionAVStreamSession.mm:
     75        * platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.h:
     76        * platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm:
     77        * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
     78        * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
     79        (WebCore::MediaPlayerPrivateAVFoundationObjC::supportsKeySystem):
     80        (WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForLoadingOfResource):
     81        (WebCore::playerKVOProperties):
     82        (-[WebCoreAVFMovieObserver observeValueForKeyPath:ofObject:change:context:]):
     83        * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.h:
     84        * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
     85        * platform/graphics/avfoundation/objc/MediaSourcePrivateAVFObjC.h:
     86        * platform/graphics/avfoundation/objc/MediaSourcePrivateAVFObjC.mm:
     87        * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
     88        (WebCore::SourceBufferPrivateAVFObjC::willProvideContentKeyRequestInitializationDataForTrackID):
     89        (WebCore::SourceBufferPrivateAVFObjC::didProvideContentKeyRequestInitializationDataForTrackID):
     90        * testing/Internals.cpp:
     91        * testing/Internals.h:
     92        * testing/Internals.idl:
     93        * testing/MockCDM.cpp:
     94        * testing/MockCDM.h:
     95
    1962016-10-05  Daniel Bates  <dabates@apple.com>
    297
  • trunk/Source/WebCore/Configurations/FeatureDefines.xcconfig

    r206440 r206811  
    7676ENABLE_DEVICE_ORIENTATION[sdk=iphone*] = ENABLE_DEVICE_ORIENTATION;
    7777ENABLE_DOM4_EVENTS_CONSTRUCTOR = ENABLE_DOM4_EVENTS_CONSTRUCTOR;
    78 ENABLE_ENCRYPTED_MEDIA_V2[sdk=macosx*] = ENABLE_ENCRYPTED_MEDIA_V2;
    7978ENABLE_FETCH_API = ENABLE_FETCH_API;
    8079ENABLE_FILTERS_LEVEL_2 = ENABLE_FILTERS_LEVEL_2;
     
    125124
    126125ENABLE_LEGACY_CSS_VENDOR_PREFIXES = ENABLE_LEGACY_CSS_VENDOR_PREFIXES;
     126ENABLE_LEGACY_ENCRYPTED_MEDIA[sdk=macosx*] = ENABLE_LEGACY_ENCRYPTED_MEDIA;
    127127ENABLE_LEGACY_NOTIFICATIONS[sdk=macosx*] = ENABLE_LEGACY_NOTIFICATIONS;
    128128ENABLE_LEGACY_VENDOR_PREFIXES = ENABLE_LEGACY_VENDOR_PREFIXES;
     
    201201ENABLE_CUSTOM_ELEMENTS = ENABLE_CUSTOM_ELEMENTS;
    202202
    203 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_ANIMATIONS_LEVEL_2) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS3_TEXT) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_ELEMENTS) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ENCRYPTED_MEDIA_V2) $(ENABLE_ES6_MODULES) $(ENABLE_ES2017_ASYNCFUNCTION_SYNTAX) $(ENABLE_FETCH_API) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_READABLE_STREAM_API) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEB_ANIMATIONS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_WRITABLE_STREAM_API) $(ENABLE_XSLT);
     203FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_ANIMATIONS_LEVEL_2) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS3_TEXT) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_ELEMENTS) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ES6_MODULES) $(ENABLE_ES2017_ASYNCFUNCTION_SYNTAX) $(ENABLE_FETCH_API) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_READABLE_STREAM_API) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEB_ANIMATIONS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_WRITABLE_STREAM_API) $(ENABLE_XSLT);
  • trunk/Source/WebCore/DerivedSources.cpp

    r206034 r206811  
    326326#include "JSMediaError.cpp"
    327327#include "JSMediaList.cpp"
    328 #if ENABLE(ENCRYPTED_MEDIA_V2)
     328#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    329329#include "JSMediaKeyError.cpp"
    330330#include "JSMediaKeyMessageEvent.cpp"
  • trunk/Source/WebCore/DerivedSources.make

    r206795 r206811  
    10571057endif
    10581058
    1059 ifeq ($(findstring ENABLE_ENCRYPTED_MEDIA_V2,$(FEATURE_DEFINES)), ENABLE_ENCRYPTED_MEDIA_V2)
    1060     HTML_FLAGS := $(HTML_FLAGS) ENABLE_ENCRYPTED_MEDIA_V2=1
     1059ifeq ($(findstring ENABLE_LEGACY_ENCRYPTED_MEDIA,$(FEATURE_DEFINES)), ENABLE_LEGACY_ENCRYPTED_MEDIA)
     1060    HTML_FLAGS := $(HTML_FLAGS) ENABLE_LEGACY_ENCRYPTED_MEDIA=1
    10611061endif
    10621062
  • trunk/Source/WebCore/Modules/encryptedmedia/CDM.cpp

    r193479 r206811  
    2626#include "config.h"
    2727
    28 #if ENABLE(ENCRYPTED_MEDIA_V2)
     28#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    2929
    3030#include "CDM.h"
     
    150150}
    151151
    152 #endif // ENABLE(ENCRYPTED_MEDIA_V2)
     152#endif // ENABLE(LEGACY_ENCRYPTED_MEDIA)
  • trunk/Source/WebCore/Modules/encryptedmedia/CDM.h

    r203340 r206811  
    2727#define CDM_h
    2828
    29 #if ENABLE(ENCRYPTED_MEDIA_V2)
     29#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    3030
    3131#include "CDMSession.h"
     
    8080}
    8181
    82 #endif // ENABLE(ENCRYPTED_MEDIA_V2)
     82#endif // ENABLE(LEGACY_ENCRYPTED_MEDIA)
    8383
    8484#endif // CDM_h
  • trunk/Source/WebCore/Modules/encryptedmedia/CDMPrivate.h

    r193479 r206811  
    2727#define CDMPrivate_h
    2828
    29 #if ENABLE(ENCRYPTED_MEDIA_V2)
     29#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    3030
    3131#include <wtf/text/WTFString.h>
     
    4848}
    4949
    50 #endif // ENABLE(ENCRYPTED_MEDIA_V2)
     50#endif // ENABLE(LEGACY_ENCRYPTED_MEDIA)
    5151
    5252#endif // CDMPrivate_h
  • trunk/Source/WebCore/Modules/encryptedmedia/CDMPrivateClearKey.cpp

    r195452 r206811  
    2727#include "CDMPrivateClearKey.h"
    2828
    29 #if ENABLE(ENCRYPTED_MEDIA_V2)
     29#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    3030
    3131#include "CDM.h"
  • trunk/Source/WebCore/Modules/encryptedmedia/CDMPrivateClearKey.h

    r197563 r206811  
    2727#define CDMPrivateClearKey_h
    2828
    29 #if ENABLE(ENCRYPTED_MEDIA_V2)
     29#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    3030
    3131#include "CDMPrivate.h"
     
    5656}
    5757
    58 #endif // ENABLE(ENCRYPTED_MEDIA_V2)
     58#endif // ENABLE(LEGACY_ENCRYPTED_MEDIA)
    5959
    6060#endif // CDMPrivateClearKey_h
  • trunk/Source/WebCore/Modules/encryptedmedia/CDMPrivateMediaPlayer.cpp

    r193479 r206811  
    2727#include "CDMPrivateMediaPlayer.h"
    2828
    29 #if ENABLE(ENCRYPTED_MEDIA_V2)
     29#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    3030
    3131#include "CDM.h"
  • trunk/Source/WebCore/Modules/encryptedmedia/CDMPrivateMediaPlayer.h

    r204466 r206811  
    2929#include "CDMPrivate.h"
    3030
    31 #if ENABLE(ENCRYPTED_MEDIA_V2)
     31#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    3232
    3333namespace WebCore {
  • trunk/Source/WebCore/Modules/encryptedmedia/CDMSessionClearKey.cpp

    r205569 r206811  
    4545#include <wtf/text/Base64.h>
    4646
    47 #if ENABLE(ENCRYPTED_MEDIA_V2)
     47#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    4848
    4949using namespace JSC;
  • trunk/Source/WebCore/Modules/encryptedmedia/CDMSessionClearKey.h

    r197563 r206811  
    3030#include <wtf/HashMap.h>
    3131
    32 #if ENABLE(ENCRYPTED_MEDIA_V2)
     32#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    3333
    3434namespace WebCore {
     
    5757}
    5858
    59 #endif // ENABLE(ENCRYPTED_MEDIA_V2)
     59#endif // ENABLE(LEGACY_ENCRYPTED_MEDIA)
    6060
    6161#endif // CDMSessionClearKey_h
  • trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.cpp

    r196400 r206811  
    2626#include "config.h"
    2727
    28 #if ENABLE(ENCRYPTED_MEDIA_V2)
     28#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    2929
    3030#include "MediaKeyMessageEvent.h"
  • trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.h

    r197563 r206811  
    2828#define MediaKeyMessageEvent_h
    2929
    30 #if ENABLE(ENCRYPTED_MEDIA_V2)
     30#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    3131
    3232#include "Event.h"
  • trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.idl

    r165676 r206811  
    2525
    2626[
    27     Conditional=ENCRYPTED_MEDIA_V2,
     27    Conditional=LEGACY_ENCRYPTED_MEDIA,
    2828    ConstructorTemplate=Event,
    2929    InterfaceName=WebKitMediaKeyMessageEvent
  • trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyNeededEvent.cpp

    r196400 r206811  
    2626#include "config.h"
    2727
    28 #if ENABLE(ENCRYPTED_MEDIA_V2)
     28#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    2929
    3030#include "MediaKeyNeededEvent.h"
  • trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyNeededEvent.h

    r197563 r206811  
    2727#define MediaKeyNeededEvent_h
    2828
    29 #if ENABLE(ENCRYPTED_MEDIA_V2)
     29#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    3030
    3131#include "Event.h"
  • trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyNeededEvent.idl

    r165676 r206811  
    2525
    2626[
    27     Conditional=ENCRYPTED_MEDIA_V2,
     27    Conditional=LEGACY_ENCRYPTED_MEDIA,
    2828    ConstructorTemplate=Event
    2929] interface MediaKeyNeededEvent : Event {
  • trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.cpp

    r202105 r206811  
    2727#include "MediaKeySession.h"
    2828
    29 #if ENABLE(ENCRYPTED_MEDIA_V2)
     29#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    3030
    3131#include "CDM.h"
  • trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.h

    r203340 r206811  
    2727#define MediaKeySession_h
    2828
    29 #if ENABLE(ENCRYPTED_MEDIA_V2)
     29#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    3030
    3131#include "ActiveDOMObject.h"
     
    118118}
    119119
    120 #endif // ENABLE(ENCRYPTED_MEDIA_V2)
     120#endif // ENABLE(LEGACY_ENCRYPTED_MEDIA)
    121121
    122122#endif // MediaKeySession_h
  • trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.idl

    r206723 r206811  
    2525
    2626[
    27     Conditional=ENCRYPTED_MEDIA_V2,
     27    Conditional=LEGACY_ENCRYPTED_MEDIA,
    2828    InterfaceName=WebKitMediaKeySession,
    2929    ActiveDOMObject,
  • trunk/Source/WebCore/Modules/encryptedmedia/MediaKeys.cpp

    r204466 r206811  
    2727#include "MediaKeys.h"
    2828
    29 #if ENABLE(ENCRYPTED_MEDIA_V2)
     29#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    3030
    3131#include "CDM.h"
  • trunk/Source/WebCore/Modules/encryptedmedia/MediaKeys.h

    r203340 r206811  
    2727#define MediaKeys_h
    2828
    29 #if ENABLE(ENCRYPTED_MEDIA_V2)
     29#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    3030
    3131#include "CDM.h"
     
    7575}
    7676
    77 #endif // ENABLE(ENCRYPTED_MEDIA_V2)
     77#endif // ENABLE(LEGACY_ENCRYPTED_MEDIA)
    7878
    7979#endif // MediaKeys_h
  • trunk/Source/WebCore/Modules/encryptedmedia/MediaKeys.idl

    r206723 r206811  
    2525 
    2626[
    27     Conditional=ENCRYPTED_MEDIA_V2,
     27    Conditional=LEGACY_ENCRYPTED_MEDIA,
    2828    Constructor(DOMString keySystem),
    2929    ConstructorMayThrowLegacyException,
  • trunk/Source/WebCore/bindings/js/JSDictionary.cpp

    r206681 r206811  
    4545#include <wtf/text/AtomicString.h>
    4646
    47 #if ENABLE(ENCRYPTED_MEDIA_V2)
     47#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    4848#include "JSMediaKeyError.h"
    4949#endif
     
    257257}
    258258
    259 #if ENABLE(ENCRYPTED_MEDIA_V2)
     259#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    260260void JSDictionary::convertValue(JSC::ExecState*, JSC::JSValue value, RefPtr<MediaKeyError>& result)
    261261{
  • trunk/Source/WebCore/bindings/js/JSDictionary.h

    r206440 r206811  
    144144    static void convertValue(JSC::ExecState*, JSC::JSValue, ArrayValue& result);
    145145    static void convertValue(JSC::ExecState*, JSC::JSValue, RefPtr<JSC::Uint8Array>& result);
    146 #if ENABLE(ENCRYPTED_MEDIA_V2)
     146#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    147147    static void convertValue(JSC::ExecState*, JSC::JSValue, RefPtr<MediaKeyError>& result);
    148148#endif
  • trunk/Source/WebCore/dom/Element.idl

    r206723 r206811  
    174174    // Unique to Element
    175175    [NotEnumerable] attribute EventHandler onbeforeload;
    176     [NotEnumerable, Conditional=ENCRYPTED_MEDIA_V2] attribute EventHandler onwebkitneedkey;
     176    [NotEnumerable, Conditional=LEGACY_ENCRYPTED_MEDIA] attribute EventHandler onwebkitneedkey;
    177177    [NotEnumerable, Conditional=VIDEO_PRESENTATION_MODE] attribute EventHandler onwebkitpresentationmodechanged;
    178178    [NotEnumerable, Conditional=WIRELESS_PLAYBACK_TARGET] attribute EventHandler onwebkitcurrentplaybacktargetiswirelesschanged;
  • trunk/Source/WebCore/dom/EventNames.in

    r206440 r206811  
    5757DeviceProximityEvent conditional=PROXIMITY_EVENTS
    5858OrientationEvent interfaceName=Event, conditional=ORIENTATION_EVENTS
    59 MediaKeyMessageEvent conditional=ENCRYPTED_MEDIA_V2
    60 MediaKeyNeededEvent conditional=ENCRYPTED_MEDIA_V2
     59MediaKeyMessageEvent conditional=LEGACY_ENCRYPTED_MEDIA
     60MediaKeyNeededEvent conditional=LEGACY_ENCRYPTED_MEDIA
    6161TrackEvent conditional=VIDEO_TRACK
    6262AutocompleteErrorEvent conditional=REQUEST_AUTOCOMPLETE
  • trunk/Source/WebCore/dom/EventTargetFactory.in

    r202309 r206811  
    1616IDBRequest conditional=INDEXED_DATABASE
    1717IDBTransaction conditional=INDEXED_DATABASE
    18 MediaKeySession conditional=ENCRYPTED_MEDIA_V2
     18MediaKeySession conditional=LEGACY_ENCRYPTED_MEDIA
    1919MediaController conditional=VIDEO
    2020MediaRemoteControls conditional=MEDIA_SESSION
  • trunk/Source/WebCore/html/HTMLMediaElement.cpp

    r206454 r206811  
    145145#endif
    146146
    147 #if ENABLE(ENCRYPTED_MEDIA_V2)
     147#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    148148#include "MediaKeyNeededEvent.h"
    149149#include "MediaKeys.h"
     
    583583#endif
    584584
    585 #if ENABLE(ENCRYPTED_MEDIA_V2)
     585#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    586586    setMediaKeys(0);
    587587#endif
     
    24332433}
    24342434
    2435 #if ENABLE(ENCRYPTED_MEDIA_V2)
     2435#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    24362436RefPtr<ArrayBuffer> HTMLMediaElement::mediaPlayerCachedKeyForKeyId(const String& keyId) const
    24372437{
     
    32443244void HTMLMediaElement::webkitGenerateKeyRequest(const String& keySystem, const RefPtr<Uint8Array>& initData, ExceptionCode& ec)
    32453245{
    3246 #if ENABLE(ENCRYPTED_MEDIA_V2)
     3246#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    32473247    static bool firstTime = true;
    32483248    if (firstTime && scriptExecutionContext()) {
     
    32753275void HTMLMediaElement::webkitAddKey(const String& keySystem, Uint8Array& key, const RefPtr<Uint8Array>& initData, const String& sessionId, ExceptionCode& ec)
    32763276{
    3277 #if ENABLE(ENCRYPTED_MEDIA_V2)
     3277#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    32783278    static bool firstTime = true;
    32793279    if (firstTime && scriptExecutionContext()) {
  • trunk/Source/WebCore/html/HTMLMediaElement.h

    r206440 r206811  
    249249#endif
    250250
    251 #if ENABLE(ENCRYPTED_MEDIA_V2)
     251#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    252252    MediaKeys* keys() const { return m_mediaKeys.get(); }
    253253    void setMediaKeys(MediaKeys*);
     
    569569    void mediaPlayerCharacteristicChanged(MediaPlayer*) override;
    570570
    571 #if ENABLE(ENCRYPTED_MEDIA_V2)
     571#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    572572    RefPtr<ArrayBuffer> mediaPlayerCachedKeyForKeyId(const String& keyId) const override;
    573573    bool mediaPlayerKeyNeeded(MediaPlayer*, Uint8Array*) override;
     
    999999    friend class TrackDisplayUpdateScope;
    10001000
    1001 #if ENABLE(ENCRYPTED_MEDIA_V2)
     1001#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    10021002    RefPtr<MediaKeys> m_mediaKeys;
    10031003#endif
  • trunk/Source/WebCore/html/HTMLMediaElement.idl

    r206723 r206811  
    9292    [Conditional=MEDIA_STATISTICS] readonly attribute unsigned long webkitVideoDecodedByteCount;
    9393
    94     [Conditional=ENCRYPTED_MEDIA_V2, ImplementedAs=keys] readonly attribute MediaKeys webkitKeys;
    95     [Conditional=ENCRYPTED_MEDIA_V2, ImplementedAs=setMediaKeys] void webkitSetMediaKeys(MediaKeys? mediaKeys);
     94    [Conditional=LEGACY_ENCRYPTED_MEDIA, ImplementedAs=keys] readonly attribute MediaKeys webkitKeys;
     95    [Conditional=LEGACY_ENCRYPTED_MEDIA, ImplementedAs=setMediaKeys] void webkitSetMediaKeys(MediaKeys? mediaKeys);
    9696
    9797    [Conditional=VIDEO_TRACK, MayThrowLegacyException] TextTrack addTextTrack(DOMString kind, optional DOMString label = "", optional DOMString language = "");
  • trunk/Source/WebCore/html/MediaError.h

    r206440 r206811  
    4040        MEDIA_ERR_DECODE,
    4141        MEDIA_ERR_SRC_NOT_SUPPORTED
    42 #if ENABLE(ENCRYPTED_MEDIA_V2)
     42#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    4343        , MEDIA_ERR_ENCRYPTED
    4444#endif
  • trunk/Source/WebCore/html/MediaError.idl

    r206440 r206811  
    3232      const unsigned short MEDIA_ERR_DECODE = 3;
    3333      const unsigned short MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
    34 #if (defined(ENABLE_ENCRYPTED_MEDIA_V2) && ENABLE_ENCRYPTED_MEDIA_V2)
     34#if (defined(ENABLE_LEGACY_ENCRYPTED_MEDIA) && ENABLE_LEGACY_ENCRYPTED_MEDIA)
    3535      const unsigned short MEDIA_ERR_ENCRYPTED = 5;
    3636#endif
  • trunk/Source/WebCore/html/MediaKeyError.h

    r206440 r206811  
    2727#define MediaKeyError_h
    2828
    29 #if ENABLE(ENCRYPTED_MEDIA_V2)
     29#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    3030
    3131#include <runtime/Uint8Array.h>
  • trunk/Source/WebCore/html/MediaKeyError.idl

    r206440 r206811  
    2525
    2626[
    27     Conditional=ENCRYPTED_MEDIA_V2,
     27    Conditional=LEGACY_ENCRYPTED_MEDIA,
    2828    ImplementationLacksVTable,
    2929    InterfaceName=WebKitMediaKeyError
     
    3636    const unsigned short MEDIA_KEYERR_DOMAIN = 6;
    3737    readonly attribute unsigned short code;
    38     [Conditional=ENCRYPTED_MEDIA_V2] readonly attribute unsigned long systemCode;
     38    [Conditional=LEGACY_ENCRYPTED_MEDIA] readonly attribute unsigned long systemCode;
    3939};
  • trunk/Source/WebCore/page/Settings.h

    r206119 r206811  
    280280#endif
    281281
    282 #if ENABLE(ENCRYPTED_MEDIA_V2)
     282#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    283283    void setMediaKeysStorageDirectory(const String& directory) { m_mediaKeysStorageDirectory = directory; }
    284284    const String& mediaKeysStorageDirectory() const { return m_mediaKeysStorageDirectory; }
     
    384384#endif
    385385
    386 #if ENABLE(ENCRYPTED_MEDIA_V2)
     386#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    387387    String m_mediaKeysStorageDirectory;
    388388#endif
  • trunk/Source/WebCore/platform/graphics/CDMSession.h

    r195410 r206811  
    2727#define CDMSession_h
    2828
    29 #if ENABLE(ENCRYPTED_MEDIA_V2)
     29#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    3030
    3131#include <runtime/Uint8Array.h>
     
    7979}
    8080
    81 #endif // ENABLE(ENCRYPTED_MEDIA_V2)
     81#endif // ENABLE(LEGACY_ENCRYPTED_MEDIA)
    8282
    8383#endif // CDMSession_h
  • trunk/Source/WebCore/platform/graphics/MediaPlayer.cpp

    r206440 r206811  
    538538}
    539539
    540 #if ENABLE(ENCRYPTED_MEDIA_V2)
     540#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    541541std::unique_ptr<CDMSession> MediaPlayer::createSession(const String& keySystem, CDMSessionClient* client)
    542542{
     
    11681168#endif // WEB_AUDIO
    11691169
    1170 #if ENABLE(ENCRYPTED_MEDIA_V2)
     1170#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    11711171RefPtr<ArrayBuffer> MediaPlayer::cachedKeyForKeyId(const String& keyId) const
    11721172{
  • trunk/Source/WebCore/platform/graphics/MediaPlayer.h

    r206440 r206811  
    202202#endif
    203203
    204 #if ENABLE(ENCRYPTED_MEDIA_V2)
     204#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    205205    virtual RefPtr<ArrayBuffer> mediaPlayerCachedKeyForKeyId(const String&) const { return nullptr; }
    206206    virtual bool mediaPlayerKeyNeeded(MediaPlayer*, Uint8Array*) { return false; }
     
    342342    void setShouldBufferData(bool);
    343343
    344 #if ENABLE(ENCRYPTED_MEDIA_V2)
     344#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    345345    // Represents synchronous exceptions that can be thrown from the Encrypted Media methods.
    346346    // This is different from the asynchronous MediaKeyError.
     
    510510#endif
    511511
    512 #if ENABLE(ENCRYPTED_MEDIA_V2)
     512#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    513513    RefPtr<ArrayBuffer> cachedKeyForKeyId(const String& keyId) const;
    514514    bool keyNeeded(Uint8Array* initData);
  • trunk/Source/WebCore/platform/graphics/MediaPlayerPrivate.h

    r206440 r206811  
    227227#endif
    228228
    229 #if ENABLE(ENCRYPTED_MEDIA_V2)
     229#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    230230    virtual std::unique_ptr<CDMSession> createSession(const String&, CDMSessionClient*) { return nullptr; }
    231231    virtual void setCDMSession(CDMSession*) { }
  • trunk/Source/WebCore/platform/graphics/avfoundation/CDMPrivateMediaSourceAVFObjC.h

    r197563 r206811  
    2727#define CDMPrivateMediaSourceAVFObjC_h
    2828
    29 #if ENABLE(ENCRYPTED_MEDIA_V2) && ENABLE(MEDIA_SOURCE)
     29#if ENABLE(LEGACY_ENCRYPTED_MEDIA) && ENABLE(MEDIA_SOURCE)
    3030
    3131#include "CDMPrivate.h"
     
    6161}
    6262
    63 #endif // ENABLE(ENCRYPTED_MEDIA_V2) && ENABLE(MEDIA_SOURCE)
     63#endif // ENABLE(LEGACY_ENCRYPTED_MEDIA) && ENABLE(MEDIA_SOURCE)
    6464
    6565#endif // CDMPrivateMediaSourceAVFObjC_h
  • trunk/Source/WebCore/platform/graphics/avfoundation/CDMPrivateMediaSourceAVFObjC.mm

    r195452 r206811  
    2727#import "CDMPrivateMediaSourceAVFObjC.h"
    2828
    29 #if ENABLE(ENCRYPTED_MEDIA_V2) && ENABLE(MEDIA_SOURCE)
     29#if ENABLE(LEGACY_ENCRYPTED_MEDIA) && ENABLE(MEDIA_SOURCE)
    3030
    3131#import "CDM.h"
     
    131131}
    132132
    133 #endif // ENABLE(ENCRYPTED_MEDIA_V2) && ENABLE(MEDIA_SOURCE)
     133#endif // ENABLE(LEGACY_ENCRYPTED_MEDIA) && ENABLE(MEDIA_SOURCE)
  • trunk/Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp

    r206440 r206811  
    10151015#endif
    10161016
    1017 #if ENABLE(ENCRYPTED_MEDIA_V2)
     1017#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    10181018bool MediaPlayerPrivateAVFoundation::extractKeyURIKeyIDAndCertificateFromInitData(Uint8Array* initData, String& keyURI, String& keyID, RefPtr<Uint8Array>& certificate)
    10191019{
  • trunk/Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h

    r206440 r206811  
    140140    void clearMainThreadPendingFlag();
    141141
    142 #if ENABLE(ENCRYPTED_MEDIA_V2)
     142#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    143143    static bool extractKeyURIKeyIDAndCertificateFromInitData(Uint8Array* initData, String& keyURI, String& keyID, RefPtr<Uint8Array>& certificate);
    144144#endif
  • trunk/Source/WebCore/platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.cpp

    r195410 r206811  
    2727#include "CDMSessionAVFoundationCF.h"
    2828
    29 #if HAVE(AVFOUNDATION_LOADER_DELEGATE) && ENABLE(ENCRYPTED_MEDIA_V2)
     29#if HAVE(AVFOUNDATION_LOADER_DELEGATE) && ENABLE(LEGACY_ENCRYPTED_MEDIA)
    3030
    3131#include "CDM.h"
  • trunk/Source/WebCore/platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.h

    r197563 r206811  
    3030#include <wtf/RetainPtr.h>
    3131
    32 #if HAVE(AVFOUNDATION_LOADER_DELEGATE) && ENABLE(ENCRYPTED_MEDIA_V2)
     32#if HAVE(AVFOUNDATION_LOADER_DELEGATE) && ENABLE(LEGACY_ENCRYPTED_MEDIA)
    3333
    3434typedef struct OpaqueAVCFAssetResourceLoadingRequest* AVCFAssetResourceLoadingRequestRef;
  • trunk/Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp

    r195951 r206811  
    6262#include <delayimp.h>
    6363#include <dispatch/dispatch.h>
    64 #if HAVE(AVFOUNDATION_LOADER_DELEGATE) && ENABLE(ENCRYPTED_MEDIA_V2)
     64#if HAVE(AVFOUNDATION_LOADER_DELEGATE) && ENABLE(LEGACY_ENCRYPTED_MEDIA)
    6565#include <runtime/DataView.h>
    6666#include <runtime/Uint16Array.h>
     
    151151    inline dispatch_queue_t dispatchQueue() const { return m_notificationQueue; }
    152152
    153 #if HAVE(AVFOUNDATION_LOADER_DELEGATE) && ENABLE(ENCRYPTED_MEDIA_V2)
     153#if HAVE(AVFOUNDATION_LOADER_DELEGATE) && ENABLE(LEGACY_ENCRYPTED_MEDIA)
    154154    RetainPtr<AVCFAssetResourceLoadingRequestRef> takeRequestForKeyURI(const String&);
    155155    void setRequestForKey(const String& keyURI, AVCFAssetResourceLoadingRequestRef avRequest);
     
    873873}
    874874
    875 #if HAVE(AVFOUNDATION_LOADER_DELEGATE) && ENABLE(ENCRYPTED_MEDIA_V2)
     875#if HAVE(AVFOUNDATION_LOADER_DELEGATE) && ENABLE(LEGACY_ENCRYPTED_MEDIA)
    876876
    877877static bool keySystemIsSupported(const String& keySystem)
     
    927927bool MediaPlayerPrivateAVFoundationCF::supportsKeySystem(const String& keySystem, const String& mimeType)
    928928{
    929 #if HAVE(AVFOUNDATION_LOADER_DELEGATE) && ENABLE(ENCRYPTED_MEDIA_V2)
     929#if HAVE(AVFOUNDATION_LOADER_DELEGATE) && ENABLE(LEGACY_ENCRYPTED_MEDIA)
    930930    if (keySystem.isEmpty())
    931931        return false;
     
    11131113}
    11141114
    1115 #if HAVE(AVFOUNDATION_LOADER_DELEGATE) && ENABLE(ENCRYPTED_MEDIA_V2)
     1115#if HAVE(AVFOUNDATION_LOADER_DELEGATE) && ENABLE(LEGACY_ENCRYPTED_MEDIA)
    11161116RetainPtr<AVCFAssetResourceLoadingRequestRef> MediaPlayerPrivateAVFoundationCF::takeRequestForKeyURI(const String& keyURI)
    11171117{
     
    11291129    return std::make_unique<CDMSessionAVFoundationCF>(this, client);
    11301130}
    1131 #elif ENABLE(ENCRYPTED_MEDIA_V2)
     1131#elif ENABLE(LEGACY_ENCRYPTED_MEDIA)
    11321132std::unique_ptr<CDMSession> MediaPlayerPrivateAVFoundationCF::createSession(const String& keySystem, , CDMSessionClient*)
    11331133{
     
    18591859bool AVFWrapper::shouldWaitForLoadingOfResource(AVCFAssetResourceLoadingRequestRef avRequest)
    18601860{
    1861 #if HAVE(AVFOUNDATION_LOADER_DELEGATE) && ENABLE(ENCRYPTED_MEDIA_V2)
     1861#if HAVE(AVFOUNDATION_LOADER_DELEGATE) && ENABLE(LEGACY_ENCRYPTED_MEDIA)
    18621862    RetainPtr<CFURLRequestRef> urlRequest = AVCFAssetResourceLoadingRequestGetURLRequest(avRequest);
    18631863    RetainPtr<CFURLRef> requestURL = CFURLRequestGetURL(urlRequest.get());
     
    20562056}
    20572057
    2058 #if HAVE(AVFOUNDATION_LOADER_DELEGATE) && ENABLE(ENCRYPTED_MEDIA_V2)
     2058#if HAVE(AVFOUNDATION_LOADER_DELEGATE) && ENABLE(LEGACY_ENCRYPTED_MEDIA)
    20592059void AVFWrapper::setRequestForKey(const String& keyURI, AVCFAssetResourceLoadingRequestRef avRequest)
    20602060{
  • trunk/Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.h

    r197566 r206811  
    3131#include "MediaPlayerPrivateAVFoundation.h"
    3232
    33 #if HAVE(AVFOUNDATION_LOADER_DELEGATE) || HAVE(ENCRYPTED_MEDIA_V2)
     33#if HAVE(AVFOUNDATION_LOADER_DELEGATE) || HAVE(LEGACY_ENCRYPTED_MEDIA)
    3434typedef struct OpaqueAVCFAssetResourceLoadingRequest* AVCFAssetResourceLoadingRequestRef;
    3535#endif
     
    5353    void didStopLoadingRequest(AVCFAssetResourceLoadingRequestRef);
    5454
    55 #if ENABLE(ENCRYPTED_MEDIA_V2)
     55#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    5656    RetainPtr<AVCFAssetResourceLoadingRequestRef> takeRequestForKeyURI(const String&);
    5757#endif
     
    117117    virtual void contentsNeedsDisplay();
    118118
    119 #if ENABLE(ENCRYPTED_MEDIA_V2)
     119#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    120120    std::unique_ptr<CDMSession> createSession(const String&, CDMSessionClient*) override;
    121121#endif
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.h

    r197563 r206811  
    3131#include <wtf/RetainPtr.h>
    3232
    33 #if ENABLE(ENCRYPTED_MEDIA_V2) && ENABLE(MEDIA_SOURCE)
     33#if ENABLE(LEGACY_ENCRYPTED_MEDIA) && ENABLE(MEDIA_SOURCE)
    3434
    3535OBJC_CLASS AVContentKeyRequest;
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.mm

    r206440 r206811  
    2727#import "CDMSessionAVContentKeySession.h"
    2828
    29 #if ENABLE(ENCRYPTED_MEDIA_V2) && ENABLE(MEDIA_SOURCE)
     29#if ENABLE(LEGACY_ENCRYPTED_MEDIA) && ENABLE(MEDIA_SOURCE)
    3030
    3131#import "CDM.h"
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.h

    r201524 r206811  
    3131#include <wtf/WeakPtr.h>
    3232
    33 #if ENABLE(ENCRYPTED_MEDIA_V2)
     33#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    3434
    3535OBJC_CLASS AVAssetResourceLoadingRequest;
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm

    r201524 r206811  
    2727#import "CDMSessionAVFoundationObjC.h"
    2828
    29 #if ENABLE(ENCRYPTED_MEDIA_V2)
     29#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    3030
    3131#import "CDM.h"
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVStreamSession.h

    r205456 r206811  
    3232#include <wtf/WeakPtr.h>
    3333
    34 #if ENABLE(ENCRYPTED_MEDIA_V2) && ENABLE(MEDIA_SOURCE)
     34#if ENABLE(LEGACY_ENCRYPTED_MEDIA) && ENABLE(MEDIA_SOURCE)
    3535
    3636OBJC_CLASS AVStreamSession;
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVStreamSession.mm

    r206556 r206811  
    2727#import "CDMSessionAVStreamSession.h"
    2828
    29 #if ENABLE(ENCRYPTED_MEDIA_V2) && ENABLE(MEDIA_SOURCE)
     29#if ENABLE(LEGACY_ENCRYPTED_MEDIA) && ENABLE(MEDIA_SOURCE)
    3030
    3131#import "AVFoundationSPI.h"
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.h

    r197563 r206811  
    3232#include <wtf/WeakPtr.h>
    3333
    34 #if ENABLE(ENCRYPTED_MEDIA_V2) && ENABLE(MEDIA_SOURCE)
     34#if ENABLE(LEGACY_ENCRYPTED_MEDIA) && ENABLE(MEDIA_SOURCE)
    3535
    3636OBJC_CLASS AVStreamDataParser;
     
    8383}
    8484
    85 #endif // ENABLE(ENCRYPTED_MEDIA_V2) && ENABLE(MEDIA_SOURCE)
     85#endif // ENABLE(LEGACY_ENCRYPTED_MEDIA) && ENABLE(MEDIA_SOURCE)
    8686
    8787#endif // CDMSessionMediaSourceAVFObjC_h
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm

    r195410 r206811  
    2727#import "CDMSessionMediaSourceAVFObjC.h"
    2828
    29 #if ENABLE(ENCRYPTED_MEDIA_V2) && ENABLE(MEDIA_SOURCE)
     29#if ENABLE(LEGACY_ENCRYPTED_MEDIA) && ENABLE(MEDIA_SOURCE)
    3030
    3131#import "CDMPrivateMediaSourceAVFObjC.h"
     
    104104}
    105105
    106 #endif // ENABLE(ENCRYPTED_MEDIA_V2) && ENABLE(MEDIA_SOURCE)
     106#endif // ENABLE(LEGACY_ENCRYPTED_MEDIA) && ENABLE(MEDIA_SOURCE)
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h

    r206440 r206811  
    110110#endif
    111111
    112 #if ENABLE(ENCRYPTED_MEDIA_V2)
     112#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    113113    RetainPtr<AVAssetResourceLoadingRequest> takeRequestForKeyURI(const String&);
    114114    void keyAdded() override;
     
    145145#endif
    146146
    147 #if ENABLE(ENCRYPTED_MEDIA_V2)
     147#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    148148    void outputObscuredDueToInsufficientExternalProtectionChanged(bool);
    149149#endif
     
    154154#endif
    155155
    156 #if ENABLE(ENCRYPTED_MEDIA_V2)
     156#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    157157    void removeSession(CDMSession&);
    158158#endif
     
    276276#endif
    277277
    278 #if ENABLE(ENCRYPTED_MEDIA_V2)
     278#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    279279    std::unique_ptr<CDMSession> createSession(const String& keySystem, CDMSessionClient*) override;
    280280#endif
     
    399399#endif
    400400
    401 #if ENABLE(ENCRYPTED_MEDIA_V2)
     401#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    402402    WeakPtr<CDMSessionAVFoundationObjC> m_session;
    403403#endif
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm

    r206440 r206811  
    16561656}
    16571657
    1658 #if ENABLE(ENCRYPTED_MEDIA_V2)
     1658#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    16591659static bool keySystemIsSupported(const String& keySystem)
    16601660{
     
    16921692bool MediaPlayerPrivateAVFoundationObjC::supportsKeySystem(const String& keySystem, const String& mimeType)
    16931693{
    1694 #if ENABLE(ENCRYPTED_MEDIA_V2)
     1694#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    16951695    if (!keySystem.isEmpty()) {
    16961696        // "Clear Key" is only supported with HLS:
     
    17171717
    17181718#if HAVE(AVFOUNDATION_LOADER_DELEGATE)
    1719 #if ENABLE(ENCRYPTED_MEDIA_V2)
     1719#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    17201720static void fulfillRequestWithKeyData(AVAssetResourceLoadingRequest *request, ArrayBuffer* keyData)
    17211721{
     
    17501750    String keyURI = [[[avRequest request] URL] absoluteString];
    17511751
    1752 #if ENABLE(ENCRYPTED_MEDIA_V2)
     1752#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    17531753    if (scheme == "skd") {
    17541754        // Create an initData with the following layout:
     
    24622462#endif
    24632463
    2464 #if ENABLE(ENCRYPTED_MEDIA_V2)
     2464#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    24652465RetainPtr<AVAssetResourceLoadingRequest> MediaPlayerPrivateAVFoundationObjC::takeRequestForKeyURI(const String& keyURI)
    24662466{
     
    32103210                            @"externalPlaybackActive", @"allowsExternalPlayback",
    32113211#endif
    3212 #if ENABLE(ENCRYPTED_MEDIA_V2)
     3212#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    32133213                            @"outputObscuredDueToInsufficientExternalProtection",
    32143214#endif
     
    33353335            function = std::bind(&MediaPlayerPrivateAVFoundationObjC::playbackTargetIsWirelessDidChange, m_callback);
    33363336#endif
    3337 #if ENABLE(ENCRYPTED_MEDIA_V2)
     3337#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    33383338        else if ([keyPath isEqualToString:@"outputObscuredDueToInsufficientExternalProtection"])
    33393339            function = std::bind(&MediaPlayerPrivateAVFoundationObjC::outputObscuredDueToInsufficientExternalProtectionChanged, m_callback, [newValue boolValue]);
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.h

    r206025 r206811  
    9393#endif
    9494
    95 #if ENABLE(ENCRYPTED_MEDIA_V2)
     95#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    9696    bool hasStreamSession() { return m_streamSession; }
    9797    AVStreamSession *streamSession();
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm

    r206025 r206811  
    706706}
    707707
    708 #if ENABLE(ENCRYPTED_MEDIA_V2)
     708#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    709709AVStreamSession* MediaPlayerPrivateMediaSourceAVFObjC::streamSession()
    710710{
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaSourcePrivateAVFObjC.h

    r204466 r206811  
    8282    void sourceBufferPrivateDidChangeActiveState(SourceBufferPrivateAVFObjC*, bool active);
    8383    void sourceBufferPrivateDidReceiveInitializationSegment(SourceBufferPrivateAVFObjC*);
    84 #if ENABLE(ENCRYPTED_MEDIA_V2)
     84#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    8585    void sourceBufferKeyNeeded(SourceBufferPrivateAVFObjC*, Uint8Array*);
    8686#endif
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaSourcePrivateAVFObjC.mm

    r205938 r206811  
    158158}
    159159
    160 #if ENABLE(ENCRYPTED_MEDIA_V2)
     160#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    161161void MediaSourcePrivateAVFObjC::sourceBufferKeyNeeded(SourceBufferPrivateAVFObjC* buffer, Uint8Array* initData)
    162162{
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm

    r206518 r206811  
    579579    ASSERT(m_parser);
    580580
    581 #if ENABLE(ENCRYPTED_MEDIA_V2)
     581#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    582582    LOG(MediaSource, "SourceBufferPrivateAVFObjC::willProvideContentKeyRequestInitializationDataForTrackID(%p) - track:%d", this, trackID);
    583583    m_protectedTrackID = trackID;
     
    601601
    602602    UNUSED_PARAM(trackID);
    603 #if ENABLE(ENCRYPTED_MEDIA_V2)
     603#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    604604    LOG(MediaSource, "SourceBufferPrivateAVFObjC::didProvideContentKeyRequestInitializationDataForTrackID(%p) - track:%d", this, trackID);
    605605    m_protectedTrackID = trackID;
  • trunk/Source/WebCore/testing/Internals.cpp

    r206300 r206811  
    153153#endif
    154154
    155 #if ENABLE(ENCRYPTED_MEDIA_V2)
     155#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    156156#include "CDM.h"
    157157#include "MockCDM.h"
     
    25592559}
    25602560
    2561 #if ENABLE(ENCRYPTED_MEDIA_V2)
     2561#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    25622562void Internals::initializeMockCDM()
    25632563{
  • trunk/Source/WebCore/testing/Internals.h

    r206300 r206811  
    354354    void enableAutoSizeMode(bool enabled, int minimumWidth, int minimumHeight, int maximumWidth, int maximumHeight);
    355355
    356 #if ENABLE(ENCRYPTED_MEDIA_V2)
     356#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    357357    void initializeMockCDM();
    358358#endif
  • trunk/Source/WebCore/testing/Internals.idl

    r206723 r206811  
    361361    [Conditional=VIDEO, MayThrowLegacyException] boolean mediaElementHasCharacteristic(HTMLMediaElement element, DOMString characteristic);
    362362
    363     [Conditional=ENCRYPTED_MEDIA_V2] void initializeMockCDM();
     363    [Conditional=LEGACY_ENCRYPTED_MEDIA] void initializeMockCDM();
    364364
    365365    [Conditional=SPEECH_SYNTHESIS] void enableMockSpeechSynthesizer();
  • trunk/Source/WebCore/testing/MockCDM.cpp

    r197563 r206811  
    2727#include "MockCDM.h"
    2828
    29 #if ENABLE(ENCRYPTED_MEDIA_V2)
     29#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    3030
    3131#include "CDM.h"
     
    142142}
    143143
    144 #endif // ENABLE(ENCRYPTED_MEDIA_V2)
     144#endif // ENABLE(LEGACY_ENCRYPTED_MEDIA)
  • trunk/Source/WebCore/testing/MockCDM.h

    r206440 r206811  
    2727#define MockCDM_h
    2828
    29 #if ENABLE(ENCRYPTED_MEDIA_V2)
     29#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    3030
    3131#include "CDMPrivate.h"
     
    5656}
    5757
    58 #endif // ENABLE(ENCRYPTED_MEDIA_V2)
     58#endif // ENABLE(LEGACY_ENCRYPTED_MEDIA)
    5959
    6060#endif // MockCDM_h
  • trunk/Source/WebKit/mac/ChangeLog

    r206802 r206811  
     12016-10-05  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        Rename ENABLE_ENCRYPTED_MEDIA_V2 to ENABLE_LEGACY_ENCRYPTED_MEDIA
     4        https://bugs.webkit.org/show_bug.cgi?id=162903
     5
     6        Reviewed by Alex Christensen.
     7
     8        Rename build guards for the remaining implementation of the legacy EME API
     9        to ENABLE_LEGACY_ENCRYPTED_MEDIA. This will allow for the future implementation
     10        of the near-finished API to be guarded with the simple ENABLE_ENCRYPTED_MEDIA guards.
     11
     12        * Configurations/FeatureDefines.xcconfig:
     13        * WebView/WebPreferences.mm:
     14        (+[WebPreferences initialize]):
     15        * WebView/WebView.mm:
     16        (-[WebView _preferencesChanged:]):
     17
    1182016-10-04  Said Abou-Hallawa  <sabouhallawa@apple.com>
    219
  • trunk/Source/WebKit/mac/Configurations/FeatureDefines.xcconfig

    r206440 r206811  
    7676ENABLE_DEVICE_ORIENTATION[sdk=iphone*] = ENABLE_DEVICE_ORIENTATION;
    7777ENABLE_DOM4_EVENTS_CONSTRUCTOR = ENABLE_DOM4_EVENTS_CONSTRUCTOR;
    78 ENABLE_ENCRYPTED_MEDIA_V2[sdk=macosx*] = ENABLE_ENCRYPTED_MEDIA_V2;
    7978ENABLE_FETCH_API = ENABLE_FETCH_API;
    8079ENABLE_FILTERS_LEVEL_2 = ENABLE_FILTERS_LEVEL_2;
     
    125124
    126125ENABLE_LEGACY_CSS_VENDOR_PREFIXES = ENABLE_LEGACY_CSS_VENDOR_PREFIXES;
     126ENABLE_LEGACY_ENCRYPTED_MEDIA[sdk=macosx*] = ENABLE_LEGACY_ENCRYPTED_MEDIA;
    127127ENABLE_LEGACY_NOTIFICATIONS[sdk=macosx*] = ENABLE_LEGACY_NOTIFICATIONS;
    128128ENABLE_LEGACY_VENDOR_PREFIXES = ENABLE_LEGACY_VENDOR_PREFIXES;
     
    200200
    201201ENABLE_CUSTOM_ELEMENTS = ENABLE_CUSTOM_ELEMENTS;
    202 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_ANIMATIONS_LEVEL_2) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS3_TEXT) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_ELEMENTS) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ENCRYPTED_MEDIA_V2) $(ENABLE_ES6_MODULES) $(ENABLE_ES2017_ASYNCFUNCTION_SYNTAX) $(ENABLE_FETCH_API) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_READABLE_STREAM_API) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEB_ANIMATIONS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_WRITABLE_STREAM_API) $(ENABLE_XSLT);
     202
     203FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_ANIMATIONS_LEVEL_2) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS3_TEXT) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_ELEMENTS) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ES6_MODULES) $(ENABLE_ES2017_ASYNCFUNCTION_SYNTAX) $(ENABLE_FETCH_API) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_READABLE_STREAM_API) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEB_ANIMATIONS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_WRITABLE_STREAM_API) $(ENABLE_XSLT);
  • trunk/Source/WebKit/mac/WebView/WebPreferences.mm

    r206395 r206811  
    601601#endif
    602602        [NSNumber numberWithBool:NO], WebKitEnableInheritURIQueryComponentPreferenceKey,
    603 #if ENABLE(ENCRYPTED_MEDIA_V2)
     603#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    604604        @"~/Library/WebKit/MediaKeys", WebKitMediaKeysStorageDirectoryKey,
    605605#endif
  • trunk/Source/WebKit/mac/WebView/WebView.mm

    r206395 r206811  
    25702570#endif
    25712571
    2572 #if ENABLE(ENCRYPTED_MEDIA_V2)
     2572#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    25732573    settings.setMediaKeysStorageDirectory([preferences mediaKeysStorageDirectory]);
    25742574#endif
  • trunk/Source/WebKit2/ChangeLog

    r206810 r206811  
     12016-10-05  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        Rename ENABLE_ENCRYPTED_MEDIA_V2 to ENABLE_LEGACY_ENCRYPTED_MEDIA
     4        https://bugs.webkit.org/show_bug.cgi?id=162903
     5
     6        Reviewed by Alex Christensen.
     7
     8        Rename build guards for the remaining implementation of the legacy EME API
     9        to ENABLE_LEGACY_ENCRYPTED_MEDIA. This will allow for the future implementation
     10        of the near-finished API to be guarded with the simple ENABLE_ENCRYPTED_MEDIA guards.
     11
     12        * Configurations/FeatureDefines.xcconfig:
     13        * WebProcess/WebPage/WebPage.cpp:
     14        (WebKit::m_userInterfaceLayoutDirection):
     15        * WebProcess/WebProcess.cpp:
     16        (WebKit::m_resourceLoadStatisticsStorage):
     17
    1182016-10-05  Daniel Bates  <dabates@apple.com>
    219
  • trunk/Source/WebKit2/Configurations/FeatureDefines.xcconfig

    r206440 r206811  
    7676ENABLE_DEVICE_ORIENTATION[sdk=iphone*] = ENABLE_DEVICE_ORIENTATION;
    7777ENABLE_DOM4_EVENTS_CONSTRUCTOR = ENABLE_DOM4_EVENTS_CONSTRUCTOR;
    78 ENABLE_ENCRYPTED_MEDIA_V2[sdk=macosx*] = ENABLE_ENCRYPTED_MEDIA_V2;
    7978ENABLE_FETCH_API = ENABLE_FETCH_API;
    8079ENABLE_FILTERS_LEVEL_2 = ENABLE_FILTERS_LEVEL_2;
     
    125124
    126125ENABLE_LEGACY_CSS_VENDOR_PREFIXES = ENABLE_LEGACY_CSS_VENDOR_PREFIXES;
     126ENABLE_LEGACY_ENCRYPTED_MEDIA[sdk=macosx*] = ENABLE_LEGACY_ENCRYPTED_MEDIA;
    127127ENABLE_LEGACY_NOTIFICATIONS[sdk=macosx*] = ENABLE_LEGACY_NOTIFICATIONS;
    128128ENABLE_LEGACY_VENDOR_PREFIXES = ENABLE_LEGACY_VENDOR_PREFIXES;
     
    201201ENABLE_CUSTOM_ELEMENTS = ENABLE_CUSTOM_ELEMENTS;
    202202
    203 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_ANIMATIONS_LEVEL_2) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS3_TEXT) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_ELEMENTS) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ENCRYPTED_MEDIA_V2) $(ENABLE_ES6_MODULES) $(ENABLE_ES2017_ASYNCFUNCTION_SYNTAX) $(ENABLE_FETCH_API) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_READABLE_STREAM_API) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEB_ANIMATIONS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_WRITABLE_STREAM_API) $(ENABLE_XSLT);
     203FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_ANIMATIONS_LEVEL_2) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS3_TEXT) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_ELEMENTS) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ES6_MODULES) $(ENABLE_ES2017_ASYNCFUNCTION_SYNTAX) $(ENABLE_FETCH_API) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_READABLE_STREAM_API) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEB_ANIMATIONS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_WRITABLE_STREAM_API) $(ENABLE_XSLT);
  • trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp

    r206799 r206811  
    559559
    560560
    561 #if ENABLE(ENCRYPTED_MEDIA_V2)
     561#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    562562    if (WebMediaKeyStorageManager* manager = webProcess.supplement<WebMediaKeyStorageManager>())
    563563        m_page->settings().setMediaKeysStorageDirectory(manager->mediaKeyStorageDirectory());
  • trunk/Source/WebKit2/WebProcess/WebProcess.cpp

    r206604 r206811  
    198198    addSupplement<WebBatteryManager>();
    199199#endif
    200 #if ENABLE(ENCRYPTED_MEDIA_V2)
     200#if ENABLE(LEGACY_ENCRYPTED_MEDIA)
    201201    addSupplement<WebMediaKeyStorageManager>();
    202202#endif
  • trunk/Source/cmake/OptionsEfl.cmake

    r206503 r206811  
    9696WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_DOWNLOAD_ATTRIBUTE PUBLIC ON)
    9797WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_DRAG_SUPPORT PUBLIC ON)
    98 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_ENCRYPTED_MEDIA_V2 PUBLIC ON)
    9998WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_FILTERS_LEVEL_2 PUBLIC OFF)
    10099WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_FTL_JIT PUBLIC ${ENABLE_FTL_DEFAULT})
     
    106105WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_INDEXED_DATABASE PUBLIC ON)
    107106WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_INPUT_TYPE_COLOR PUBLIC ON)
     107WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_LEGACY_ENCRYPTED_MEDIA PUBLIC ON)
    108108WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_LINK_PREFETCH PUBLIC ON)
    109109WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MEDIA_CAPTURE PUBLIC ON)
  • trunk/Source/cmake/OptionsMac.cmake

    r206503 r206811  
    3333WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_DETAILS_ELEMENT PRIVATE ON)
    3434WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_DOM4_EVENTS_CONSTRUCTOR PRIVATE ON)
    35 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_ENCRYPTED_MEDIA_V2 PRIVATE ON)
    3635WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_FILTERS_LEVEL_2 PRIVATE ON)
    3736WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_FONT_LOAD_EVENTS PRIVATE OFF)
     
    5453WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_INPUT_TYPE_TIME PRIVATE ON)
    5554WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_LEGACY_CSS_VENDOR_PREFIXES PRIVATE ON)
     55WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_LEGACY_ENCRYPTED_MEDIA PRIVATE ON)
    5656WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_LEGACY_NOTIFICATIONS PRIVATE ON)
    5757WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_LEGACY_VENDOR_PREFIXES PRIVATE ON)
  • trunk/Source/cmake/OptionsWin.cmake

    r206119 r206811  
    7575
    7676if (${WTF_PLATFORM_WIN_CAIRO})
    77     WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_ENCRYPTED_MEDIA_V2 PUBLIC OFF)
     77    WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_LEGACY_ENCRYPTED_MEDIA PUBLIC OFF)
    7878    WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_INTL PUBLIC ON)
    7979    WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEBGL PUBLIC ON)
    8080else ()
    81     WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_ENCRYPTED_MEDIA_V2 PUBLIC ON)
     81    WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_LEGACY_ENCRYPTED_MEDIA PUBLIC ON)
    8282    WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_INTL PUBLIC OFF)
    8383    WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEBGL PUBLIC OFF)
  • trunk/Source/cmake/WebKitFeatures.cmake

    r206731 r206811  
    110110    WEBKIT_OPTION_DEFINE(ENABLE_DOWNLOAD_ATTRIBUTE "Toggle download attribute support" PRIVATE OFF)
    111111    WEBKIT_OPTION_DEFINE(ENABLE_DRAG_SUPPORT "Toggle Drag Support" PRIVATE OFF)
    112     WEBKIT_OPTION_DEFINE(ENABLE_ENCRYPTED_MEDIA_V2 "Support EME v2" PRIVATE OFF)
    113112    WEBKIT_OPTION_DEFINE(ENABLE_ES6_MODULES "Toggle ES6 modules support" PRIVATE OFF)
    114113    WEBKIT_OPTION_DEFINE(ENABLE_ES2017_ASYNCFUNCTION_SYNTAX "Toggle ES2017 async functions support" PRIVATE OFF)
     
    139138    WEBKIT_OPTION_DEFINE(ENABLE_JIT "Enable JustInTime javascript support" PRIVATE ON)
    140139    WEBKIT_OPTION_DEFINE(ENABLE_LEGACY_CSS_VENDOR_PREFIXES "Toggle legacy css vendor prefix support" PRIVATE OFF)
     140    WEBKIT_OPTION_DEFINE(ENABLE_LEGACY_ENCRYPTED_MEDIA "Support legacy EME" PRIVATE OFF)
    141141    WEBKIT_OPTION_DEFINE(ENABLE_LEGACY_NOTIFICATIONS "Toggle Legacy Desktop Notifications Support" PRIVATE OFF)
    142142    WEBKIT_OPTION_DEFINE(ENABLE_LEGACY_VENDOR_PREFIXES "Toggle Legacy Vendor Prefix Support" PRIVATE ON)
     
    207207
    208208    WEBKIT_OPTION_DEPEND(ENABLE_WEB_RTC ENABLE_MEDIA_STREAM)
    209     WEBKIT_OPTION_DEPEND(ENABLE_ENCRYPTED_MEDIA_V2 ENABLE_VIDEO)
     209    WEBKIT_OPTION_DEPEND(ENABLE_LEGACY_ENCRYPTED_MEDIA ENABLE_VIDEO)
    210210    WEBKIT_OPTION_DEPEND(ENABLE_DFG_JIT ENABLE_JIT)
    211211    WEBKIT_OPTION_DEPEND(ENABLE_FTL_JIT ENABLE_DFG_JIT)
  • trunk/Source/cmake/tools/vsprops/FeatureDefines.props

    r206275 r206811  
    3131    <ENABLE_DIRECTORY_UPLOAD />
    3232    <ENABLE_DOM4_EVENTS_CONSTRUCTOR>ENABLE_DOM4_EVENTS_CONSTRUCTOR</ENABLE_DOM4_EVENTS_CONSTRUCTOR>
    33     <ENABLE_ENCRYPTED_MEDIA_V2>ENABLE_ENCRYPTED_MEDIA_V2</ENABLE_ENCRYPTED_MEDIA_V2>
    3433    <ENABLE_ES6_MODULES />
    3534    <ENABLE_FETCH_API />
     
    5150    <ENABLE_INTL>ENABLE_INTL</ENABLE_INTL>
    5251    <ENABLE_LEGACY_CSS_VENDOR_PREFIXES>ENABLE_LEGACY_CSS_VENDOR_PREFIXES</ENABLE_LEGACY_CSS_VENDOR_PREFIXES>
     52    <ENABLE_LEGACY_ENCRYPTED_MEDIA>ENABLE_LEGACY_ENCRYPTED_MEDIA</ENABLE_LEGACY_ENCRYPTED_MEDIA>
    5353    <ENABLE_LEGACY_NOTIFICATIONS />
    5454    <ENABLE_LINK_PREFETCH />
     
    9393  <ItemDefinitionGroup>
    9494    <ClCompile>
    95       <PreprocessorDefinitions>$(ENABLE_CSP_NEXT);$(ENABLE_PROMISES);$(ENABLE_REQUEST_ANIMATION_FRAME);$(ENABLE_3D_TRANSFORMS);$(ENABLE_ACCELERATED_2D_CANVAS);$(ENABLE_ACCELERATED_OVERFLOW_SCROLLING);$(ENABLE_ATTACHMENT_ELEMENT);$(ENABLE_CANVAS_PATH);$(ENABLE_CANVAS_PROXY);$(ENABLE_CHANNEL_MESSAGING);$(ENABLE_CSS3_CONDITIONAL_RULES);$(ENABLE_CSS_IMAGE_SET);$(ENABLE_CSS3_TEXT);$(ENABLE_CSS_BOX_DECORATION_BREAK);$(ENABLE_CSS_GRID_LAYOUT);$(ENABLE_CSS_SHADERS);$(ENABLE_CSS_COMPOSITING);$(ENABLE_CSS_REGIONS);$(ENABLE_CSS_SELECTORS_LEVEL4);$(ENABLE_CSS_SHAPES);$(ENABLE_CSS_SHAPE_INSIDE);$(ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED);$(ENABLE_CURSOR_VISIBILITY);$(ENABLE_CUSTOM_SCHEME_HANDLER);$(ENABLE_DATAGRID);$(ENABLE_DATALIST_ELEMENT);$(ENABLE_DATA_TRANSFER_ITEMS);$(ENABLE_DETAILS_ELEMENT);$(ENABLE_DEVICE_ORIENTATION);$(ENABLE_DIRECTORY_UPLOAD);$(ENABLE_DOM4_EVENTS_CONSTRUCTOR);$(ENABLE_ENCRYPTED_MEDIA_V2);$(ENABLE_ES6_MODULES);$(ENABLE_FETCH_API);$(ENABLE_FILE_SYSTEM);$(ENABLE_FULLSCREEN_API);$(ENABLE_GAMEPAD);$(ENABLE_GEOLOCATION);$(ENABLE_HIGH_DPI_CANVAS);$(ENABLE_ICONDATABASE);$(ENABLE_INDEXED_DATABASE);$(ENABLE_INPUT_TYPE_COLOR);$(ENABLE_INPUT_SPEECH);$(ENABLE_INPUT_TYPE_DATE);$(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE);$(ENABLE_INPUT_TYPE_DATETIMELOCAL);$(ENABLE_INPUT_TYPE_MONTH);$(ENABLE_INPUT_TYPE_TIME);$(ENABLE_INPUT_TYPE_WEEK);$(ENABLE_INTL);$(ENABLE_LEGACY_CSS_VENDOR_PREFIXES);$(ENABLE_LEGACY_NOTIFICATIONS);$(ENABLE_LINK_PREFETCH);$(ENABLE_LINK_PRERENDER);$(ENABLE_MATHML);$(ENABLE_METER_ELEMENT);$(ENABLE_MICRODATA);$(ENABLE_MOUSE_CURSOR_SCALE);$(ENABLE_NOTIFICATIONS);$(ENABLE_PROXIMITY_EVENTS);$(ENABLE_QUOTA);$(ENABLE_NAVIGATOR_CONTENT_UTILS);$(ENABLE_READABLE_STREAM_API);$(ENABLE_SCRIPTED_SPEECH);$(ENABLE_SHARED_WORKERS);$(ENABLE_MEDIA_CONTROLS_SCRIPT);$(ENABLE_MEDIA_SOURCE);$(ENABLE_MEDIA_STATISTICS);$(ENABLE_SQL_DATABASE);$(ENABLE_STYLE_SCOPED);$(ENABLE_SUBPIXEL_LAYOUT);$(ENABLE_SVG_DOM_OBJC_BINDINGS);$(ENABLE_SVG_FONTS);$(ENABLE_VIDEO);$(ENABLE_VIDEO_TRACK);$(ENABLE_VIEW_MODE_CSS_MEDIA);$(ENABLE_WEB_ANIMATIONS);$(ENABLE_WEB_AUDIO);$(ENABLE_WEB_SOCKETS);$(ENABLE_WEB_TIMING);$(ENABLE_WEBGL);$(ENABLE_WEBVTT_REGIONS);$(ENABLE_WRITABLE_STREAM_API);$(ENABLE_XHR_TIMEOUT);$(ENABLE_XSLT);%(PreprocessorDefinitions)</PreprocessorDefinitions>
     95      <PreprocessorDefinitions>$(ENABLE_CSP_NEXT);$(ENABLE_PROMISES);$(ENABLE_REQUEST_ANIMATION_FRAME);$(ENABLE_3D_TRANSFORMS);$(ENABLE_ACCELERATED_2D_CANVAS);$(ENABLE_ACCELERATED_OVERFLOW_SCROLLING);$(ENABLE_ATTACHMENT_ELEMENT);$(ENABLE_CANVAS_PATH);$(ENABLE_CANVAS_PROXY);$(ENABLE_CHANNEL_MESSAGING);$(ENABLE_CSS3_CONDITIONAL_RULES);$(ENABLE_CSS_IMAGE_SET);$(ENABLE_CSS3_TEXT);$(ENABLE_CSS_BOX_DECORATION_BREAK);$(ENABLE_CSS_GRID_LAYOUT);$(ENABLE_CSS_SHADERS);$(ENABLE_CSS_COMPOSITING);$(ENABLE_CSS_REGIONS);$(ENABLE_CSS_SELECTORS_LEVEL4);$(ENABLE_CSS_SHAPES);$(ENABLE_CSS_SHAPE_INSIDE);$(ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED);$(ENABLE_CURSOR_VISIBILITY);$(ENABLE_CUSTOM_SCHEME_HANDLER);$(ENABLE_DATAGRID);$(ENABLE_DATALIST_ELEMENT);$(ENABLE_DATA_TRANSFER_ITEMS);$(ENABLE_DETAILS_ELEMENT);$(ENABLE_DEVICE_ORIENTATION);$(ENABLE_DIRECTORY_UPLOAD);$(ENABLE_DOM4_EVENTS_CONSTRUCTOR);$(ENABLE_ES6_MODULES);$(ENABLE_FETCH_API);$(ENABLE_FILE_SYSTEM);$(ENABLE_FULLSCREEN_API);$(ENABLE_GAMEPAD);$(ENABLE_GEOLOCATION);$(ENABLE_HIGH_DPI_CANVAS);$(ENABLE_ICONDATABASE);$(ENABLE_INDEXED_DATABASE);$(ENABLE_INPUT_TYPE_COLOR);$(ENABLE_INPUT_SPEECH);$(ENABLE_INPUT_TYPE_DATE);$(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE);$(ENABLE_INPUT_TYPE_DATETIMELOCAL);$(ENABLE_INPUT_TYPE_MONTH);$(ENABLE_INPUT_TYPE_TIME);$(ENABLE_INPUT_TYPE_WEEK);$(ENABLE_INTL);$(ENABLE_LEGACY_CSS_VENDOR_PREFIXES);$(ENABLE_LEGACY_ENCRYPTED_MEDIA);$(ENABLE_LEGACY_NOTIFICATIONS);$(ENABLE_LINK_PREFETCH);$(ENABLE_LINK_PRERENDER);$(ENABLE_MATHML);$(ENABLE_METER_ELEMENT);$(ENABLE_MICRODATA);$(ENABLE_MOUSE_CURSOR_SCALE);$(ENABLE_NOTIFICATIONS);$(ENABLE_PROXIMITY_EVENTS);$(ENABLE_QUOTA);$(ENABLE_NAVIGATOR_CONTENT_UTILS);$(ENABLE_READABLE_STREAM_API);$(ENABLE_SCRIPTED_SPEECH);$(ENABLE_SHARED_WORKERS);$(ENABLE_MEDIA_CONTROLS_SCRIPT);$(ENABLE_MEDIA_SOURCE);$(ENABLE_MEDIA_STATISTICS);$(ENABLE_SQL_DATABASE);$(ENABLE_STYLE_SCOPED);$(ENABLE_SUBPIXEL_LAYOUT);$(ENABLE_SVG_DOM_OBJC_BINDINGS);$(ENABLE_SVG_FONTS);$(ENABLE_VIDEO);$(ENABLE_VIDEO_TRACK);$(ENABLE_VIEW_MODE_CSS_MEDIA);$(ENABLE_WEB_ANIMATIONS);$(ENABLE_WEB_AUDIO);$(ENABLE_WEB_SOCKETS);$(ENABLE_WEB_TIMING);$(ENABLE_WEBGL);$(ENABLE_WEBVTT_REGIONS);$(ENABLE_WRITABLE_STREAM_API);$(ENABLE_XHR_TIMEOUT);$(ENABLE_XSLT);%(PreprocessorDefinitions)</PreprocessorDefinitions>
    9696    </ClCompile>
    9797  </ItemDefinitionGroup>
     
    213213      <EnvironmentVariable>true</EnvironmentVariable>
    214214    </BuildMacro>
    215     <BuildMacro Include="ENABLE_ENCRYPTED_MEDIA_V2">
    216       <Value>$(ENABLE_ENCRYPTED_MEDIA_V2)</Value>
    217       <EnvironmentVariable>true</EnvironmentVariable>
    218     </BuildMacro>
    219215    <BuildMacro Include="ENABLE_ES6_MODULES">
    220216      <Value>$(ENABLE_ES6_MODULES)</Value>
     
    293289      <EnvironmentVariable>true</EnvironmentVariable>
    294290    </BuildMacro>
     291    <BuildMacro Include="ENABLE_LEGACY_ENCRYPTED_MEDIA">
     292      <Value>$(ENABLE_LEGACY_ENCRYPTED_MEDIA)</Value>
     293      <EnvironmentVariable>true</EnvironmentVariable>
     294    </BuildMacro>
    295295    <BuildMacro Include="ENABLE_LEGACY_NOTIFICATIONS">
    296296      <Value>$(ENABLE_LEGACY_NOTIFICATIONS)</Value>
  • trunk/Source/cmake/tools/vsprops/FeatureDefinesCairo.props

    r206275 r206811  
    3131    <ENABLE_DIRECTORY_UPLOAD />
    3232    <ENABLE_DOM4_EVENTS_CONSTRUCTOR>ENABLE_DOM4_EVENTS_CONSTRUCTOR</ENABLE_DOM4_EVENTS_CONSTRUCTOR>
    33     <ENABLE_ENCRYPTED_MEDIA_V2 />
    3433    <ENABLE_ES6_MODULES />
    3534    <ENABLE_FETCH_API />
     
    5150    <ENABLE_INTL>ENABLE_INTL</ENABLE_INTL>
    5251    <ENABLE_LEGACY_CSS_VENDOR_PREFIXES>ENABLE_LEGACY_CSS_VENDOR_PREFIXES</ENABLE_LEGACY_CSS_VENDOR_PREFIXES>
     52    <ENABLE_LEGACY_ENCRYPTED_MEDIA />
    5353    <ENABLE_LEGACY_NOTIFICATIONS />
    5454    <ENABLE_LINK_PREFETCH />
     
    9191  <ItemDefinitionGroup>
    9292    <ClCompile>
    93       <PreprocessorDefinitions>$(ENABLE_CSP_NEXT);$(ENABLE_PROMISES);$(ENABLE_REQUEST_ANIMATION_FRAME);$(ENABLE_3D_TRANSFORMS);$(ENABLE_ACCELERATED_2D_CANVAS);$(ENABLE_ACCELERATED_OVERFLOW_SCROLLING);$(ENABLE_ATTACHMENT_ELEMENT);$(ENABLE_CANVAS_PATH);$(ENABLE_CANVAS_PROXY);$(ENABLE_CHANNEL_MESSAGING);$(ENABLE_CSS3_CONDITIONAL_RULES);$(ENABLE_CSS_IMAGE_SET);$(ENABLE_CSS3_TEXT);$(ENABLE_CSS_BOX_DECORATION_BREAK);$(ENABLE_CSS_GRID_LAYOUT);$(ENABLE_CSS_SHADERS);$(ENABLE_CSS_COMPOSITING);$(ENABLE_CSS_REGIONS);$(ENABLE_CSS_SELECTORS_LEVEL4);$(ENABLE_CSS_SHAPES);$(ENABLE_CSS_SHAPE_INSIDE);$(ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED);$(ENABLE_CURSOR_VISIBILITY);$(ENABLE_CUSTOM_SCHEME_HANDLER);$(ENABLE_DATAGRID);$(ENABLE_DATALIST_ELEMENT);$(ENABLE_DATA_TRANSFER_ITEMS);$(ENABLE_DETAILS_ELEMENT);$(ENABLE_DEVICE_ORIENTATION);$(ENABLE_DIRECTORY_UPLOAD);$(ENABLE_DOM4_EVENTS_CONSTRUCTOR);$(ENABLE_ENCRYPTED_MEDIA_V2);$(ENABLE_ES6_MODULES);$(ENABLE_FETCH_API);$(ENABLE_FILE_SYSTEM);$(ENABLE_FULLSCREEN_API);$(ENABLE_GAMEPAD);$(ENABLE_GEOLOCATION);$(ENABLE_HIGH_DPI_CANVAS);$(ENABLE_ICONDATABASE);$(ENABLE_INDEXED_DATABASE);$(ENABLE_INPUT_TYPE_COLOR);$(ENABLE_INPUT_SPEECH);$(ENABLE_INPUT_TYPE_DATE);$(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE);$(ENABLE_INPUT_TYPE_DATETIMELOCAL);$(ENABLE_INPUT_TYPE_MONTH);$(ENABLE_INPUT_TYPE_TIME);$(ENABLE_INPUT_TYPE_WEEK);$(ENABLE_INTL);$(ENABLE_LEGACY_CSS_VENDOR_PREFIXES);$(ENABLE_LEGACY_NOTIFICATIONS);$(ENABLE_LINK_PREFETCH);$(ENABLE_LINK_PRERENDER);$(ENABLE_MATHML);$(ENABLE_METER_ELEMENT);$(ENABLE_MICRODATA);$(ENABLE_MOUSE_CURSOR_SCALE);$(ENABLE_NOTIFICATIONS);$(ENABLE_PROXIMITY_EVENTS);$(ENABLE_QUOTA);$(ENABLE_NAVIGATOR_CONTENT_UTILS);$(ENABLE_SCRIPTED_SPEECH);$(ENABLE_SHARED_WORKERS);$(ENABLE_MEDIA_CONTROLS_SCRIPT);$(ENABLE_MEDIA_SOURCE);$(ENABLE_MEDIA_STATISTICS);$(ENABLE_SQL_DATABASE);$(ENABLE_STYLE_SCOPED);$(ENABLE_SUBPIXEL_LAYOUT);$(ENABLE_SVG_DOM_OBJC_BINDINGS);$(ENABLE_SVG_FONTS);$(ENABLE_VIDEO);$(ENABLE_VIDEO_TRACK);$(ENABLE_VIEW_MODE_CSS_MEDIA);$(ENABLE_WEB_ANIMATIONS);$(ENABLE_WEB_AUDIO);$(ENABLE_WEB_SOCKETS);$(ENABLE_WEB_TIMING);$(ENABLE_WEBGL);$(ENABLE_WEBVTT_REGIONS);$(ENABLE_XHR_TIMEOUT);$(ENABLE_XSLT);%(PreprocessorDefinitions)</PreprocessorDefinitions>
     93      <PreprocessorDefinitions>$(ENABLE_CSP_NEXT);$(ENABLE_PROMISES);$(ENABLE_REQUEST_ANIMATION_FRAME);$(ENABLE_3D_TRANSFORMS);$(ENABLE_ACCELERATED_2D_CANVAS);$(ENABLE_ACCELERATED_OVERFLOW_SCROLLING);$(ENABLE_ATTACHMENT_ELEMENT);$(ENABLE_CANVAS_PATH);$(ENABLE_CANVAS_PROXY);$(ENABLE_CHANNEL_MESSAGING);$(ENABLE_CSS3_CONDITIONAL_RULES);$(ENABLE_CSS_IMAGE_SET);$(ENABLE_CSS3_TEXT);$(ENABLE_CSS_BOX_DECORATION_BREAK);$(ENABLE_CSS_GRID_LAYOUT);$(ENABLE_CSS_SHADERS);$(ENABLE_CSS_COMPOSITING);$(ENABLE_CSS_REGIONS);$(ENABLE_CSS_SELECTORS_LEVEL4);$(ENABLE_CSS_SHAPES);$(ENABLE_CSS_SHAPE_INSIDE);$(ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED);$(ENABLE_CURSOR_VISIBILITY);$(ENABLE_CUSTOM_SCHEME_HANDLER);$(ENABLE_DATAGRID);$(ENABLE_DATALIST_ELEMENT);$(ENABLE_DATA_TRANSFER_ITEMS);$(ENABLE_DETAILS_ELEMENT);$(ENABLE_DEVICE_ORIENTATION);$(ENABLE_DIRECTORY_UPLOAD);$(ENABLE_DOM4_EVENTS_CONSTRUCTOR);$(ENABLE_ES6_MODULES);$(ENABLE_FETCH_API);$(ENABLE_FILE_SYSTEM);$(ENABLE_FULLSCREEN_API);$(ENABLE_GAMEPAD);$(ENABLE_GEOLOCATION);$(ENABLE_HIGH_DPI_CANVAS);$(ENABLE_ICONDATABASE);$(ENABLE_INDEXED_DATABASE);$(ENABLE_INPUT_TYPE_COLOR);$(ENABLE_INPUT_SPEECH);$(ENABLE_INPUT_TYPE_DATE);$(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE);$(ENABLE_INPUT_TYPE_DATETIMELOCAL);$(ENABLE_INPUT_TYPE_MONTH);$(ENABLE_INPUT_TYPE_TIME);$(ENABLE_INPUT_TYPE_WEEK);$(ENABLE_INTL);$(ENABLE_LEGACY_CSS_VENDOR_PREFIXES);$(ENABLE_LEGACY_ENCRYPTED_MEDIA);$(ENABLE_LEGACY_NOTIFICATIONS);$(ENABLE_LINK_PREFETCH);$(ENABLE_LINK_PRERENDER);$(ENABLE_MATHML);$(ENABLE_METER_ELEMENT);$(ENABLE_MICRODATA);$(ENABLE_MOUSE_CURSOR_SCALE);$(ENABLE_NOTIFICATIONS);$(ENABLE_PROXIMITY_EVENTS);$(ENABLE_QUOTA);$(ENABLE_NAVIGATOR_CONTENT_UTILS);$(ENABLE_SCRIPTED_SPEECH);$(ENABLE_SHARED_WORKERS);$(ENABLE_MEDIA_CONTROLS_SCRIPT);$(ENABLE_MEDIA_SOURCE);$(ENABLE_MEDIA_STATISTICS);$(ENABLE_SQL_DATABASE);$(ENABLE_STYLE_SCOPED);$(ENABLE_SUBPIXEL_LAYOUT);$(ENABLE_SVG_DOM_OBJC_BINDINGS);$(ENABLE_SVG_FONTS);$(ENABLE_VIDEO);$(ENABLE_VIDEO_TRACK);$(ENABLE_VIEW_MODE_CSS_MEDIA);$(ENABLE_WEB_ANIMATIONS);$(ENABLE_WEB_AUDIO);$(ENABLE_WEB_SOCKETS);$(ENABLE_WEB_TIMING);$(ENABLE_WEBGL);$(ENABLE_WEBVTT_REGIONS);$(ENABLE_XHR_TIMEOUT);$(ENABLE_XSLT);%(PreprocessorDefinitions)</PreprocessorDefinitions>
    9494    </ClCompile>
    9595  </ItemDefinitionGroup>
     
    211211      <EnvironmentVariable>true</EnvironmentVariable>
    212212    </BuildMacro>
    213     <BuildMacro Include="ENABLE_ENCRYPTED_MEDIA_V2">
    214       <Value>$(ENABLE_ENCRYPTED_MEDIA_V2)</Value>
     213    <BuildMacro Include="ENABLE_LEGACY_ENCRYPTED_MEDIA">
     214      <Value>$(ENABLE_LEGACY_ENCRYPTED_MEDIA)</Value>
    215215      <EnvironmentVariable>true</EnvironmentVariable>
    216216    </BuildMacro>
  • trunk/Tools/ChangeLog

    r206801 r206811  
     12016-10-05  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        Rename ENABLE_ENCRYPTED_MEDIA_V2 to ENABLE_LEGACY_ENCRYPTED_MEDIA
     4        https://bugs.webkit.org/show_bug.cgi?id=162903
     5
     6        Reviewed by Alex Christensen.
     7
     8        Rename build guards for the remaining implementation of the legacy EME API
     9        to ENABLE_LEGACY_ENCRYPTED_MEDIA. This will allow for the future implementation
     10        of the near-finished API to be guarded with the simple ENABLE_ENCRYPTED_MEDIA guards.
     11
     12        * TestWebKitAPI/Configurations/FeatureDefines.xcconfig: Also remove the
     13        ENABLE_IOS_TEXT_AUTOSIZING feature define that was renamed in r206395 and was
     14        throwing up style checker errors.
     15
    1162016-10-04  Andy Estes  <aestes@apple.com>
    217
  • trunk/Tools/TestWebKitAPI/Configurations/FeatureDefines.xcconfig

    r206440 r206811  
    7676ENABLE_DEVICE_ORIENTATION[sdk=iphone*] = ENABLE_DEVICE_ORIENTATION;
    7777ENABLE_DOM4_EVENTS_CONSTRUCTOR = ENABLE_DOM4_EVENTS_CONSTRUCTOR;
    78 ENABLE_ENCRYPTED_MEDIA_V2[sdk=macosx*] = ENABLE_ENCRYPTED_MEDIA_V2;
    7978ENABLE_FETCH_API = ENABLE_FETCH_API;
    8079ENABLE_FILTERS_LEVEL_2 = ENABLE_FILTERS_LEVEL_2;
     
    125124
    126125ENABLE_LEGACY_CSS_VENDOR_PREFIXES = ENABLE_LEGACY_CSS_VENDOR_PREFIXES;
     126ENABLE_LEGACY_ENCRYPTED_MEDIA[sdk=macosx*] = ENABLE_LEGACY_ENCRYPTED_MEDIA;
    127127ENABLE_LEGACY_NOTIFICATIONS[sdk=macosx*] = ENABLE_LEGACY_NOTIFICATIONS;
    128128ENABLE_LEGACY_VENDOR_PREFIXES = ENABLE_LEGACY_VENDOR_PREFIXES;
     
    201201ENABLE_CUSTOM_ELEMENTS = ENABLE_CUSTOM_ELEMENTS;
    202202
    203 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_ANIMATIONS_LEVEL_2) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS3_TEXT) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_ELEMENTS) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ENCRYPTED_MEDIA_V2) $(ENABLE_ES6_MODULES) $(ENABLE_ES2017_ASYNCFUNCTION_SYNTAX) $(ENABLE_FETCH_API) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TEXT_AUTOSIZING) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_READABLE_STREAM_API) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEB_ANIMATIONS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_WRITABLE_STREAM_API) $(ENABLE_XSLT);
     203FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_ANIMATIONS_LEVEL_2) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS3_TEXT) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_ELEMENTS) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ES6_MODULES) $(ENABLE_ES2017_ASYNCFUNCTION_SYNTAX) $(ENABLE_FETCH_API) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_READABLE_STREAM_API) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEB_ANIMATIONS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_WRITABLE_STREAM_API) $(ENABLE_XSLT);
Note: See TracChangeset for help on using the changeset viewer.