Inlined some picture-in-picture code.
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Jun 2016 13:15:40 +0000 (13:15 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Jun 2016 13:15:40 +0000 (13:15 +0000)
commita65a1fc8ce9e8596c3629ef55fac48b8d87d798d
tree459acde86cb6e8c634d74c73af6bd04006e03500
parent537a64ab2565f882fdf76da4458aa2032bdb6619
Inlined some picture-in-picture code.
https://bugs.webkit.org/show_bug.cgi?id=158977

Reviewed by Eric Carlsson.

This code was written primarily by Ada Chan, and originally reviewed by Alex Christensen,
Anders Carlsson, Conrad Shultz, Dan Bernstein, Eric Carlson, Jer Noble, Jeremy Jones,
Jon Lee, Remy Demarest, and Zach Li.

Source/WebCore:

* English.lproj/Localizable.strings:
  Updated using update-webkit-localizable-strings.

* Modules/mediacontrols/mediaControlsApple.css:
(video:-webkit-full-screen::-webkit-media-controls-panel .picture-in-picture-button):

* Modules/mediacontrols/mediaControlsApple.js:
(Controller.prototype.configureFullScreenControls):

* WebCore.xcodeproj/project.pbxproj: Added PIPSPI.h.

* html/HTMLMediaElement.cpp: Inlined code from HTMLMediaElementAdditions.cpp.

* html/HTMLVideoElement.cpp: Inlined code from HTMLVideoElementSupportsFullscreenAdditions.cpp.

* platform/LocalizedStrings.cpp:
(WebCore::contextMenuItemTagEnterVideoEnhancedFullscreen): Brought in from ContextMenuLocalizedStringsAdditions.cpp.
(WebCore::contextMenuItemTagExitVideoEnhancedFullscreen): Ditto.
(WebCore::AXARIAContentGroupText): Made updates that should have been part of r198543.

* platform/mac/WebVideoFullscreenInterfaceMac.h: Removed USE(APPLE_INTERNAL_SDK) guards.
* platform/mac/WebVideoFullscreenInterfaceMac.mm: Inlined WebVideoFullscreenInterfaceMacAdditions.mm.

* platform/spi/mac/PIPSPI.h: Added.

* rendering/HitTestResult.cpp: Inlined HitTestResultAdditions.cpp.

* rendering/RenderThemeMac.mm:
(WebCore::RenderThemeMac::mediaControlsStyleSheet): Removed include of
  RenderThemeMacMediaControlsStyleSheetAdditions.mm now that the content is in
  mediaControlsApple.css.
(WebCore::RenderThemeMac::mediaControlsScript): Removed include of
  RenderThemeMacMediaControlsScriptAdditions.mm now that the content is in mediaControlsApple.js.

Source/WebKit2:

* Shared/WebPreferencesStoreDefaultsAdditions.cpp:
  Define and use DEFAULT_ALLOWS_PICTURE_IN_PICTURE_MEDIA_PLAYBACK.

* Shared/WebPreferencesStore.cpp:
(WebKit::defaults): Removed include of WebPreferencesStoreDefaultsAdditions.cpp now that the
  default is defined correctly in WebPreferencesStoreDefaultsAdditions.cpp.

* UIProcess/API/C/WKPreferences.cpp: Inlined WKPreferencesAdditions.cpp.
* UIProcess/API/C/WKPreferencesRefPrivate.h: Ditto.

* WebProcess/cocoa/WebVideoFullscreenManager.mm: Inlined WebVideoFullscreenManagerSupportsVideoFullscreenMac.mm.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@202274 268f45cc-cd09-0410-ab3c-d52691b4dbfc
19 files changed:
Source/WebCore/ChangeLog
Source/WebCore/English.lproj/Localizable.strings
Source/WebCore/Modules/mediacontrols/mediaControlsApple.css
Source/WebCore/Modules/mediacontrols/mediaControlsApple.js
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/html/HTMLMediaElement.cpp
Source/WebCore/html/HTMLVideoElement.cpp
Source/WebCore/platform/LocalizedStrings.cpp
Source/WebCore/platform/mac/WebVideoFullscreenInterfaceMac.h
Source/WebCore/platform/mac/WebVideoFullscreenInterfaceMac.mm
Source/WebCore/platform/spi/mac/PIPSPI.h [new file with mode: 0644]
Source/WebCore/rendering/HitTestResult.cpp
Source/WebCore/rendering/RenderThemeMac.mm
Source/WebKit2/ChangeLog
Source/WebKit2/Shared/WebPreferencesDefinitions.h
Source/WebKit2/Shared/WebPreferencesStore.cpp
Source/WebKit2/UIProcess/API/C/WKPreferences.cpp
Source/WebKit2/UIProcess/API/C/WKPreferencesRefPrivate.h
Source/WebKit2/WebProcess/cocoa/WebVideoFullscreenManager.mm