Changeset 168079 in webkit
- Timestamp:
- Apr 30, 2014 7:19:33 PM (10 years ago)
- Location:
- trunk/Source
- Files:
-
- 50 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r168051 r168079 1 2014-04-30 Simon Fraser <simon.fraser@apple.com> 2 3 Remove ENABLE_PLUGIN_PROXY_FOR_VIDEO 4 https://bugs.webkit.org/show_bug.cgi?id=132396 5 6 Reviewed by Eric Carlson. 7 8 Remove ENABLE_PLUGIN_PROXY_FOR_VIDEO and related code. 9 10 * Configurations/FeatureDefines.xcconfig: 11 1 12 2014-04-30 Filip Pizlo <fpizlo@apple.com> 2 13 -
trunk/Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig
r167958 r168079 161 161 ENABLE_PDFKIT_PLUGIN = $(ENABLE_PDFKIT_PLUGIN_$(PLATFORM_NAME)); 162 162 ENABLE_PDFKIT_PLUGIN_macosx = ENABLE_PDFKIT_PLUGIN; 163 ENABLE_PLUGIN_PROXY_FOR_VIDEO = $(ENABLE_PLUGIN_PROXY_FOR_VIDEO_$(PLATFORM_NAME));164 ENABLE_PLUGIN_PROXY_FOR_VIDEO_iphoneos = ENABLE_PLUGIN_PROXY_FOR_VIDEO;165 ENABLE_PLUGIN_PROXY_FOR_VIDEO_iphonesimulator = $(ENABLE_PLUGIN_PROXY_FOR_VIDEO_iphoneos);166 163 ENABLE_PROGRESS_ELEMENT = ENABLE_PROGRESS_ELEMENT; 167 164 ENABLE_PROMISES = ENABLE_PROMISES; … … 242 239 ENABLE_LLINT_C_LOOP = ; 243 240 244 FEATURE_DEFINES = $(ENABLE_3D_RENDERING) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_AVF_CAPTIONS) $(ENABLE_BLOB) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_EXCLUSIONS) $(ENABLE_CSS_FILTERS) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS_STICKY_POSITION) $(ENABLE_CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED) $(ENABLE_CSS3_CONDITIONAL_RULES) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS3_TEXT_LINE_BREAK) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ENCRYPTED_MEDIA_V2) $(ENABLE_FILTERS) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING) $(ENABLE_HIGH_DPI_CANVAS) $(ENABLE_ICONDATABASE) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_SPEECH) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(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_INSPECTOR) $(ENABLE_IOS_AIRPLAY) $(ENABLE_IOS_TEXT_AUTOSIZING) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LEGACY_WEB_AUDIO) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MATHML) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAGE_VISIBILITY_API) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_P LUGIN_PROXY_FOR_VIDEO) $(ENABLE_PROGRESS_ELEMENT) $(ENABLE_PROMISES) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_SCRIPTED_SPEECH) $(ENABLE_SHARED_WORKERS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SQL_DATABASE) $(ENABLE_SUBPIXEL_LAYOUT) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEMPLATE_ELEMENT) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_DATACUE_VALUE) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEBGL) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBVTT_REGIONS) $(ENABLE_XHR_TIMEOUT) $(ENABLE_XSLT) $(ENABLE_FTL_JIT) $(ENABLE_LLINT_C_LOOP) $(FEATURE_DEFINES_$(PLATFORM_NAME));241 FEATURE_DEFINES = $(ENABLE_3D_RENDERING) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_AVF_CAPTIONS) $(ENABLE_BLOB) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_EXCLUSIONS) $(ENABLE_CSS_FILTERS) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS_STICKY_POSITION) $(ENABLE_CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED) $(ENABLE_CSS3_CONDITIONAL_RULES) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS3_TEXT_LINE_BREAK) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ENCRYPTED_MEDIA_V2) $(ENABLE_FILTERS) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING) $(ENABLE_HIGH_DPI_CANVAS) $(ENABLE_ICONDATABASE) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_SPEECH) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(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_INSPECTOR) $(ENABLE_IOS_AIRPLAY) $(ENABLE_IOS_TEXT_AUTOSIZING) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LEGACY_WEB_AUDIO) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MATHML) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAGE_VISIBILITY_API) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_PROGRESS_ELEMENT) $(ENABLE_PROMISES) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_SCRIPTED_SPEECH) $(ENABLE_SHARED_WORKERS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SQL_DATABASE) $(ENABLE_SUBPIXEL_LAYOUT) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEMPLATE_ELEMENT) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_DATACUE_VALUE) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEBGL) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBVTT_REGIONS) $(ENABLE_XHR_TIMEOUT) $(ENABLE_XSLT) $(ENABLE_FTL_JIT) $(ENABLE_LLINT_C_LOOP) $(FEATURE_DEFINES_$(PLATFORM_NAME)); -
trunk/Source/WTF/ChangeLog
r168059 r168079 1 2014-04-30 Simon Fraser <simon.fraser@apple.com> 2 3 Remove ENABLE_PLUGIN_PROXY_FOR_VIDEO 4 https://bugs.webkit.org/show_bug.cgi?id=132396 5 6 Reviewed by Eric Carlson. 7 8 Remove ENABLE_PLUGIN_PROXY_FOR_VIDEO and related code. 9 10 * wtf/FeatureDefines.h: 11 1 12 2014-04-30 Víctor Manuel Jáquez Leal <vjaquez@igalia.com> 2 13 -
trunk/Source/WTF/wtf/FeatureDefines.h
r167632 r168079 649 649 #endif 650 650 651 #if !defined(ENABLE_PLUGIN_PROXY_FOR_VIDEO)652 #define ENABLE_PLUGIN_PROXY_FOR_VIDEO 0653 #endif654 655 651 #if !defined(ENABLE_POINTER_LOCK) 656 652 #define ENABLE_POINTER_LOCK 0 -
trunk/Source/WebCore/ChangeLog
r168078 r168079 1 2014-04-30 Simon Fraser <simon.fraser@apple.com> 2 3 Remove ENABLE_PLUGIN_PROXY_FOR_VIDEO 4 https://bugs.webkit.org/show_bug.cgi?id=132396 5 6 Reviewed by Eric Carlson. 7 8 Remove ENABLE_PLUGIN_PROXY_FOR_VIDEO and related code. 9 10 * Configurations/FeatureDefines.xcconfig: 11 * WebCore.exp.in: 12 * css/StyleResolver.cpp: 13 (WebCore::StyleResolver::canShareStyleWithElement): 14 * dom/DOMImplementation.cpp: 15 (WebCore::DOMImplementation::createDocument): 16 * editing/TextIterator.cpp: 17 (WebCore::isRendererReplacedElement): 18 * html/HTMLMediaElement.cpp: 19 (WebCore::HTMLMediaElement::HTMLMediaElement): 20 (WebCore::HTMLMediaElement::parseAttribute): 21 * html/HTMLMediaElement.h: 22 (WebCore::HTMLMediaElement::setNeedWidgetUpdate): Deleted. 23 * html/HTMLMediaSession.cpp: 24 (WebCore::HTMLMediaSession::showPlaybackTargetPicker): 25 (WebCore::HTMLMediaSession::hasWirelessPlaybackTargets): 26 (WebCore::HTMLMediaSession::setHasPlaybackTargetAvailabilityListeners): 27 * html/HTMLVideoElement.cpp: 28 (WebCore::HTMLVideoElement::createElementRenderer): 29 (WebCore::HTMLVideoElement::didAttachRenderers): 30 (WebCore::HTMLVideoElement::parseAttribute): 31 (WebCore::HTMLVideoElement::setDisplayMode): 32 * html/shadow/MediaControlElements.cpp: 33 (WebCore::MediaControlTextTrackContainerElement::updateSizes): 34 * loader/EmptyClients.cpp: 35 (WebCore::EmptyFrameLoaderClient::createMediaPlayerProxyPlugin): Deleted. 36 * loader/EmptyClients.h: 37 * loader/FrameLoaderClient.h: 38 * loader/SubframeLoader.cpp: 39 (WebCore::SubframeLoader::loadPlugin): 40 (WebCore::SubframeLoader::loadMediaPlayerProxyPlugin): Deleted. 41 * loader/SubframeLoader.h: 42 * page/FrameView.cpp: 43 (WebCore::FrameView::updateEmbeddedObject): 44 * page/Settings.cpp: 45 (WebCore::Settings::setVideoPluginProxyEnabled): Deleted. 46 * page/Settings.h: 47 (WebCore::Settings::isVideoPluginProxyEnabled): Deleted. 48 * platform/graphics/GraphicsLayerClient.h: 49 (WebCore::GraphicsLayerClient::mediaLayerMustBeUpdatedOnMainThread): Deleted. 50 * platform/graphics/MediaPlayer.cpp: 51 (WebCore::installedMediaEngines): 52 (WebCore::MediaPlayer::MediaPlayer): 53 (WebCore::MediaPlayer::loadWithNextMediaEngine): 54 (WebCore::NullMediaPlayerPrivate::deliverNotification): Deleted. 55 (WebCore::NullMediaPlayerPrivate::setMediaPlayerProxy): Deleted. 56 (WebCore::NullMediaPlayerPrivate::setControls): Deleted. 57 (WebCore::MediaPlayer::deliverNotification): Deleted. 58 (WebCore::MediaPlayer::setMediaPlayerProxy): Deleted. 59 (WebCore::MediaPlayer::setControls): Deleted. 60 * platform/graphics/MediaPlayer.h: 61 * platform/graphics/MediaPlayerPrivate.h: 62 (WebCore::MediaPlayerPrivateInterface::deliverNotification): Deleted. 63 (WebCore::MediaPlayerPrivateInterface::setMediaPlayerProxy): Deleted. 64 (WebCore::MediaPlayerPrivateInterface::setControls): Deleted. 65 * platform/graphics/ca/GraphicsLayerCA.cpp: 66 (WebCore::GraphicsLayerCA::updateGeometry): 67 (WebCore::GraphicsLayerCA::updateContentsRects): 68 (WebCore::GraphicsLayerCA::mediaLayerMustBeUpdatedOnMainThread): Deleted. 69 * platform/graphics/ca/GraphicsLayerCA.h: 70 * rendering/RenderEmbeddedObject.cpp: 71 (WebCore::RenderEmbeddedObject::canHaveChildren): 72 * rendering/RenderLayerBacking.cpp: 73 (WebCore::RenderLayerBacking::mediaLayerMustBeUpdatedOnMainThread): Deleted. 74 * rendering/RenderLayerBacking.h: 75 * rendering/RenderLayerCompositor.cpp: 76 (WebCore::RenderLayerCompositor::requiresCompositingForVideo): 77 1 78 2014-04-30 Simon Fraser <simon.fraser@apple.com> 2 79 -
trunk/Source/WebCore/Configurations/FeatureDefines.xcconfig
r167958 r168079 161 161 ENABLE_PDFKIT_PLUGIN = $(ENABLE_PDFKIT_PLUGIN_$(PLATFORM_NAME)); 162 162 ENABLE_PDFKIT_PLUGIN_macosx = ENABLE_PDFKIT_PLUGIN; 163 ENABLE_PLUGIN_PROXY_FOR_VIDEO = $(ENABLE_PLUGIN_PROXY_FOR_VIDEO_$(PLATFORM_NAME));164 ENABLE_PLUGIN_PROXY_FOR_VIDEO_iphoneos = ENABLE_PLUGIN_PROXY_FOR_VIDEO;165 ENABLE_PLUGIN_PROXY_FOR_VIDEO_iphonesimulator = $(ENABLE_PLUGIN_PROXY_FOR_VIDEO_iphoneos);166 163 ENABLE_PROGRESS_ELEMENT = ENABLE_PROGRESS_ELEMENT; 167 164 ENABLE_PROMISES = ENABLE_PROMISES; … … 242 239 ENABLE_LLINT_C_LOOP = ; 243 240 244 FEATURE_DEFINES = $(ENABLE_3D_RENDERING) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_AVF_CAPTIONS) $(ENABLE_BLOB) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_EXCLUSIONS) $(ENABLE_CSS_FILTERS) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS_STICKY_POSITION) $(ENABLE_CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED) $(ENABLE_CSS3_CONDITIONAL_RULES) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS3_TEXT_LINE_BREAK) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ENCRYPTED_MEDIA_V2) $(ENABLE_FILTERS) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING) $(ENABLE_HIGH_DPI_CANVAS) $(ENABLE_ICONDATABASE) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_SPEECH) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(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_INSPECTOR) $(ENABLE_IOS_AIRPLAY) $(ENABLE_IOS_TEXT_AUTOSIZING) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LEGACY_WEB_AUDIO) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MATHML) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAGE_VISIBILITY_API) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_P LUGIN_PROXY_FOR_VIDEO) $(ENABLE_PROGRESS_ELEMENT) $(ENABLE_PROMISES) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_SCRIPTED_SPEECH) $(ENABLE_SHARED_WORKERS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SQL_DATABASE) $(ENABLE_SUBPIXEL_LAYOUT) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEMPLATE_ELEMENT) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_DATACUE_VALUE) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEBGL) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBVTT_REGIONS) $(ENABLE_XHR_TIMEOUT) $(ENABLE_XSLT) $(ENABLE_FTL_JIT) $(ENABLE_LLINT_C_LOOP) $(FEATURE_DEFINES_$(PLATFORM_NAME));241 FEATURE_DEFINES = $(ENABLE_3D_RENDERING) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_AVF_CAPTIONS) $(ENABLE_BLOB) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_EXCLUSIONS) $(ENABLE_CSS_FILTERS) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS_STICKY_POSITION) $(ENABLE_CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED) $(ENABLE_CSS3_CONDITIONAL_RULES) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS3_TEXT_LINE_BREAK) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ENCRYPTED_MEDIA_V2) $(ENABLE_FILTERS) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING) $(ENABLE_HIGH_DPI_CANVAS) $(ENABLE_ICONDATABASE) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_SPEECH) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(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_INSPECTOR) $(ENABLE_IOS_AIRPLAY) $(ENABLE_IOS_TEXT_AUTOSIZING) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LEGACY_WEB_AUDIO) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MATHML) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAGE_VISIBILITY_API) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_PROGRESS_ELEMENT) $(ENABLE_PROMISES) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_SCRIPTED_SPEECH) $(ENABLE_SHARED_WORKERS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SQL_DATABASE) $(ENABLE_SUBPIXEL_LAYOUT) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEMPLATE_ELEMENT) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_DATACUE_VALUE) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEBGL) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBVTT_REGIONS) $(ENABLE_XHR_TIMEOUT) $(ENABLE_XSLT) $(ENABLE_FTL_JIT) $(ENABLE_LLINT_C_LOOP) $(FEATURE_DEFINES_$(PLATFORM_NAME)); -
trunk/Source/WebCore/WebCore.exp.in
r168075 r168079 3198 3198 #endif 3199 3199 3200 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)3201 __ZN7WebCore16HTMLMediaElement19deliverNotificationE32MediaPlayerProxyNotificationType3202 __ZN7WebCore16HTMLMediaElement19setMediaPlayerProxyEP19WebMediaPlayerProxy3203 __ZN7WebCore8Settings24gVideoPluginProxyEnabledE3204 __ZN7WebCore8Settings26setVideoPluginProxyEnabledEb3205 __ZN7WebCore9HTMLNames8audioTagE3206 #endif3207 3208 3200 #if USE(PROTECTION_SPACE_AUTH_CALLBACK) 3209 3201 __ZN7WebCore3macERKNS_15ProtectionSpaceE -
trunk/Source/WebCore/css/StyleResolver.cpp
r167937 r168079 158 158 #endif 159 159 160 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)161 #include "HTMLAudioElement.h"162 #endif163 164 160 #if ENABLE(VIDEO_TRACK) 165 161 #include "WebVTTElement.h" 166 #endif167 168 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)169 #include "HTMLMediaElement.h"170 162 #endif 171 163 … … 644 636 if (element->hasTagName(iframeTag) || element->hasTagName(frameTag) || element->hasTagName(embedTag) || element->hasTagName(objectTag) || element->hasTagName(appletTag) || element->hasTagName(canvasTag)) 645 637 return false; 646 647 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)648 // With proxying, the media elements are backed by a RenderEmbeddedObject.649 if ((element->hasTagName(videoTag) || element->hasTagName(audioTag)) && toHTMLMediaElement(element)->shouldUseVideoPluginProxy())650 return false;651 #endif652 638 653 639 if (elementHasDirectionAuto(element)) -
trunk/Source/WebCore/dom/DOMImplementation.cpp
r167598 r168079 332 332 333 333 #if ENABLE(VIDEO) 334 335 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) 336 if (!frame || !frame->settings().isVideoPluginProxyEnabled()) 337 #endif 338 { 339 // Check to see if the type can be played by our MediaPlayer, if so create a MediaDocument 340 // Key system is not applicable here. 341 DOMImplementationSupportsTypeClient client(frame && frame->settings().needsSiteSpecificQuirks(), url.host()); 342 MediaEngineSupportParameters parameters; 343 parameters.type = type; 344 parameters.url = url; 345 if (MediaPlayer::supportsType(parameters, &client)) 346 return MediaDocument::create(frame, url); 347 } 334 // Check to see if the type can be played by our MediaPlayer, if so create a MediaDocument 335 // Key system is not applicable here. 336 DOMImplementationSupportsTypeClient client(frame && frame->settings().needsSiteSpecificQuirks(), url.host()); 337 MediaEngineSupportParameters parameters; 338 parameters.type = type; 339 parameters.url = url; 340 if (MediaPlayer::supportsType(parameters, &client)) 341 return MediaDocument::create(frame, url); 348 342 #endif 349 343 -
trunk/Source/WebCore/editing/TextIterator.cpp
r167210 r168079 250 250 return false; 251 251 252 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)253 if (renderer->isImage() || renderer->isMedia())254 return true;255 if (renderer->isWidget()) {256 if (renderer->node() && renderer->node()->isElementNode()) {257 Element* element = toElement(renderer->node());258 if (element->hasTagName(videoTag) || !element->hasTagName(audioTag))259 return false; // See <rdar://problem/6893793>.260 }261 return true;262 }263 #else264 252 if (renderer->isImage() || renderer->isWidget() || renderer->isMedia()) 265 253 return true; 266 #endif267 254 268 255 if (renderer->node() && renderer->node()->isElementNode()) { -
trunk/Source/WebCore/html/HTMLMediaElement.cpp
r168075 r168079 84 84 #include <wtf/text/CString.h> 85 85 86 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)87 #include "RenderEmbeddedObject.h"88 #include "SubframeLoader.h"89 #include "Widget.h"90 #endif91 92 86 #if ENABLE(VIDEO_TRACK) 93 87 #include "AudioTrackList.h" … … 256 250 257 251 HTMLMediaElement::HTMLMediaElement(const QualifiedName& tagName, Document& document, bool createdByParser) 258 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)259 : HTMLFrameOwnerElement(tagName, document)260 #else261 252 : HTMLElement(tagName, document) 262 #endif263 253 , ActiveDOMObject(&document) 264 254 , m_loadTimer(this, &HTMLMediaElement::loadTimerFired) … … 283 273 #if PLATFORM(IOS) 284 274 , m_videoFullscreenGravity(MediaPlayer::VideoGravityResizeAspect) 285 #endif286 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)287 , m_proxyWidget(0)288 275 #endif 289 276 , m_preload(MediaPlayer::Auto) … … 319 306 , m_closedCaptionsVisible(false) 320 307 , m_webkitLegacyClosedCaptionOverride(false) 321 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)322 , m_needWidgetUpdate(false)323 #endif324 308 , m_completelyLoaded(false) 325 309 , m_havePreparedToPlay(false) … … 656 640 HTMLElement::finishParsingChildren(); 657 641 m_parsingInProgress = false; 658 659 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)660 if (shouldUseVideoPluginProxy()) {661 document().updateStyleIfNeeded();662 createMediaPlayerProxy();663 }664 #endif665 642 666 643 #if ENABLE(VIDEO_TRACK) … … 675 652 bool HTMLMediaElement::rendererIsNeeded(const RenderStyle& style) 676 653 { 677 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)678 if (shouldUseVideoPluginProxy())679 return true;680 #endif681 654 return controls() && HTMLElement::rendererIsNeeded(style); 682 655 } … … 684 657 RenderPtr<RenderElement> HTMLMediaElement::createElementRenderer(PassRef<RenderStyle> style) 685 658 { 686 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)687 if (shouldUseVideoPluginProxy()) {688 // Setup the renderer if we already have a proxy widget.689 auto mediaRenderer = createRenderer<RenderEmbeddedObject>(*this, std::move(style));690 if (m_proxyWidget) {691 mediaRenderer->setWidget(m_proxyWidget);692 693 if (Frame* frame = document().frame())694 frame->loader().client().showMediaPlayerProxyPlugin(m_proxyWidget.get());695 }696 return std::move(mediaRenderer);697 }698 #endif699 659 return createRenderer<RenderMedia>(*this, std::move(style)); 700 660 } … … 773 733 { 774 734 ASSERT(!renderer()); 775 776 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)777 if (shouldUseVideoPluginProxy())778 m_needWidgetUpdate = true;779 #endif780 735 } 781 736 … … 784 739 if (renderer()) 785 740 renderer()->updateFromElement(); 786 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)787 else if (m_proxyWidget) {788 if (Frame* frame = document().frame())789 frame->loader().client().hideMediaPlayerProxyPlugin(m_proxyWidget.get());790 }791 #endif792 741 } 793 742 … … 803 752 804 753 if ((actionType & LoadMediaResource) && !(m_pendingActionFlags & LoadMediaResource)) { 805 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)806 if (shouldUseVideoPluginProxy())807 createMediaPlayerProxy();808 #endif809 810 754 prepareForLoad(); 811 755 setFlags(m_pendingActionFlags, LoadMediaResource); … … 982 926 #endif 983 927 984 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)985 if (shouldUseVideoPluginProxy()) {986 if (m_player)987 m_player->cancelLoad();988 else989 createMediaPlayerProxy();990 } else991 #endif992 928 createMediaPlayer(); 993 929 … … 1196 1132 } 1197 1133 1198 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) 1199 if (!shouldUseVideoPluginProxy()) 1200 #endif 1201 // Recreate the media player for the new url 1202 createMediaPlayer(); 1134 // Recreate the media player for the new url 1135 createMediaPlayer(); 1203 1136 1204 1137 m_loadState = LoadingFromSourceElement; … … 4506 4439 bool playerPaused = m_player->paused(); 4507 4440 4508 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) 4509 if (shouldUseVideoPluginProxy()) { 4510 if (shouldBePlaying && !m_requestingPlay && !m_player->readyForPlayback()) 4511 shouldBePlaying = false; 4512 else if (!shouldBePlaying && m_requestingPlay && m_player->readyForPlayback()) 4513 shouldBePlaying = true; 4514 } 4515 #endif 4516 4517 LOG(Media, "HTMLMediaElement::updatePlayState - shouldBePlaying = %s, playerPaused = %s", 4441 LOG(Media, "HTMLMediaElement::updatePlayState - shouldBePlaying = %s, playerPaused = %s", 4518 4442 boolString(shouldBePlaying), boolString(playerPaused)); 4519 4443 … … 4656 4580 #endif 4657 4581 4658 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)4659 if (!shouldUseVideoPluginProxy())4660 #endif4661 4582 m_player.clear(); 4662 4583 … … 4781 4702 void HTMLMediaElement::defaultEventHandler(Event* event) 4782 4703 { 4783 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)4784 if (shouldUseVideoPluginProxy()) {4785 auto renderer = this->renderer();4786 if (!renderer || !renderer->isWidget())4787 return;4788 4789 if (Widget* widget = toRenderWidget(renderer)->widget())4790 widget->handleEvent(event);4791 return;4792 }4793 #endif4794 4704 HTMLElement::defaultEventHandler(event); 4795 4705 } … … 4798 4708 bool HTMLMediaElement::willRespondToMouseClickEvents() 4799 4709 { 4800 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)4801 if (shouldUseVideoPluginProxy())4802 return true;4803 #endif4804 4710 return HTMLElement::willRespondToMouseClickEvents(); 4805 4711 } … … 4818 4724 } 4819 4725 #endif // ENABLE(VIDEO_TRACK) 4820 4821 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)4822 4823 void HTMLMediaElement::ensureMediaPlayer()4824 {4825 if (!m_player)4826 createMediaPlayer();4827 }4828 4829 void HTMLMediaElement::deliverNotification(MediaPlayerProxyNotificationType notification)4830 {4831 if (notification == MediaPlayerNotificationPlayPauseButtonPressed) {4832 #if PLATFORM(IOS)4833 removeBehaviorsRestrictionsAfterFirstUserGesture();4834 #endif4835 togglePlayState();4836 return;4837 }4838 #if PLATFORM(IOS)4839 else if (notification == MediaPlayerRequestBeginPlayback) {4840 if (m_paused)4841 playInternal();4842 } else if (notification == MediaPlayerRequestPausePlayback) {4843 if (!m_paused)4844 pauseInternal();4845 } else if (notification == MediaPlayerNotificationLoseFocus) {4846 if (!m_paused)4847 pauseInternal();4848 } else if (notification == MediaPlayerNotificationDidPlayToTheEnd) {4849 if (!m_paused && !loop())4850 pauseInternal();4851 } else if (notification == MediaPlayerNotificationMediaValidated || notification == MediaPlayerNotificationReadyForInspection) {4852 // The media player sometimes reports an apparently spurious error just as we request playback, and then follows almost4853 // immediately with ReadyForInspection and/or MediaValidated. The spec doesn't deal with a "fatal" error followed4854 // by ressurection, so if we have set an error clear it now.4855 m_error = 0;4856 } else if (notification == MediaPlayerNotificationEnteredFullscreen) {4857 scheduleEvent(eventNames().webkitbeginfullscreenEvent);4858 m_isFullscreen = true;4859 } else if (notification == MediaPlayerNotificationExitedFullscreen) {4860 scheduleEvent(eventNames().webkitendfullscreenEvent);4861 m_isFullscreen = false;4862 }4863 #endif4864 4865 if (m_player)4866 m_player->deliverNotification(notification);4867 4868 #if PLATFORM(IOS)4869 if (notification == MediaPlayerNotificationMediaValidated) {4870 // If the element is supposed to autoplay and we allow it, tell the media engine to begin loading4871 // data now. Playback will begin automatically when enough data has loaded.4872 if (m_autoplaying && m_paused && autoplay())4873 prepareToPlay();4874 } else if (notification == MediaPlayerNotificationEnteredFullscreen)4875 didBecomeFullscreenElement();4876 else if (notification == MediaPlayerNotificationExitedFullscreen)4877 willStopBeingFullscreenElement();4878 #endif4879 }4880 4881 void HTMLMediaElement::setMediaPlayerProxy(WebMediaPlayerProxy* proxy)4882 {4883 ensureMediaPlayer();4884 m_player->setMediaPlayerProxy(proxy);4885 }4886 4887 void HTMLMediaElement::getPluginProxyParams(URL& url, Vector<String>& names, Vector<String>& values)4888 {4889 Ref<HTMLMediaElement> protect(*this); // selectNextSourceChild may fire 'beforeload', which can make arbitrary DOM mutations.4890 4891 Frame* frame = document().frame();4892 4893 if (isVideo()) {4894 HTMLVideoElement* video = toHTMLVideoElement(this);4895 URL posterURL = video->posterImageURL();4896 if (!posterURL.isEmpty() && frame && frame->loader().willLoadMediaElementURL(posterURL)) {4897 names.append(ASCIILiteral("_media_element_poster_"));4898 values.append(posterURL.string());4899 }4900 }4901 4902 if (controls()) {4903 names.append(ASCIILiteral("_media_element_controls_"));4904 values.append(ASCIILiteral("true"));4905 }4906 4907 #if PLATFORM(IOS)4908 // Don't pass the URL to the plug-in as part of the initialization arguments, we always pass the URL4909 // in loadResource and calling selectNextSourceChild here can mess up the processing of <source>4910 // elements later.4911 UNUSED_PARAM(url);4912 #else4913 url = getNonEmptyURLAttribute(srcAttr);4914 if (!isSafeToLoadURL(url, Complain))4915 url = selectNextSourceChild(0, 0, DoNothing);4916 4917 m_currentSrc = url;4918 if (url.isValid() && frame && frame->loader().willLoadMediaElementURL(url)) {4919 names.append(ASCIILiteral("_media_element_src_"));4920 values.append(m_currentSrc.string());4921 }4922 #endif4923 4924 #if PLATFORM(IOS)4925 Settings* settings = document().settings();4926 if (settings && settings->mediaPlaybackAllowsInline() && (applicationIsDumpRenderTree() || fastHasAttribute(webkit_playsinlineAttr))) {4927 names.append(ASCIILiteral("_media_element_allow_inline_"));4928 values.append(ASCIILiteral("true"));4929 }4930 4931 String airplay = fastGetAttribute(webkitairplayAttr);4932 if (equalIgnoringCase(airplay, "allow") || equalIgnoringCase(airplay, "deny")) {4933 names.append(ASCIILiteral("_media_element_airplay_"));4934 values.append(airplay.lower());4935 }4936 4937 if (fastHasAttribute(data_youtube_idAttr)) {4938 names.append(ASCIILiteral("_media_element_youtube_video_id_"));4939 values.append(fastGetAttribute(data_youtube_idAttr));4940 }4941 4942 String interfaceName = settings ? settings->networkInterfaceName() : String();4943 if (!interfaceName.isEmpty()) {4944 names.append(ASCIILiteral("_media_element_network_interface_name"));4945 values.append(interfaceName);4946 }4947 4948 if (fastHasAttribute(titleAttr)) {4949 names.append(titleAttr.toString());4950 values.append(fastGetAttribute(titleAttr));4951 }4952 #endif4953 4954 #if ENABLE(IOS_AIRPLAY)4955 if (isVideo() && fastHasAttribute(webkitwirelessvideoplaybackdisabledAttr)) {4956 names.append(ASCIILiteral("_media_element_wireless_video_playback_disabled"));4957 values.append(ASCIILiteral("true"));4958 }4959 #endif4960 }4961 4962 void HTMLMediaElement::createMediaPlayerProxy()4963 {4964 ensureMediaPlayer();4965 4966 if (m_proxyWidget || (inDocument() && !m_needWidgetUpdate))4967 return;4968 4969 Frame* frame = document().frame();4970 if (!frame)4971 return;4972 4973 LOG(Media, "HTMLMediaElement::createMediaPlayerProxy");4974 4975 URL url;4976 Vector<String> paramNames;4977 Vector<String> paramValues;4978 4979 getPluginProxyParams(url, paramNames, paramValues);4980 4981 // Hang onto the proxy widget so it won't be destroyed if the plug-in is set to4982 // display:none4983 m_proxyWidget = frame->loader().subframeLoader().loadMediaPlayerProxyPlugin(*this, url, paramNames, paramValues);4984 if (m_proxyWidget)4985 m_needWidgetUpdate = false;4986 }4987 4988 void HTMLMediaElement::updateWidget(PluginCreationOption)4989 {4990 setNeedWidgetUpdate(false);4991 4992 // FIXME: What if document().frame() is 0?4993 4994 URL url;4995 Vector<String> paramNames;4996 Vector<String> paramValues;4997 4998 getPluginProxyParams(url, paramNames, paramValues);4999 SubframeLoader& loader = document().frame()->loader().subframeLoader();5000 loader.loadMediaPlayerProxyPlugin(*this, url, paramNames, paramValues);5001 }5002 5003 #endif // ENABLE(PLUGIN_PROXY_FOR_VIDEO)5004 4726 5005 4727 #if ENABLE(IOS_AIRPLAY) … … 5414 5136 void HTMLMediaElement::configureMediaControls() 5415 5137 { 5416 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)5417 if (shouldUseVideoPluginProxy()) {5418 if (m_player)5419 m_player->setControls(controls());5420 5421 if (!hasMediaControls() && inDocument())5422 createMediaControls();5423 return;5424 }5425 #endif5426 5427 5138 #if ENABLE(MEDIA_CONTROLS_SCRIPT) 5428 5139 if (!controls() || !inDocument()) … … 5940 5651 } 5941 5652 5942 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)5943 bool HTMLMediaElement::shouldUseVideoPluginProxy() const5944 {5945 return document().settings() && document().settings()->isVideoPluginProxyEnabled();5946 }5947 #endif5948 5949 5653 #if ENABLE(MEDIA_SOURCE) 5950 5654 RefPtr<VideoPlaybackQuality> HTMLMediaElement::getVideoPlaybackQuality() … … 6024 5728 { 6025 5729 LOG(Media, "HTMLMediaElement::didAddUserAgentShadowRoot"); 6026 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)6027 // JavaScript controls are not enabled with the video plugin proxy.6028 if (shouldUseVideoPluginProxy())6029 return;6030 #endif6031 5730 Page* page = document().page(); 6032 5731 if (!page) -
trunk/Source/WebCore/html/HTMLMediaElement.h
r168075 r168079 36 36 #include "MediaPlayer.h" 37 37 38 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)39 #include "HTMLFrameOwnerElement.h"40 #include "HTMLPlugInImageElement.h"41 #include "MediaPlayerProxy.h"42 #endif43 44 38 #if ENABLE(VIDEO_TRACK) 45 39 #include "AudioTrack.h" … … 74 68 class PageActivityAssertionToken; 75 69 class TimeRanges; 76 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)77 class Widget;78 #endif79 70 #if ENABLE(ENCRYPTED_MEDIA_V2) 80 71 class MediaKeys; … … 99 90 100 91 class HTMLMediaElement 101 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)102 : public HTMLFrameOwnerElement103 #else104 92 : public HTMLElement 105 #endif106 93 , private MediaPlayerClient, public MediaPlayerSupportsTypeClient, private MediaCanStartListener, public ActiveDOMObject, public MediaControllerInterface , public MediaSessionClient 107 94 #if ENABLE(VIDEO_TRACK) … … 368 355 #endif 369 356 370 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)371 void ensureMediaPlayer();372 void setNeedWidgetUpdate(bool needWidgetUpdate) { m_needWidgetUpdate = needWidgetUpdate; }373 void deliverNotification(MediaPlayerProxyNotificationType notification);374 void setMediaPlayerProxy(WebMediaPlayerProxy* proxy);375 void getPluginProxyParams(URL& url, Vector<String>& names, Vector<String>& values);376 void createMediaPlayerProxy();377 void updateWidget(PluginCreationOption);378 #endif379 380 357 #if ENABLE(IOS_AIRPLAY) 381 358 void webkitShowPlaybackTargetPicker(); … … 445 422 446 423 void enteredOrExitedFullscreen() { configureMediaControls(); } 447 448 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)449 bool shouldUseVideoPluginProxy() const;450 #endif451 424 452 425 unsigned long long fileSize() const; … … 768 741 769 742 OwnPtr<MediaPlayer> m_player; 770 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)771 RefPtr<Widget> m_proxyWidget;772 #endif773 743 774 744 MediaPlayer::Preload m_preload; … … 830 800 bool m_closedCaptionsVisible : 1; 831 801 bool m_webkitLegacyClosedCaptionOverride : 1; 832 833 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)834 bool m_needWidgetUpdate : 1;835 #endif836 837 802 bool m_completelyLoaded : 1; 838 803 bool m_havePreparedToPlay : 1; -
trunk/Source/WebCore/html/HTMLMediaSession.cpp
r167767 r168079 182 182 return; 183 183 184 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)185 if (element.shouldUseVideoPluginProxy()) {186 MediaPlayer* player = element.player();187 if (!player)188 return;189 190 player->showPlaybackTargetPicker();191 return;192 }193 #endif194 195 184 #if PLATFORM(IOS) 196 185 element.document().frame()->page()->chrome().client().showPlaybackTargetPicker(element.hasVideo()); … … 200 189 bool HTMLMediaSession::hasWirelessPlaybackTargets(const HTMLMediaElement& element) const 201 190 { 202 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)203 if (element.shouldUseVideoPluginProxy()) {204 MediaPlayer* player = element.player();205 if (!player)206 return false;207 208 return player->hasWirelessPlaybackTargets();209 }210 #else211 191 UNUSED_PARAM(element); 212 #endif213 192 214 193 bool hasTargets = MediaSessionManager::sharedManager().hasWirelessTargetsAvailable(); … … 267 246 { 268 247 LOG(Media, "HTMLMediaSession::setHasPlaybackTargetAvailabilityListeners - hasListeners %s", hasListeners ? "TRUE" : "FALSE"); 269 270 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)271 if (element.shouldUseVideoPluginProxy()) {272 MediaPlayer* player = element.player();273 if (!player)274 return;275 276 player->setHasPlaybackTargetAvailabilityListeners(hasListeners);277 return;278 }279 #else280 248 UNUSED_PARAM(element); 281 #endif282 249 283 250 if (hasListeners) -
trunk/Source/WebCore/html/HTMLVideoElement.cpp
r166491 r168079 70 70 RenderPtr<RenderElement> HTMLVideoElement::createElementRenderer(PassRef<RenderStyle> style) 71 71 { 72 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)73 if (shouldUseVideoPluginProxy())74 return HTMLMediaElement::createElementRenderer(std::move(style));75 #endif76 72 return createRenderer<RenderVideo>(*this, std::move(style)); 77 73 } … … 81 77 HTMLMediaElement::didAttachRenderers(); 82 78 83 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) 84 if (!shouldUseVideoPluginProxy()) { 85 #endif 86 updateDisplayState(); 87 if (shouldDisplayPosterImage()) { 88 if (!m_imageLoader) 89 m_imageLoader = std::make_unique<HTMLImageLoader>(*this); 90 m_imageLoader->updateFromElement(); 91 if (renderer()) 92 toRenderImage(renderer())->imageResource().setCachedImage(m_imageLoader->image()); 93 } 94 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) 95 } 96 #endif 79 updateDisplayState(); 80 if (shouldDisplayPosterImage()) { 81 if (!m_imageLoader) 82 m_imageLoader = std::make_unique<HTMLImageLoader>(*this); 83 m_imageLoader->updateFromElement(); 84 if (renderer()) 85 toRenderImage(renderer())->imageResource().setCachedImage(m_imageLoader->image()); 86 } 97 87 } 98 88 … … 120 110 HTMLMediaElement::setDisplayMode(Unknown); 121 111 updateDisplayState(); 122 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) 123 if (shouldUseVideoPluginProxy()) 124 return; 125 #endif 112 126 113 if (shouldDisplayPosterImage()) { 127 114 if (!m_imageLoader) … … 231 218 } 232 219 233 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)234 if (shouldUseVideoPluginProxy())235 return;236 #endif237 220 if (renderer() && displayMode() != oldMode) 238 221 renderer()->updateFromElement(); -
trunk/Source/WebCore/html/shadow/MediaControlElements.cpp
r167983 r168079 56 56 #endif 57 57 58 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)59 #include "RenderWidget.h"60 #endif61 62 58 #if ENABLE(WEBVTT_REGIONS) 63 59 #include "VTTRegionList.h" … … 1442 1438 videoBox = m_textTrackRepresentation->bounds(); 1443 1439 else { 1444 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)1445 if (!mediaElement->renderer() || !mediaElement->renderer()->isWidget())1446 return;1447 videoBox = pixelSnappedIntRect(toRenderWidget(mediaElement->renderer())->contentBoxRect());1448 #else1449 1440 if (!mediaElement->renderer() || !mediaElement->renderer()->isVideo()) 1450 1441 return; 1451 1442 videoBox = toRenderVideo(*mediaElement->renderer()).videoBox(); 1452 #endif1453 1443 } 1454 1444 -
trunk/Source/WebCore/loader/EmptyClients.cpp
r161744 r168079 159 159 } 160 160 161 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)162 PassRefPtr<Widget> EmptyFrameLoaderClient::createMediaPlayerProxyPlugin(const IntSize&, HTMLMediaElement*, const URL&, const Vector<String>&, const Vector<String>&, const String&)163 {164 return 0;165 }166 #endif167 168 161 PassRefPtr<FrameNetworkingContext> EmptyFrameLoaderClient::createNetworkingContext() 169 162 { -
trunk/Source/WebCore/loader/EmptyClients.h
r166965 r168079 369 369 virtual void recreatePlugin(Widget*) override; 370 370 virtual PassRefPtr<Widget> createJavaAppletWidget(const IntSize&, HTMLAppletElement*, const URL&, const Vector<String>&, const Vector<String>&) override; 371 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)372 virtual PassRefPtr<Widget> createMediaPlayerProxyPlugin(const IntSize&, HTMLMediaElement*, const URL&, const Vector<String>&, const Vector<String>&, const String&) override;373 virtual void hideMediaPlayerProxyPlugin(Widget*) override { }374 virtual void showMediaPlayerProxyPlugin(Widget*) override { }375 #endif376 371 377 372 virtual ObjectContentType objectContentType(const URL&, const String&, bool) override { return ObjectContentType(); } -
trunk/Source/WebCore/loader/FrameLoaderClient.h
r167598 r168079 73 73 class HTMLFormElement; 74 74 class HTMLFrameOwnerElement; 75 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)76 class HTMLMediaElement;77 #endif78 75 class HTMLPlugInElement; 79 76 class IntSize; … … 275 272 276 273 virtual void dispatchDidFailToStartPlugin(const PluginView*) const { } 277 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)278 virtual PassRefPtr<Widget> createMediaPlayerProxyPlugin(const IntSize&, HTMLMediaElement*, const URL&, const Vector<String>&, const Vector<String>&, const String&) = 0;279 virtual void hideMediaPlayerProxyPlugin(Widget*) = 0;280 virtual void showMediaPlayerProxyPlugin(Widget*) = 0;281 #endif282 274 283 275 virtual ObjectContentType objectContentType(const URL&, const String& mimeType, bool shouldPreferPlugInsForImages) = 0; -
trunk/Source/WebCore/loader/SubframeLoader.cpp
r167856 r168079 57 57 #include "Settings.h" 58 58 59 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)60 #include "HTMLMediaElement.h"61 #include "RenderVideo.h"62 #endif63 64 59 namespace WebCore { 65 60 … … 233 228 return loadOrRedirectSubframe(ownerElement, completedURL, frameName, LockHistory::Yes, LockBackForwardList::Yes); 234 229 } 235 236 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)237 PassRefPtr<Widget> SubframeLoader::loadMediaPlayerProxyPlugin(HTMLMediaElement& mediaElement, const URL& url, const Vector<String>& paramNames, const Vector<String>& paramValues)238 {239 ASSERT(mediaElement.hasTagName(videoTag) || isHTMLAudioElement(mediaElement));240 241 URL completedURL;242 if (!url.isEmpty())243 completedURL = completeURL(url);244 245 if (!m_frame.document()->securityOrigin()->canDisplay(completedURL)) {246 FrameLoader::reportLocalLoadFailed(&m_frame, completedURL.string());247 return nullptr;248 }249 250 if (!m_frame.document()->contentSecurityPolicy()->allowMediaFromSource(completedURL))251 return nullptr;252 253 RenderWidget* renderer = toRenderWidget(mediaElement.renderer());254 IntSize size;255 256 if (renderer)257 size = roundedIntSize(LayoutSize(renderer->contentWidth(), renderer->contentHeight()));258 else if (mediaElement.isVideo())259 size = RenderVideo::defaultSize();260 261 if (!m_frame.loader().mixedContentChecker().canRunInsecureContent(m_frame.document()->securityOrigin(), completedURL))262 return nullptr;263 264 RefPtr<Widget> widget = m_frame.loader().client().createMediaPlayerProxyPlugin(size, &mediaElement, completedURL, paramNames, paramValues, "application/x-media-element-proxy-plugin");265 266 if (widget && renderer) {267 renderer->setWidget(widget);268 renderer->frameOwnerElement().setNeedsStyleRecalc(SyntheticStyleChange);269 }270 m_containsPlugins = true;271 272 return widget ? widget.release() : nullptr;273 }274 #endif // ENABLE(PLUGIN_PROXY_FOR_VIDEO)275 230 276 231 PassRefPtr<Widget> SubframeLoader::createJavaAppletWidget(const IntSize& size, HTMLAppletElement& element, const Vector<String>& paramNames, const Vector<String>& paramValues) … … 458 413 renderer->setWidget(widget); 459 414 m_containsPlugins = true; 460 461 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)462 pluginElement.setNeedsStyleRecalc(SyntheticStyleChange);463 #endif464 415 return true; 465 416 } -
trunk/Source/WebCore/loader/SubframeLoader.h
r166684 r168079 64 64 const String& serviceType, const Vector<String>& paramNames, const Vector<String>& paramValues); 65 65 66 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)67 PassRefPtr<Widget> loadMediaPlayerProxyPlugin(HTMLMediaElement&, const URL&, const Vector<String>& paramNames, const Vector<String>& paramValues);68 #endif69 70 66 PassRefPtr<Widget> createJavaAppletWidget(const IntSize&, HTMLAppletElement&, const Vector<String>& paramNames, const Vector<String>& paramValues); 71 67 -
trunk/Source/WebCore/page/FrameView.cpp
r167969 r168079 105 105 #endif 106 106 107 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)108 #include "HTMLMediaElement.h"109 #endif110 111 107 namespace WebCore { 112 108 … … 2665 2661 if (pluginElement.needsWidgetUpdate()) 2666 2662 pluginElement.updateWidget(CreateAnyWidgetType); 2667 } 2668 2669 // FIXME: It is not clear that Media elements need or want this updateWidget() call. 2670 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) 2671 else if (element.isMediaElement()) 2672 toHTMLMediaElement(element).updateWidget(CreateAnyWidgetType); 2673 #endif 2674 else 2663 } else 2675 2664 ASSERT_NOT_REACHED(); 2676 2665 -
trunk/Source/WebCore/page/Settings.cpp
r167767 r168079 83 83 #endif 84 84 85 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)86 bool Settings::gVideoPluginProxyEnabled = true;87 #endif88 89 85 bool Settings::gMockScrollbarsEnabled = false; 90 86 bool Settings::gUsesOverlayScrollbars = false; … … 601 597 #endif 602 598 603 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)604 void Settings::setVideoPluginProxyEnabled(bool enabled)605 {606 if (gVideoPluginProxyEnabled == enabled)607 return;608 609 gVideoPluginProxyEnabled = enabled;610 HTMLMediaElement::resetMediaEngines();611 }612 #endif613 614 599 void Settings::setScrollingPerformanceLoggingEnabled(bool enabled) 615 600 { -
trunk/Source/WebCore/page/Settings.h
r167767 r168079 251 251 static void setLowPowerVideoAudioBufferSizeEnabled(bool); 252 252 253 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)254 static void setVideoPluginProxyEnabled(bool flag);255 static bool isVideoPluginProxyEnabled() { return gVideoPluginProxyEnabled; }256 #endif257 258 253 #if PLATFORM(IOS) 259 254 static void setAudioSessionCategoryOverride(unsigned); … … 361 356 362 357 static bool gLowPowerVideoAudioBufferSizeEnabled; 363 364 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)365 static bool gVideoPluginProxyEnabled;366 #endif367 358 }; 368 359 -
trunk/Source/WebCore/platform/graphics/GraphicsLayerClient.h
r167138 r168079 100 100 virtual bool shouldTemporarilyRetainTileCohorts(const GraphicsLayer*) const { return true; } 101 101 102 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)103 virtual bool mediaLayerMustBeUpdatedOnMainThread() const { return false; }104 #endif105 106 102 #ifndef NDEBUG 107 103 // RenderLayerBacking overrides this to verify that it is not -
trunk/Source/WebCore/platform/graphics/MediaPlayer.cpp
r167734 r168079 145 145 virtual void setPoster(const String&) { } 146 146 147 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)148 virtual void deliverNotification(MediaPlayerProxyNotificationType) { }149 virtual void setMediaPlayerProxy(WebMediaPlayerProxy*) { }150 virtual void setControls(bool) { }151 #endif152 153 147 virtual bool hasSingleSecurityOrigin() const { return true; } 154 148 … … 213 207 214 208 enginesQueried = true; 215 216 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)217 if (Settings::isVideoPluginProxyEnabled())218 MediaPlayerPrivateIOS::registerMediaEngine(addMediaEngine);219 #endif220 209 221 210 #if USE(AVFOUNDATION) … … 341 330 , m_shouldPrepareToRender(false) 342 331 , m_contentMIMETypeWasInferredFromExtension(false) 343 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) 344 , m_playerProxy(0) 345 #endif 346 { 347 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) 348 Vector<MediaPlayerFactory*>& engines = installedMediaEngines(); 349 if (Settings::isVideoPluginProxyEnabled() && !engines.isEmpty()) { 350 m_currentMediaEngine = engines[0]; 351 m_private = engines[0]->constructor(this); 352 if (m_mediaPlayerClient) 353 m_mediaPlayerClient->mediaPlayerEngineUpdated(this); 354 } 355 #endif 332 { 356 333 } 357 334 … … 447 424 if (m_mediaPlayerClient) 448 425 m_mediaPlayerClient->mediaPlayerEngineUpdated(this); 449 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)450 m_private->setMediaPlayerProxy(m_playerProxy);451 #endif452 426 m_private->setPrivateBrowsingMode(m_privateBrowsing); 453 427 m_private->setPreload(m_preload); … … 858 832 } 859 833 860 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) 861 void MediaPlayer::deliverNotification(MediaPlayerProxyNotificationType notification) 862 { 863 m_private->deliverNotification(notification); 864 } 865 866 void MediaPlayer::setMediaPlayerProxy(WebMediaPlayerProxy* proxy) 867 { 868 m_playerProxy = proxy; 869 m_private->setMediaPlayerProxy(proxy); 870 } 871 872 void MediaPlayer::setControls(bool controls) 873 { 874 m_private->setControls(controls); 875 } 876 #endif 877 878 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) || USE(NATIVE_FULLSCREEN_VIDEO) 834 #if USE(NATIVE_FULLSCREEN_VIDEO) 879 835 void MediaPlayer::enterFullscreen() 880 836 { -
trunk/Source/WebCore/platform/graphics/MediaPlayer.h
r167734 r168079 29 29 #if ENABLE(VIDEO) 30 30 #include "GraphicsTypes3D.h" 31 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)32 #include "MediaPlayerProxy.h"33 #endif34 31 35 32 #include "AudioTrackPrivate.h" … … 452 449 void setPoster(const String&); 453 450 454 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) 455 void deliverNotification(MediaPlayerProxyNotificationType notification); 456 void setMediaPlayerProxy(WebMediaPlayerProxy* proxy); 457 void setControls(bool); 458 #endif 459 460 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) || USE(NATIVE_FULLSCREEN_VIDEO) 451 #if USE(NATIVE_FULLSCREEN_VIDEO) 461 452 void enterFullscreen(); 462 453 void exitFullscreen(); … … 612 603 bool m_shouldPrepareToRender; 613 604 bool m_contentMIMETypeWasInferredFromExtension; 614 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)615 WebMediaPlayerProxy* m_playerProxy; // not owned or used, passed to m_private616 #endif617 605 618 606 #if ENABLE(MEDIA_SOURCE) -
trunk/Source/WebCore/platform/graphics/MediaPlayerPrivate.h
r167734 r168079 143 143 virtual void setPoster(const String&) { } 144 144 145 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) 146 virtual void deliverNotification(MediaPlayerProxyNotificationType) { } 147 virtual void setMediaPlayerProxy(WebMediaPlayerProxy*) { } 148 virtual void setControls(bool) { } 149 #endif 150 151 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) || USE(NATIVE_FULLSCREEN_VIDEO) 145 #if USE(NATIVE_FULLSCREEN_VIDEO) 152 146 virtual void enterFullscreen() { } 153 147 virtual void exitFullscreen() { } -
trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
r167535 r168079 1554 1554 FloatRect layerBounds(m_boundsOrigin, m_size); 1555 1555 1556 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)1557 // FIXME: Consider moving the main thread logic into PlatformCALayer.1558 if (mediaLayerMustBeUpdatedOnMainThread() && WebThreadIsCurrent()) {1559 m_structuralLayer->setPositionOnMainThread(layerPosition);1560 m_structuralLayer->setBoundsOnMainThread(layerBounds);1561 m_structuralLayer->setAnchorPointOnMainThread(m_anchorPoint);1562 } else {1563 #endif1564 1556 m_structuralLayer->setPosition(layerPosition); 1565 1557 m_structuralLayer->setBounds(layerBounds); 1566 1558 m_structuralLayer->setAnchorPoint(m_anchorPoint); 1567 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)1568 }1569 #endif1570 1559 1571 1560 if (LayerMap* layerCloneMap = m_structuralLayerClones.get()) { … … 1592 1581 } 1593 1582 1594 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)1595 // FIXME: Consider moving the main thread logic into PlatformCALayer.1596 if (mediaLayerMustBeUpdatedOnMainThread() && WebThreadIsCurrent()) {1597 m_layer->setPositionOnMainThread(adjustedPosition);1598 m_layer->setBoundsOnMainThread(adjustedBounds);1599 m_layer->setAnchorPointOnMainThread(scaledAnchorPoint);1600 } else {1601 #endif1602 1583 m_layer->setPosition(adjustedPosition); 1603 1584 m_layer->setBounds(adjustedBounds); 1604 1585 m_layer->setAnchorPoint(scaledAnchorPoint); 1605 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)1606 }1607 #endif1608 1586 1609 1587 if (LayerMap* layerCloneMap = m_layerClones.get()) { … … 2095 2073 noteSublayersChanged(DontScheduleFlush); 2096 2074 2097 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)2098 // FIXME: Consider moving the main thread logic into PlatformCALayer.2099 if (mediaLayerMustBeUpdatedOnMainThread() && WebThreadIsCurrent()) {2100 m_contentsLayer->setPositionOnMainThread(contentOrigin);2101 m_contentsLayer->setBoundsOnMainThread(contentBounds);2102 } else {2103 #endif2104 2075 m_contentsLayer->setPosition(contentOrigin); 2105 2076 m_contentsLayer->setBounds(contentBounds); 2106 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)2107 }2108 #endif2109 2077 2110 2078 if (m_contentsLayerClones) { … … 3224 3192 } 3225 3193 3226 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)3227 bool GraphicsLayerCA::mediaLayerMustBeUpdatedOnMainThread() const3228 {3229 if (m_contentsLayerPurpose != ContentsLayerForMedia)3230 return false;3231 3232 return m_client && m_client->mediaLayerMustBeUpdatedOnMainThread();3233 }3234 #endif3235 3236 3194 PassRefPtr<PlatformCALayer> GraphicsLayerCA::findOrMakeClone(CloneID cloneID, PlatformCALayer *sourceLayer, LayerMap* clones, CloneLevel cloneLevel) 3237 3195 { -
trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.h
r167553 r168079 275 275 void setupContentsLayer(PlatformCALayer*); 276 276 PlatformCALayer* contentsLayer() const { return m_contentsLayer.get(); } 277 278 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)279 bool mediaLayerMustBeUpdatedOnMainThread() const;280 #endif281 277 282 278 virtual void setReplicatedByLayer(GraphicsLayer*) override; -
trunk/Source/WebCore/rendering/RenderEmbeddedObject.cpp
r164184 r168079 59 59 #include <wtf/StackStats.h> 60 60 61 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)62 #include "HTMLMediaElement.h"63 #endif64 65 61 namespace WebCore { 66 62 … … 654 650 bool RenderEmbeddedObject::canHaveChildren() const 655 651 { 656 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)657 if (frameOwnerElement().isMediaElement())658 return true;659 #endif660 661 652 if (isSnapshottedPlugIn()) 662 653 return true; -
trunk/Source/WebCore/rendering/RenderLayerBacking.cpp
r168078 r168079 2606 2606 } 2607 2607 2608 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)2609 bool RenderLayerBacking::mediaLayerMustBeUpdatedOnMainThread() const2610 {2611 return renderer().frame().page() && renderer().frame().page()->settings().isVideoPluginProxyEnabled();2612 }2613 #endif2614 2615 2608 } // namespace WebCore -
trunk/Source/WebCore/rendering/RenderLayerBacking.h
r167138 r168079 192 192 virtual bool shouldTemporarilyRetainTileCohorts(const GraphicsLayer*) const override; 193 193 194 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)195 virtual bool mediaLayerMustBeUpdatedOnMainThread() const override;196 #endif197 198 194 #ifndef NDEBUG 199 195 virtual void verifyNotPainting(); -
trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp
r167969 r168079 74 74 #endif 75 75 76 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)77 #include "HTMLAudioElement.h"78 #include "HTMLMediaElement.h"79 #endif80 81 76 #ifndef NDEBUG 82 77 #include "RenderTreeAsText.h" … … 2357 2352 return (video.requiresImmediateCompositing() || video.shouldDisplayVideo()) && canAccelerateVideoRendering(video); 2358 2353 } 2359 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)2360 if (renderer.isWidget()) {2361 if (!m_hasAcceleratedCompositing)2362 return false;2363 2364 Element* element = renderer.element();2365 if (!element || (!isHTMLVideoElement(element) && !isHTMLAudioElement(element)))2366 return false;2367 2368 HTMLMediaElement* mediaElement = toHTMLMediaElement(element);2369 return mediaElement->player() ? mediaElement->player()->supportsAcceleratedRendering() : false;2370 }2371 #endif // ENABLE(PLUGIN_PROXY_FOR_VIDEO)2372 2354 #else 2373 2355 UNUSED_PARAM(renderer); -
trunk/Source/WebKit/mac/ChangeLog
r168047 r168079 1 2014-04-30 Simon Fraser <simon.fraser@apple.com> 2 3 Remove ENABLE_PLUGIN_PROXY_FOR_VIDEO 4 https://bugs.webkit.org/show_bug.cgi?id=132396 5 6 Reviewed by Eric Carlson. 7 8 Remove ENABLE_PLUGIN_PROXY_FOR_VIDEO and related code. 9 10 * Configurations/FeatureDefines.xcconfig: 11 * Plugins/WebPluginContainerPrivate.h: 12 * Plugins/WebPluginController.h: 13 * Plugins/WebPluginController.mm: 14 (-[WebPluginController dealloc]): 15 (-[WebPluginController plugInsAreRunning]): 16 (-[WebPluginController stopAllPlugins]): 17 (-[WebPluginController stopPluginsForPageCache]): 18 (-[WebPluginController restorePluginsFromCache]): 19 (-[WebPluginController addPlugin:]): 20 (-[WebPluginController destroyPlugin:]): 21 (-[WebPluginController destroyAllPlugins]): 22 (-[NSView isMediaPlugInProxyView]): Deleted. 23 (-[NSView setIsMediaPlugInProxyView:]): Deleted. 24 (-[WebPluginController mediaPlugInProxyViewCreated:]): Deleted. 25 (+[WebPluginController pluginViewHidden:]): Deleted. 26 (mediaProxyClient): Deleted. 27 (-[WebPluginController _webPluginContainerSetMediaPlayerProxy:forElement:]): Deleted. 28 (-[WebPluginController _webPluginContainerPostMediaPlayerNotification:forElement:]): Deleted. 29 * WebCoreSupport/WebFrameLoaderClient.h: 30 * WebCoreSupport/WebFrameLoaderClient.mm: 31 (pluginView): 32 * WebView/WebView.mm: 33 (-[WebView _preferencesChanged:]): 34 (-[WebView _videoProxyPluginForMIMEType:]): Deleted. 35 * WebView/WebViewInternal.h: 36 1 37 2014-04-30 Anders Carlsson <andersca@apple.com> 2 38 -
trunk/Source/WebKit/mac/Configurations/FeatureDefines.xcconfig
r167958 r168079 161 161 ENABLE_PDFKIT_PLUGIN = $(ENABLE_PDFKIT_PLUGIN_$(PLATFORM_NAME)); 162 162 ENABLE_PDFKIT_PLUGIN_macosx = ENABLE_PDFKIT_PLUGIN; 163 ENABLE_PLUGIN_PROXY_FOR_VIDEO = $(ENABLE_PLUGIN_PROXY_FOR_VIDEO_$(PLATFORM_NAME));164 ENABLE_PLUGIN_PROXY_FOR_VIDEO_iphoneos = ENABLE_PLUGIN_PROXY_FOR_VIDEO;165 ENABLE_PLUGIN_PROXY_FOR_VIDEO_iphonesimulator = $(ENABLE_PLUGIN_PROXY_FOR_VIDEO_iphoneos);166 163 ENABLE_PROGRESS_ELEMENT = ENABLE_PROGRESS_ELEMENT; 167 164 ENABLE_PROMISES = ENABLE_PROMISES; … … 242 239 ENABLE_LLINT_C_LOOP = ; 243 240 244 FEATURE_DEFINES = $(ENABLE_3D_RENDERING) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_AVF_CAPTIONS) $(ENABLE_BLOB) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_EXCLUSIONS) $(ENABLE_CSS_FILTERS) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS_STICKY_POSITION) $(ENABLE_CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED) $(ENABLE_CSS3_CONDITIONAL_RULES) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS3_TEXT_LINE_BREAK) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ENCRYPTED_MEDIA_V2) $(ENABLE_FILTERS) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING) $(ENABLE_HIGH_DPI_CANVAS) $(ENABLE_ICONDATABASE) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_SPEECH) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(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_INSPECTOR) $(ENABLE_IOS_AIRPLAY) $(ENABLE_IOS_TEXT_AUTOSIZING) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LEGACY_WEB_AUDIO) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MATHML) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAGE_VISIBILITY_API) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_P LUGIN_PROXY_FOR_VIDEO) $(ENABLE_PROGRESS_ELEMENT) $(ENABLE_PROMISES) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_SCRIPTED_SPEECH) $(ENABLE_SHARED_WORKERS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SQL_DATABASE) $(ENABLE_SUBPIXEL_LAYOUT) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEMPLATE_ELEMENT) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_DATACUE_VALUE) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEBGL) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBVTT_REGIONS) $(ENABLE_XHR_TIMEOUT) $(ENABLE_XSLT) $(ENABLE_FTL_JIT) $(ENABLE_LLINT_C_LOOP) $(FEATURE_DEFINES_$(PLATFORM_NAME));241 FEATURE_DEFINES = $(ENABLE_3D_RENDERING) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_AVF_CAPTIONS) $(ENABLE_BLOB) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_EXCLUSIONS) $(ENABLE_CSS_FILTERS) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS_STICKY_POSITION) $(ENABLE_CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED) $(ENABLE_CSS3_CONDITIONAL_RULES) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS3_TEXT_LINE_BREAK) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ENCRYPTED_MEDIA_V2) $(ENABLE_FILTERS) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING) $(ENABLE_HIGH_DPI_CANVAS) $(ENABLE_ICONDATABASE) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_SPEECH) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(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_INSPECTOR) $(ENABLE_IOS_AIRPLAY) $(ENABLE_IOS_TEXT_AUTOSIZING) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LEGACY_WEB_AUDIO) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MATHML) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAGE_VISIBILITY_API) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_PROGRESS_ELEMENT) $(ENABLE_PROMISES) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_SCRIPTED_SPEECH) $(ENABLE_SHARED_WORKERS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SQL_DATABASE) $(ENABLE_SUBPIXEL_LAYOUT) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEMPLATE_ELEMENT) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_DATACUE_VALUE) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEBGL) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBVTT_REGIONS) $(ENABLE_XHR_TIMEOUT) $(ENABLE_XSLT) $(ENABLE_FTL_JIT) $(ENABLE_LLINT_C_LOOP) $(FEATURE_DEFINES_$(PLATFORM_NAME)); -
trunk/Source/WebKit/mac/Plugins/WebPluginContainerPrivate.h
r165676 r168079 33 33 #endif 34 34 35 #if !TARGET_OS_IPHONE36 #if !defined(ENABLE_PLUGIN_PROXY_FOR_VIDEO)37 #define ENABLE_PLUGIN_PROXY_FOR_VIDEO 038 #endif39 #endif40 41 #if ENABLE_PLUGIN_PROXY_FOR_VIDEO42 @class WebMediaPlayerProxy;43 #endif44 45 35 @interface NSObject (WebPlugInContainerPrivate) 46 36 … … 48 38 49 39 - (void)_webPluginContainerCancelCheckIfAllowedToLoadRequest:(id)checkIdentifier; 50 51 #if ENABLE_PLUGIN_PROXY_FOR_VIDEO52 - (void)_webPluginContainerSetMediaPlayerProxy:(WebMediaPlayerProxy *)proxy forElement:(DOMElement *)element;53 54 - (void)_webPluginContainerPostMediaPlayerNotification:(int)notification forElement:(DOMElement *)element;55 #endif56 40 57 41 #if TARGET_OS_IPHONE -
trunk/Source/WebKit/mac/Plugins/WebPluginController.h
r168047 r168079 46 46 BOOL _started; 47 47 NSMutableSet *_checksInProgress; 48 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)49 NSMutableArray *_viewsNotInDocument;50 #endif51 48 } 52 49 … … 64 61 - (void)addPlugin:(NSView *)view; 65 62 - (void)destroyPlugin:(NSView *)view; 66 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)67 - (void)mediaPlugInProxyViewCreated:(NSView *)view;68 + (void)pluginViewHidden:(NSView *)view;69 #endif70 63 71 64 #if PLATFORM(IOS) -
trunk/Source/WebKit/mac/Plugins/WebPluginController.mm
r165979 r168079 119 119 #endif 120 120 121 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)122 @interface NSView (WebPluginControllerAdditions)123 @property (nonatomic) BOOL isMediaPlugInProxyView;124 @end125 126 @implementation NSView (WebPluginControllerAdditions)127 128 - (BOOL)isMediaPlugInProxyView129 {130 return [(NSNumber *)objc_getAssociatedObject(self, @selector(isMediaPlugInProxyView)) boolValue];131 }132 133 - (void)setIsMediaPlugInProxyView:(BOOL)isMediaPlugInProxyView134 {135 objc_setAssociatedObject(self, @selector(isMediaPlugInProxyView), [NSNumber numberWithBool:isMediaPlugInProxyView], OBJC_ASSOCIATION_RETAIN_NONATOMIC);136 }137 138 @end139 #endif // ENABLE(PLUGIN_PROXY_FOR_VIDEO)140 141 121 @implementation WebPluginController 142 122 … … 235 215 [_views release]; 236 216 [_checksInProgress release]; 237 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)238 [_viewsNotInDocument release];239 #endif240 217 [super dealloc]; 241 218 } … … 245 222 { 246 223 NSUInteger pluginViewCount = [_views count]; 247 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)248 pluginViewCount += [_viewsNotInDocument count];249 #endif250 224 return _started && pluginViewCount; 251 225 } … … 335 309 [self stopOnePlugin:[_views objectAtIndex:i]]; 336 310 337 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)338 int viewsNotInDocumentCount = [_viewsNotInDocument count];339 for (int i = 0; i < viewsNotInDocumentCount; i++)340 [self stopOnePlugin:[_viewsNotInDocument objectAtIndex:i]];341 #endif342 343 311 _started = NO; 344 312 } … … 357 325 [self stopOnePluginForPageCache:[_views objectAtIndex:i]]; 358 326 359 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)360 NSUInteger viewsNotInDocumentCount = [_viewsNotInDocument count];361 for (NSUInteger i = 0; i < viewsNotInDocumentCount; ++i)362 [self stopOnePluginForPageCache:[_viewsNotInDocument objectAtIndex:i]];363 #endif364 365 327 _started = NO; 366 328 } … … 376 338 for (NSUInteger i = 0; i < viewsCount; ++i) 377 339 [[webView _UIKitDelegateForwarder] webView:webView willAddPlugInView:[_views objectAtIndex:i]]; 378 379 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)380 NSUInteger viewsNotInDocumentCount = [_viewsNotInDocument count];381 for (NSUInteger i = 0; i < viewsNotInDocumentCount; ++i)382 [[webView _UIKitDelegateForwarder] webView:webView willAddPlugInView:[_viewsNotInDocument objectAtIndex:i]];383 #endif384 340 } 385 341 #endif // PLATFORM(IOS) 386 387 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)388 - (void)mediaPlugInProxyViewCreated:(NSView *)view389 {390 view.isMediaPlugInProxyView = YES;391 if (!_viewsNotInDocument)392 _viewsNotInDocument= [[NSMutableArray alloc] init];393 if (![_viewsNotInDocument containsObject:view])394 [_viewsNotInDocument addObject:view];395 }396 397 + (void)pluginViewHidden:(NSView *)view398 {399 [pluginViews removeObject:view];400 }401 #endif402 342 403 343 - (void)addPlugin:(NSView *)view … … 412 352 #if !PLATFORM(IOS) 413 353 [[_documentView _webView] addPluginInstanceView:view]; 414 #endif415 416 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)417 if ([_viewsNotInDocument containsObject:view])418 [_viewsNotInDocument removeObject:view];419 354 #endif 420 355 … … 462 397 - (void)destroyPlugin:(NSView *)view 463 398 { 464 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)465 // destroyPlugin: is called when a plug-in view is removed from its parent466 // view, but native media players continue to exist even when they aren't in467 // the view hierarchy. So if this plug-in view is a proxy for a native media468 // player, don't destroy it here.469 if (view.isMediaPlugInProxyView)470 return;471 #endif472 473 399 if ([_views containsObject:view]) { 474 400 if (_started) 475 401 [self stopOnePlugin:view]; 476 402 [self destroyOnePlugin:view]; 477 403 478 404 #if ENABLE(NETSCAPE_PLUGIN_API) 479 405 if (Frame* frame = core([self webFrame])) … … 534 460 #endif 535 461 } 536 537 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)538 int viewsNotInDocumentCount = [_viewsNotInDocument count];539 for (int i = 0; i < viewsNotInDocumentCount; i++)540 [self destroyOnePlugin:[_viewsNotInDocument objectAtIndex:i]];541 #endif542 462 543 463 #if !PLATFORM(IOS) … … 701 621 [pluginView webPlugInMainResourceDidFinishLoading]; 702 622 } 703 704 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)705 static WebCore::HTMLMediaElement* mediaProxyClient(DOMElement* element)706 {707 if (!element) {708 LOG_ERROR("nil element passed");709 return nil;710 }711 712 Element* node = core(element);713 if (!node || (!isHTMLVideoElement(node) && !isHTMLAudioElement(node))) {714 LOG_ERROR("invalid media element passed");715 return nil;716 }717 718 return static_cast<WebCore::HTMLMediaElement*>(node);719 }720 721 - (void)_webPluginContainerSetMediaPlayerProxy:(WebMediaPlayerProxy *)proxy forElement:(DOMElement *)element722 {723 #if PLATFORM(IOS)724 WebThreadRun(^{725 #endif726 WebCore::HTMLMediaElement* client = mediaProxyClient(element);727 if (client)728 client->setMediaPlayerProxy(proxy);729 #if PLATFORM(IOS)730 });731 #endif732 }733 734 - (void)_webPluginContainerPostMediaPlayerNotification:(int)notification forElement:(DOMElement *)element735 {736 #if PLATFORM(IOS)737 WebThreadRun(^{738 #endif739 WebCore::HTMLMediaElement* client = mediaProxyClient(element);740 if (client)741 client->deliverNotification((MediaPlayerProxyNotificationType)notification);742 #if PLATFORM(IOS)743 });744 #endif745 }746 #endif747 623 748 624 @end -
trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.h
r167207 r168079 209 209 const Vector<WTF::String>& paramNames, const Vector<WTF::String>& paramValues) override; 210 210 211 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)212 virtual PassRefPtr<WebCore::Widget> createMediaPlayerProxyPlugin(const WebCore::IntSize&, WebCore::HTMLMediaElement*, const WebCore::URL&,213 const Vector<WTF::String>&, const Vector<WTF::String>&, const WTF::String&) override;214 virtual void hideMediaPlayerProxyPlugin(WebCore::Widget*) override;215 virtual void showMediaPlayerProxyPlugin(WebCore::Widget*) override;216 #endif217 218 211 virtual WebCore::ObjectContentType objectContentType(const WebCore::URL&, const WTF::String& mimeType, bool shouldPreferPlugInsForImages) override; 219 212 virtual WTF::String overrideMediaType() const override; -
trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm
r168047 r168079 131 131 #import <wtf/text/WTFString.h> 132 132 133 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)134 #import <WebCore/HTMLMediaElement.h>135 #endif136 137 133 #if USE(PLUGIN_HOST_PROCESS) && ENABLE(NETSCAPE_PLUGIN_API) 138 134 #import "NetscapePluginHostManager.h" … … 1737 1733 view = [pluginController plugInViewWithArguments:arguments fromPluginPackage:pluginPackage]; 1738 1734 [attributes release]; 1739 1740 if (!view)1741 return nil;1742 1743 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)1744 Element* node = core(element);1745 if (node->hasTagName(HTMLNames::videoTag) || node->hasTagName(HTMLNames::audioTag))1746 [pluginController mediaPlugInProxyViewCreated:view];1747 #endif1748 1735 #endif 1749 1736 … … 1953 1940 1954 1941 #if PLATFORM(IOS) 1955 if (!pluginPackage && [extension length]) {1942 if (!pluginPackage && [extension length]) 1956 1943 #else 1957 if (!pluginPackage && [extension length] && ![MIMEType length]) { 1958 #endif 1944 if (!pluginPackage && [extension length] && ![MIMEType length]) 1945 #endif 1946 { 1959 1947 pluginPackage = [webView _pluginForExtension:extension]; 1960 1948 if (pluginPackage) { … … 1975 1963 if ([pluginPackage isKindOfClass:[WebPluginPackage class]]) 1976 1964 view = pluginView(m_webFrame.get(), (WebPluginPackage *)pluginPackage, attributeKeys, kit(paramValues), baseURL, kit(element), loadManually); 1977 1978 1965 #if ENABLE(NETSCAPE_PLUGIN_API) 1979 1966 else if ([pluginPackage isKindOfClass:[WebNetscapePluginPackage class]]) { … … 2106 2093 if ([pluginView isKindOfClass:[NETSCAPE_PLUGIN_VIEW class]]) 2107 2094 [representation _redirectDataToManualLoader:(NETSCAPE_PLUGIN_VIEW *)pluginView forPluginView:pluginView]; 2108 else {2109 #e lse2095 else 2096 #endif 2110 2097 { 2111 #endif2112 2098 WebHTMLView *documentView = (WebHTMLView *)[[m_webFrame.get() frameView] documentView]; 2113 2099 ASSERT([documentView isKindOfClass:[WebHTMLView class]]); … … 2139 2125 toRenderEmbeddedObject(element->renderer())->setPluginUnavailabilityReason(RenderEmbeddedObject::InsecurePluginVersion); 2140 2126 } else { 2141 2127 #if ENABLE(NETSCAPE_PLUGIN_API) 2142 2128 if ([pluginPackage isKindOfClass:[WebNetscapePluginPackage class]]) { 2143 2129 view = [[[NETSCAPE_PLUGIN_VIEW alloc] initWithFrame:NSMakeRect(0, 0, size.width(), size.height()) … … 2153 2139 return adoptRef(new NetscapePluginWidget(static_cast<WebBaseNetscapePluginView *>(view))); 2154 2140 } 2155 2141 #endif 2156 2142 } 2157 2143 } … … 2172 2158 return 0; 2173 2159 } 2174 2175 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)2176 PassRefPtr<Widget> WebFrameLoaderClient::createMediaPlayerProxyPlugin(const IntSize& size, HTMLMediaElement* element, const URL& url,2177 const Vector<String>& paramNames, const Vector<String>& paramValues, const String& mimeType)2178 {2179 BEGIN_BLOCK_OBJC_EXCEPTIONS;2180 2181 ASSERT(paramNames.size() == paramValues.size());2182 ASSERT(mimeType);2183 2184 int errorCode = 0;2185 WebView *webView = getWebView(m_webFrame.get());2186 NSURL *URL = url;2187 2188 #if !PLATFORM(IOS)2189 SEL selector = @selector(webView:plugInViewWithArguments:);2190 2191 if ([[webView UIDelegate] respondsToSelector:selector]) {2192 NSMutableDictionary *attributes = [[NSMutableDictionary alloc] initWithObjects:kit(paramValues) forKeys:kit(paramNames)];2193 NSDictionary *arguments = [[NSDictionary alloc] initWithObjectsAndKeys:2194 attributes, WebPlugInAttributesKey,2195 [NSNumber numberWithInt:WebPlugInModeEmbed], WebPlugInModeKey,2196 [NSNumber numberWithBool:YES], WebPlugInShouldLoadMainResourceKey,2197 kit(element), WebPlugInContainingElementKey,2198 URL, WebPlugInBaseURLKey, // URL might be nil, so add it last2199 nil];2200 2201 NSView *view = CallUIDelegate(webView, selector, arguments);2202 2203 [attributes release];2204 [arguments release];2205 2206 if (view)2207 return adoptRef(new PluginWidget(view));2208 }2209 #endif2210 2211 WebBasePluginPackage *pluginPackage = [webView _videoProxyPluginForMIMEType:mimeType];2212 Document* document = core(m_webFrame.get())->document();2213 NSURL *baseURL = document->baseURL();2214 NSView *view = nil;2215 2216 if (pluginPackage) {2217 if ([pluginPackage isKindOfClass:[WebPluginPackage class]])2218 view = pluginView(m_webFrame.get(), (WebPluginPackage *)pluginPackage, kit(paramNames), kit(paramValues), baseURL, kit(element), false);2219 } else2220 errorCode = WebKitErrorCannotFindPlugIn;2221 2222 if (!errorCode && !view)2223 errorCode = WebKitErrorCannotLoadPlugIn;2224 2225 if (errorCode) {2226 #if PLATFORM(IOS)2227 WebResourceDelegateImplementationCache* implementations = WebViewGetResourceLoadDelegateImplementations(getWebView(m_webFrame.get()));2228 if (implementations->plugInFailedWithErrorFunc) {2229 NSError *error = [[NSError alloc] _initWithPluginErrorCode:errorCode contentURL:URL pluginPageURL:nil pluginName:[pluginPackage pluginInfo].name MIMEType:mimeType];2230 CallResourceLoadDelegate(implementations->plugInFailedWithErrorFunc, [m_webFrame.get() webView],2231 @selector(webView:plugInFailedWithError:dataSource:), error, [m_webFrame.get() _dataSource]);2232 [error release];2233 }2234 #else2235 NSError *error = [[NSError alloc] _initWithPluginErrorCode:errorCode2236 contentURL:URL pluginPageURL:nil pluginName:[pluginPackage pluginInfo].name MIMEType:mimeType];2237 WebNullPluginView *nullView = [[[WebNullPluginView alloc] initWithFrame:NSMakeRect(0, 0, size.width(), size.height())2238 error:error DOMElement:kit(element)] autorelease];2239 view = nullView;2240 [error release];2241 #endif2242 }2243 2244 ASSERT(view);2245 #if PLATFORM(IOS)2246 return adoptRef(new PluginWidgetIOS(view));2247 #else2248 return adoptRef(new PluginWidget(view));2249 #endif2250 2251 END_BLOCK_OBJC_EXCEPTIONS;2252 2253 return 0;2254 }2255 2256 void WebFrameLoaderClient::hideMediaPlayerProxyPlugin(Widget* widget)2257 {2258 [WebPluginController pluginViewHidden:widget->platformWidget()];2259 }2260 2261 void WebFrameLoaderClient::showMediaPlayerProxyPlugin(Widget* widget)2262 {2263 [WebPluginController addPlugInView:widget->platformWidget()];2264 }2265 2266 #endif // ENABLE(PLUGIN_PROXY_FOR_VIDEO)2267 2160 2268 2161 String WebFrameLoaderClient::overrideMediaType() const -
trunk/Source/WebKit/mac/WebView/WebPreferenceKeysPrivate.h
r166665 r168079 119 119 #define WebKitHyperlinkAuditingEnabledPreferenceKey @"WebKitHyperlinkAuditingEnabled" 120 120 #define WebKitAVFoundationEnabledKey @"WebKitAVFoundationEnabled" 121 #define WebKitVideoPluginProxyEnabledKey @"WebKitVideoPluginProxyEnabled"122 121 #define WebKitHixie76WebSocketProtocolEnabledKey @"WebKitHixie76WebSocketProtocolEnabled" 123 122 #define WebKitMediaPlaybackRequiresUserGesturePreferenceKey @"WebKitMediaPlaybackRequiresUserGesture" -
trunk/Source/WebKit/mac/WebView/WebPreferences.mm
r168046 r168079 582 582 583 583 [NSNumber numberWithBool:NO], WebKitUseLegacyTextAlignPositionedElementBehaviorPreferenceKey, 584 585 [NSNumber numberWithBool:NO], WebKitVideoPluginProxyEnabledKey,586 584 #if ENABLE(MEDIA_SOURCE) 587 585 [NSNumber numberWithBool:YES], WebKitMediaSourceEnabledPreferenceKey, … … 2133 2131 - (void)setVideoPluginProxyEnabled:(BOOL)flag 2134 2132 { 2135 [self _setBoolValue:flag forKey:WebKitVideoPluginProxyEnabledKey];2133 // No-op, left for SPI compatibility. 2136 2134 } 2137 2135 2138 2136 - (BOOL)isVideoPluginProxyEnabled 2139 2137 { 2140 return [self _boolValueForKey:WebKitVideoPluginProxyEnabledKey];2138 return NO; 2141 2139 } 2142 2140 -
trunk/Source/WebKit/mac/WebView/WebPreferencesPrivate.h
r168047 r168079 364 364 - (BOOL)isQTKitEnabled; 365 365 366 // VideoPluginProxy support is dependent on WebCore/WebKit being 367 // compiled with ENABLE_PLUGIN_PROXY_FOR_VIDEO. 366 // Deprecated, has no effect. 368 367 - (void)setVideoPluginProxyEnabled:(BOOL)flag; 369 368 - (BOOL)isVideoPluginProxyEnabled; -
trunk/Source/WebKit/mac/WebView/WebView.mm
r168047 r168079 2385 2385 settings.setUseLegacyTextAlignPositionedElementBehavior([preferences useLegacyTextAlignPositionedElementBehavior]); 2386 2386 2387 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)2388 settings.setVideoPluginProxyEnabled([preferences isVideoPluginProxyEnabled]);2389 #endif2390 2391 2387 #if ENABLE(MEDIA_SOURCE) 2392 2388 settings.setMediaSourceEnabled([preferences mediaSourceEnabled]); … … 4859 4855 return nil; 4860 4856 } 4861 4862 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)4863 - (WebBasePluginPackage *)_videoProxyPluginForMIMEType:(NSString *)MIMEType4864 {4865 WebBasePluginPackage *pluginPackage = [[WebPluginDatabase sharedDatabase] pluginForMIMEType:MIMEType];4866 if (pluginPackage)4867 return pluginPackage;4868 4869 #if !PLATFORM(IOS)4870 if (_private->pluginDatabase)4871 return [_private->pluginDatabase pluginForMIMEType:MIMEType];4872 #endif4873 4874 return nil;4875 }4876 #endif4877 4857 4878 4858 - (WebBasePluginPackage *)_pluginForExtension:(NSString *)extension -
trunk/Source/WebKit/mac/WebView/WebViewInternal.h
r165676 r168079 191 191 - (WebBasePluginPackage *)_pluginForMIMEType:(NSString *)MIMEType; 192 192 - (WebBasePluginPackage *)_pluginForExtension:(NSString *)extension; 193 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)194 - (WebBasePluginPackage *)_videoProxyPluginForMIMEType:(NSString *)MIMEType;195 #endif196 193 197 194 - (void)setCurrentNodeHighlight:(WebNodeHighlight *)nodeHighlight; -
trunk/Source/WebKit2/ChangeLog
r168074 r168079 1 2014-04-30 Simon Fraser <simon.fraser@apple.com> 2 3 Remove ENABLE_PLUGIN_PROXY_FOR_VIDEO 4 https://bugs.webkit.org/show_bug.cgi?id=132396 5 6 Reviewed by Eric Carlson. 7 8 Remove ENABLE_PLUGIN_PROXY_FOR_VIDEO and related code. 9 10 * Configurations/FeatureDefines.xcconfig: 11 * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: 12 (WebKit::WebFrameLoaderClient::createMediaPlayerProxyPlugin): Deleted. 13 (WebKit::WebFrameLoaderClient::hideMediaPlayerProxyPlugin): Deleted. 14 (WebKit::WebFrameLoaderClient::showMediaPlayerProxyPlugin): Deleted. 15 * WebProcess/WebCoreSupport/WebFrameLoaderClient.h: 16 * WebProcess/WebPage/WebPage.cpp: 17 (WebKit::WebPage::updatePreferences): 18 1 19 2014-04-30 Brady Eidson <beidson@apple.com> 2 20 -
trunk/Source/WebKit2/Configurations/FeatureDefines.xcconfig
r167958 r168079 161 161 ENABLE_PDFKIT_PLUGIN = $(ENABLE_PDFKIT_PLUGIN_$(PLATFORM_NAME)); 162 162 ENABLE_PDFKIT_PLUGIN_macosx = ENABLE_PDFKIT_PLUGIN; 163 ENABLE_PLUGIN_PROXY_FOR_VIDEO = $(ENABLE_PLUGIN_PROXY_FOR_VIDEO_$(PLATFORM_NAME));164 ENABLE_PLUGIN_PROXY_FOR_VIDEO_iphoneos = ENABLE_PLUGIN_PROXY_FOR_VIDEO;165 ENABLE_PLUGIN_PROXY_FOR_VIDEO_iphonesimulator = $(ENABLE_PLUGIN_PROXY_FOR_VIDEO_iphoneos);166 163 ENABLE_PROGRESS_ELEMENT = ENABLE_PROGRESS_ELEMENT; 167 164 ENABLE_PROMISES = ENABLE_PROMISES; … … 242 239 ENABLE_LLINT_C_LOOP = ; 243 240 244 FEATURE_DEFINES = $(ENABLE_3D_RENDERING) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_AVF_CAPTIONS) $(ENABLE_BLOB) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_EXCLUSIONS) $(ENABLE_CSS_FILTERS) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS_STICKY_POSITION) $(ENABLE_CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED) $(ENABLE_CSS3_CONDITIONAL_RULES) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS3_TEXT_LINE_BREAK) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ENCRYPTED_MEDIA_V2) $(ENABLE_FILTERS) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING) $(ENABLE_HIGH_DPI_CANVAS) $(ENABLE_ICONDATABASE) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_SPEECH) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(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_INSPECTOR) $(ENABLE_IOS_AIRPLAY) $(ENABLE_IOS_TEXT_AUTOSIZING) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LEGACY_WEB_AUDIO) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MATHML) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAGE_VISIBILITY_API) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_P LUGIN_PROXY_FOR_VIDEO) $(ENABLE_PROGRESS_ELEMENT) $(ENABLE_PROMISES) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_SCRIPTED_SPEECH) $(ENABLE_SHARED_WORKERS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SQL_DATABASE) $(ENABLE_SUBPIXEL_LAYOUT) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEMPLATE_ELEMENT) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_DATACUE_VALUE) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEBGL) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBVTT_REGIONS) $(ENABLE_XHR_TIMEOUT) $(ENABLE_XSLT) $(ENABLE_FTL_JIT) $(ENABLE_LLINT_C_LOOP) $(FEATURE_DEFINES_$(PLATFORM_NAME));241 FEATURE_DEFINES = $(ENABLE_3D_RENDERING) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_AVF_CAPTIONS) $(ENABLE_BLOB) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_EXCLUSIONS) $(ENABLE_CSS_FILTERS) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS_STICKY_POSITION) $(ENABLE_CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED) $(ENABLE_CSS3_CONDITIONAL_RULES) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS3_TEXT_LINE_BREAK) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ENCRYPTED_MEDIA_V2) $(ENABLE_FILTERS) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING) $(ENABLE_HIGH_DPI_CANVAS) $(ENABLE_ICONDATABASE) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_SPEECH) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(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_INSPECTOR) $(ENABLE_IOS_AIRPLAY) $(ENABLE_IOS_TEXT_AUTOSIZING) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LEGACY_WEB_AUDIO) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MATHML) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAGE_VISIBILITY_API) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_PROGRESS_ELEMENT) $(ENABLE_PROMISES) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_SCRIPTED_SPEECH) $(ENABLE_SHARED_WORKERS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SQL_DATABASE) $(ENABLE_SUBPIXEL_LAYOUT) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEMPLATE_ELEMENT) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_DATACUE_VALUE) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEBGL) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBVTT_REGIONS) $(ENABLE_XHR_TIMEOUT) $(ENABLE_XSLT) $(ENABLE_FTL_JIT) $(ENABLE_LLINT_C_LOOP) $(FEATURE_DEFINES_$(PLATFORM_NAME)); -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
r167923 r168079 1405 1405 } 1406 1406 1407 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)1408 PassRefPtr<Widget> WebFrameLoaderClient::createMediaPlayerProxyPlugin(const IntSize&, HTMLMediaElement*, const URL&, const Vector<String>&, const Vector<String>&, const String&)1409 {1410 notImplemented();1411 return 0;1412 }1413 1414 void WebFrameLoaderClient::hideMediaPlayerProxyPlugin(Widget*)1415 {1416 notImplemented();1417 }1418 1419 void WebFrameLoaderClient::showMediaPlayerProxyPlugin(Widget*)1420 {1421 notImplemented();1422 }1423 #endif1424 1425 1407 static bool pluginSupportsExtension(const PluginData& pluginData, const String& extension) 1426 1408 { -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.h
r167901 r168079 194 194 virtual PassRefPtr<WebCore::Widget> createJavaAppletWidget(const WebCore::IntSize&, WebCore::HTMLAppletElement*, const WebCore::URL& baseURL, const Vector<String>& paramNames, const Vector<String>& paramValues) override; 195 195 196 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)197 virtual PassRefPtr<WebCore::Widget> createMediaPlayerProxyPlugin(const WebCore::IntSize&, WebCore::HTMLMediaElement*, const WebCore::URL&, const Vector<String>&, const Vector<String>&, const String&) override;198 virtual void hideMediaPlayerProxyPlugin(WebCore::Widget*) override;199 virtual void showMediaPlayerProxyPlugin(WebCore::Widget*) override;200 #endif201 202 196 virtual WebCore::ObjectContentType objectContentType(const WebCore::URL&, const String& mimeType, bool shouldPreferPlugInsForImages) override; 203 197 virtual String overrideMediaType() const override; -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r168050 r168079 2613 2613 #endif 2614 2614 2615 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO)2616 settings.setVideoPluginProxyEnabled(false);2617 #endif2618 2619 2615 #if PLATFORM(IOS) 2620 2616 settings.setAVKitEnabled(true);
Note: See TracChangeset
for help on using the changeset viewer.