12015-07-21 Jer Noble <jer.noble@apple.com>
2
3 [iOS] Add an explicit API to allow media documents to (temporarily) play inline
4 https://bugs.webkit.org/show_bug.cgi?id=147181
5
6 Reviewed by NOBODY (OOPS!).
7
8 Add a WKWebView(Private) API which allows MediaDocuments loaded by the view to play their contents inline, regardless
9 of whether inline playback is restricted on the current device.
10
11 * UIProcess/API/Cocoa/WKWebView.mm:
12 (-[WKWebView _setRequiresUserActionForMediaPlayback:]): Added. Pass through to WebPageProxy.
13 (-[WKWebView _allowsMediaDocumentInlinePlayback]): Ditto.
14 * UIProcess/API/Cocoa/WKWebViewPrivate.h:
15 * UIProcess/WebPageProxy.cpp:
16 (WebKit::WebPageProxy::allowsMediaDocumentInlinePlayback): Simple getter.
17 (WebKit::WebPageProxy::setAllowsMediaDocumentInlinePlayback): Set, and conditionally pass the new value to WebPage.
18 * UIProcess/WebPageProxy.h:
19 * WebProcess/WebPage/WebPage.cpp:
20 (WebKit::WebPage::setAllowsMediaDocumentInlinePlayback): Set, and conditionally notify WebCore page of the change.
21 * WebProcess/WebPage/WebPage.h:
22 (WebKit::WebPage::allowsMediaDocumentInlinePlayback): Simple getter.
23 * WebProcess/WebPage/WebPage.messages.in: Add new messages.
24