<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[198900] trunk/Source</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/198900">198900</a></dd>
<dt>Author</dt> <dd>adachan@apple.com</dd>
<dt>Date</dt> <dd>2016-03-31 11:23:29 -0700 (Thu, 31 Mar 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Add the new &quot;toggle enhanced fullscreen&quot; context menu item to the video context menu on supporting platforms.
https://bugs.webkit.org/show_bug.cgi?id=156031

Reviewed by Eric Carlson.

Source/WebCore:

* page/ContextMenuController.cpp:
(WebCore::ContextMenuController::contextMenuItemSelected):
Handle the selection of the context menu item.
(WebCore::ContextMenuController::populate):
Add this menu item on Mac.
(WebCore::ContextMenuController::checkOrEnableIfNeeded):
Set the menu item's title depending on the current enhanced fullscreen state
and enable this menu item if supported.

* platform/ContextMenuItem.h:
Define the new tag for this menu item.

* platform/LocalizedStrings.cpp:
(WebCore::contextMenuItemTagEnterVideoEnhancedFullscreen):
(WebCore::contextMenuItemTagExitVideoEnhancedFullscreen):
* platform/LocalizedStrings.h:

* rendering/HitTestResult.cpp:
(WebCore::HitTestResult::mediaSupportsEnhancedFullscreen):
(WebCore::HitTestResult::mediaIsInEnhancedFullscreen):
(WebCore::HitTestResult::toggleEnhancedFullscreenForVideo):
* rendering/HitTestResult.h:

Source/WebKit/mac:

* WebView/WebHTMLView.mm:
(toAction):
(toTag):
* WebView/WebUIDelegatePrivate.h:

Source/WebKit2:

* Shared/API/c/WKContextMenuItemTypes.h:
* Shared/API/c/WKSharedAPICast.h:
(WebKit::toAPI):
(WebKit::toImpl):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorepageContextMenuControllercpp">trunk/Source/WebCore/page/ContextMenuController.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformContextMenuItemh">trunk/Source/WebCore/platform/ContextMenuItem.h</a></li>
<li><a href="#trunkSourceWebCoreplatformLocalizedStringscpp">trunk/Source/WebCore/platform/LocalizedStrings.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformLocalizedStringsh">trunk/Source/WebCore/platform/LocalizedStrings.h</a></li>
<li><a href="#trunkSourceWebCorerenderingHitTestResultcpp">trunk/Source/WebCore/rendering/HitTestResult.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingHitTestResulth">trunk/Source/WebCore/rendering/HitTestResult.h</a></li>
<li><a href="#trunkSourceWebKitmacChangeLog">trunk/Source/WebKit/mac/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebHTMLViewmm">trunk/Source/WebKit/mac/WebView/WebHTMLView.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebUIDelegatePrivateh">trunk/Source/WebKit/mac/WebView/WebUIDelegatePrivate.h</a></li>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIcWKContextMenuItemTypesh">trunk/Source/WebKit2/Shared/API/c/WKContextMenuItemTypes.h</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIcWKSharedAPICasth">trunk/Source/WebKit2/Shared/API/c/WKSharedAPICast.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (198899 => 198900)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-03-31 18:16:37 UTC (rev 198899)
+++ trunk/Source/WebCore/ChangeLog        2016-03-31 18:23:29 UTC (rev 198900)
</span><span class="lines">@@ -1,3 +1,33 @@
</span><ins>+2016-03-30  Ada Chan  &lt;adachan@apple.com&gt;
+
+        Add the new &quot;toggle enhanced fullscreen&quot; context menu item to the video context menu on supporting platforms.
+        https://bugs.webkit.org/show_bug.cgi?id=156031
+
+        Reviewed by Eric Carlson.
+
+        * page/ContextMenuController.cpp:
+        (WebCore::ContextMenuController::contextMenuItemSelected):
+        Handle the selection of the context menu item.
+        (WebCore::ContextMenuController::populate):
+        Add this menu item on Mac.
+        (WebCore::ContextMenuController::checkOrEnableIfNeeded):
+        Set the menu item's title depending on the current enhanced fullscreen state
+        and enable this menu item if supported.
+
+        * platform/ContextMenuItem.h:
+        Define the new tag for this menu item.
+
+        * platform/LocalizedStrings.cpp:
+        (WebCore::contextMenuItemTagEnterVideoEnhancedFullscreen):
+        (WebCore::contextMenuItemTagExitVideoEnhancedFullscreen):
+        * platform/LocalizedStrings.h:
+
+        * rendering/HitTestResult.cpp:
+        (WebCore::HitTestResult::mediaSupportsEnhancedFullscreen):
+        (WebCore::HitTestResult::mediaIsInEnhancedFullscreen):
+        (WebCore::HitTestResult::toggleEnhancedFullscreenForVideo):
+        * rendering/HitTestResult.h:
+
</ins><span class="cx"> 2016-03-31  Nan Wang  &lt;n_wang@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         AX: aria-hidden=false causes video fallback content to be exposed to AX API
</span></span></pre></div>
<a id="trunkSourceWebCorepageContextMenuControllercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/ContextMenuController.cpp (198899 => 198900)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/ContextMenuController.cpp        2016-03-31 18:16:37 UTC (rev 198899)
+++ trunk/Source/WebCore/page/ContextMenuController.cpp        2016-03-31 18:23:29 UTC (rev 198900)
</span><span class="lines">@@ -279,6 +279,9 @@
</span><span class="cx">     case ContextMenuItemTagMediaMute:
</span><span class="cx">         m_context.hitTestResult().toggleMediaMuteState();
</span><span class="cx">         break;
</span><ins>+    case ContextMenuItemTagToggleVideoEnhancedFullscreen:
+        m_context.hitTestResult().toggleEnhancedFullscreenForVideo();
+        break;
</ins><span class="cx">     case ContextMenuItemTagOpenFrameInNewWindow: {
</span><span class="cx">         DocumentLoader* loader = frame-&gt;loader().documentLoader();
</span><span class="cx">         if (!loader-&gt;unreachableURL().isEmpty())
</span><span class="lines">@@ -766,6 +769,9 @@
</span><span class="cx">         contextMenuItemTagEnterVideoFullscreen());
</span><span class="cx">     ContextMenuItem ToggleVideoFullscreen(ActionType, ContextMenuItemTagToggleVideoFullscreen,
</span><span class="cx">         contextMenuItemTagEnterVideoFullscreen());
</span><ins>+#if PLATFORM(MAC) &amp;&amp; ENABLE(VIDEO_PRESENTATION_MODE)
+    ContextMenuItem ToggleVideoEnhancedFullscreen(ActionType, ContextMenuItemTagToggleVideoEnhancedFullscreen, contextMenuItemTagEnterVideoEnhancedFullscreen());
+#endif
</ins><span class="cx"> #if PLATFORM(COCOA)
</span><span class="cx">     ContextMenuItem SearchSpotlightItem(ActionType, ContextMenuItemTagSearchInSpotlight, 
</span><span class="cx">         contextMenuItemTagSearchInSpotlight());
</span><span class="lines">@@ -863,6 +869,9 @@
</span><span class="cx"> #else
</span><span class="cx">             appendItem(EnterVideoFullscreen, m_contextMenu.get());
</span><span class="cx"> #endif
</span><ins>+#if PLATFORM(MAC) &amp;&amp; ENABLE(VIDEO_PRESENTATION_MODE)
+            appendItem(ToggleVideoEnhancedFullscreen, m_contextMenu.get());
+#endif
</ins><span class="cx">             appendItem(*separatorItem(), m_contextMenu.get());
</span><span class="cx">             appendItem(CopyMediaLinkItem, m_contextMenu.get());
</span><span class="cx">             appendItem(OpenMediaInNewWindowItem, m_contextMenu.get());
</span><span class="lines">@@ -1362,6 +1371,12 @@
</span><span class="cx">         case ContextMenuItemTagEnterVideoFullscreen:
</span><span class="cx">             shouldEnable = m_context.hitTestResult().mediaSupportsFullscreen();
</span><span class="cx">             break;
</span><ins>+        case ContextMenuItemTagToggleVideoEnhancedFullscreen:
+#if PLATFORM(MAC) &amp;&amp; ENABLE(VIDEO_PRESENTATION_MODE)
+            item.setTitle(m_context.hitTestResult().mediaIsInEnhancedFullscreen() ? contextMenuItemTagExitVideoEnhancedFullscreen() : contextMenuItemTagEnterVideoEnhancedFullscreen());
+#endif
+            shouldEnable = m_context.hitTestResult().mediaSupportsEnhancedFullscreen();
+            break;
</ins><span class="cx">         case ContextMenuItemTagOpenFrameInNewWindow:
</span><span class="cx">         case ContextMenuItemTagSpellingGuess:
</span><span class="cx">         case ContextMenuItemTagOther:
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformContextMenuItemh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/ContextMenuItem.h (198899 => 198900)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ContextMenuItem.h        2016-03-31 18:16:37 UTC (rev 198899)
+++ trunk/Source/WebCore/platform/ContextMenuItem.h        2016-03-31 18:23:29 UTC (rev 198900)
</span><span class="lines">@@ -146,7 +146,8 @@
</span><span class="cx">     ContextMenuItemTagMediaMute,
</span><span class="cx">     ContextMenuItemTagDictationAlternative,
</span><span class="cx">     ContextMenuItemTagToggleVideoFullscreen,
</span><del>-    ContextMenuItemTagShareMenu, 
</del><ins>+    ContextMenuItemTagShareMenu,
+    ContextMenuItemTagToggleVideoEnhancedFullscreen,
</ins><span class="cx">     ContextMenuItemBaseCustomTag = 5000,
</span><span class="cx">     ContextMenuItemLastCustomTag = 5999,
</span><span class="cx">     ContextMenuItemBaseApplicationTag = 10000
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformLocalizedStringscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/LocalizedStrings.cpp (198899 => 198900)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/LocalizedStrings.cpp        2016-03-31 18:16:37 UTC (rev 198899)
+++ trunk/Source/WebCore/platform/LocalizedStrings.cpp        2016-03-31 18:23:29 UTC (rev 198900)
</span><span class="lines">@@ -507,6 +507,24 @@
</span><span class="cx">     return WEB_UI_STRING(&quot;Exit Full Screen&quot;, &quot;Video Exit Fullscreen context menu item&quot;);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+#if PLATFORM(MAC) &amp;&amp; ENABLE(VIDEO_PRESENTATION_MODE)
+
+#if USE(APPLE_INTERNAL_SDK)
+#include &lt;WebKitAdditions/ContextMenuLocalizedStringsAdditions.cpp&gt;
+#else
+String contextMenuItemTagEnterVideoEnhancedFullscreen()
+{
+    return { };
+}
+
+String contextMenuItemTagExitVideoEnhancedFullscreen()
+{
+    return { };
+}
+#endif
+
+#endif
+
</ins><span class="cx"> String contextMenuItemTagMediaPlay()
</span><span class="cx"> {
</span><span class="cx">     return WEB_UI_STRING(&quot;Play&quot;, &quot;Media Play context menu item&quot;);
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformLocalizedStringsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/LocalizedStrings.h (198899 => 198900)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/LocalizedStrings.h        2016-03-31 18:16:37 UTC (rev 198899)
+++ trunk/Source/WebCore/platform/LocalizedStrings.h        2016-03-31 18:23:29 UTC (rev 198900)
</span><span class="lines">@@ -139,6 +139,10 @@
</span><span class="cx">     String contextMenuItemTagToggleMediaLoop();
</span><span class="cx">     String contextMenuItemTagEnterVideoFullscreen();
</span><span class="cx">     String contextMenuItemTagExitVideoFullscreen();
</span><ins>+#if PLATFORM(MAC) &amp;&amp; ENABLE(VIDEO_PRESENTATION_MODE)
+    String contextMenuItemTagEnterVideoEnhancedFullscreen();
+    String contextMenuItemTagExitVideoEnhancedFullscreen();
+#endif
</ins><span class="cx">     String contextMenuItemTagMediaPlay();
</span><span class="cx">     String contextMenuItemTagMediaPause();
</span><span class="cx">     String contextMenuItemTagMediaMute();
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingHitTestResultcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/HitTestResult.cpp (198899 => 198900)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/HitTestResult.cpp        2016-03-31 18:16:37 UTC (rev 198899)
+++ trunk/Source/WebCore/rendering/HitTestResult.cpp        2016-03-31 18:23:29 UTC (rev 198900)
</span><span class="lines">@@ -773,4 +773,22 @@
</span><span class="cx">     return node-&gt;parentElement();
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+#if USE(APPLE_INTERNAL_SDK)
+#include &lt;WebKitAdditions/HitTestResultAdditions.cpp&gt;
+#else
+bool HitTestResult::mediaSupportsEnhancedFullscreen() const
+{
+    return false;
+}
+
+bool HitTestResult::mediaIsInEnhancedFullscreen() const
+{
+    return false;
+}
+
+void HitTestResult::toggleEnhancedFullscreenForVideo() const
+{
+}
+#endif
+
</ins><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingHitTestResulth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/HitTestResult.h (198899 => 198900)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/HitTestResult.h        2016-03-31 18:16:37 UTC (rev 198899)
+++ trunk/Source/WebCore/rendering/HitTestResult.h        2016-03-31 18:23:29 UTC (rev 198900)
</span><span class="lines">@@ -127,6 +127,10 @@
</span><span class="cx">     WEBCORE_EXPORT bool mediaIsVideo() const;
</span><span class="cx">     bool mediaMuted() const;
</span><span class="cx">     void toggleMediaMuteState() const;
</span><ins>+    bool mediaSupportsEnhancedFullscreen() const;
+    bool mediaIsInEnhancedFullscreen() const;
+    void toggleEnhancedFullscreenForVideo() const;
+
</ins><span class="cx">     WEBCORE_EXPORT bool isDownloadableMedia() const;
</span><span class="cx">     WEBCORE_EXPORT bool isOverTextInsideFormControlElement() const;
</span><span class="cx">     WEBCORE_EXPORT bool allowsCopy() const;
</span></span></pre></div>
<a id="trunkSourceWebKitmacChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/ChangeLog (198899 => 198900)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/ChangeLog        2016-03-31 18:16:37 UTC (rev 198899)
+++ trunk/Source/WebKit/mac/ChangeLog        2016-03-31 18:23:29 UTC (rev 198900)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2016-03-30  Ada Chan  &lt;adachan@apple.com&gt;
+
+        Add the new &quot;toggle enhanced fullscreen&quot; context menu item to the video context menu on supporting platforms.
+        https://bugs.webkit.org/show_bug.cgi?id=156031
+
+        Reviewed by Eric Carlson.
+
+        * WebView/WebHTMLView.mm:
+        (toAction):
+        (toTag):
+        * WebView/WebUIDelegatePrivate.h:
+
</ins><span class="cx"> 2016-03-24  Said Abou-Hallawa  &lt;sabouhallawa@apple,com&gt;
</span><span class="cx"> 
</span><span class="cx">         Change NativeImagePtr for CG to be RetainPtr&lt;CGImageRef&gt;
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebHTMLViewmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebHTMLView.mm (198899 => 198900)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebHTMLView.mm        2016-03-31 18:16:37 UTC (rev 198899)
+++ trunk/Source/WebKit/mac/WebView/WebHTMLView.mm        2016-03-31 18:23:29 UTC (rev 198900)
</span><span class="lines">@@ -347,6 +347,8 @@
</span><span class="cx">         return ContextMenuItemTagToggleMediaLoop;
</span><span class="cx">     case WebMenuItemTagEnterVideoFullscreen:
</span><span class="cx">         return ContextMenuItemTagEnterVideoFullscreen;
</span><ins>+    case WebMenuItemTagToggleVideoEnhancedFullscreen:
+        return ContextMenuItemTagToggleVideoEnhancedFullscreen;
</ins><span class="cx">     case WebMenuItemTagMediaPlayPause:
</span><span class="cx">         return ContextMenuItemTagMediaPlayPause;
</span><span class="cx">     case WebMenuItemTagMediaMute:
</span><span class="lines">@@ -533,6 +535,8 @@
</span><span class="cx">         return WebMenuItemTagToggleVideoFullscreen;
</span><span class="cx">     case ContextMenuItemTagShareMenu:
</span><span class="cx">         return WebMenuItemTagShareMenu;
</span><ins>+    case ContextMenuItemTagToggleVideoEnhancedFullscreen:
+        return WebMenuItemTagToggleVideoEnhancedFullscreen;
</ins><span class="cx"> 
</span><span class="cx">     case ContextMenuItemBaseCustomTag ... ContextMenuItemLastCustomTag:
</span><span class="cx">         // We just pass these through.
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebUIDelegatePrivateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebUIDelegatePrivate.h (198899 => 198900)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebUIDelegatePrivate.h        2016-03-31 18:16:37 UTC (rev 198899)
+++ trunk/Source/WebKit/mac/WebView/WebUIDelegatePrivate.h        2016-03-31 18:23:29 UTC (rev 198900)
</span><span class="lines">@@ -102,6 +102,7 @@
</span><span class="cx">     WebMenuItemTagDictationAlternative,
</span><span class="cx">     WebMenuItemTagToggleVideoFullscreen,
</span><span class="cx">     WebMenuItemTagShareMenu,
</span><ins>+    WebMenuItemTagToggleVideoEnhancedFullscreen,
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> // Deprecated; remove when there are no more clients.
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (198899 => 198900)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2016-03-31 18:16:37 UTC (rev 198899)
+++ trunk/Source/WebKit2/ChangeLog        2016-03-31 18:23:29 UTC (rev 198900)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2016-03-30  Ada Chan  &lt;adachan@apple.com&gt;
+
+        Add the new &quot;toggle enhanced fullscreen&quot; context menu item to the video context menu on supporting platforms.
+        https://bugs.webkit.org/show_bug.cgi?id=156031
+
+        Reviewed by Eric Carlson.
+
+        * Shared/API/c/WKContextMenuItemTypes.h:
+        * Shared/API/c/WKSharedAPICast.h:
+        (WebKit::toAPI):
+        (WebKit::toImpl):
+
</ins><span class="cx"> 2016-03-31  Brent Fulgham  &lt;bfulgham@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Unreviewed build fix after r198893.
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIcWKContextMenuItemTypesh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/c/WKContextMenuItemTypes.h (198899 => 198900)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/c/WKContextMenuItemTypes.h        2016-03-31 18:16:37 UTC (rev 198899)
+++ trunk/Source/WebKit2/Shared/API/c/WKContextMenuItemTypes.h        2016-03-31 18:23:29 UTC (rev 198900)
</span><span class="lines">@@ -122,6 +122,7 @@
</span><span class="cx">     kWKContextMenuItemTagOpenLinkInThisWindow,
</span><span class="cx">     kWKContextMenuItemTagToggleVideoFullscreen,
</span><span class="cx">     kWKContextMenuItemTagShareMenu,
</span><ins>+    kWKContextMenuItemTagToggleVideoEnhancedFullscreen,
</ins><span class="cx">     kWKContextMenuItemBaseApplicationTag = 10000
</span><span class="cx"> };
</span><span class="cx"> typedef uint32_t WKContextMenuItemTag;
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIcWKSharedAPICasth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/c/WKSharedAPICast.h (198899 => 198900)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/c/WKSharedAPICast.h        2016-03-31 18:16:37 UTC (rev 198899)
+++ trunk/Source/WebKit2/Shared/API/c/WKSharedAPICast.h        2016-03-31 18:23:29 UTC (rev 198900)
</span><span class="lines">@@ -472,6 +472,8 @@
</span><span class="cx">         return kWKContextMenuItemTagToggleVideoFullscreen;
</span><span class="cx">     case WebCore::ContextMenuItemTagEnterVideoFullscreen:
</span><span class="cx">         return kWKContextMenuItemTagEnterVideoFullscreen;
</span><ins>+    case WebCore::ContextMenuItemTagToggleVideoEnhancedFullscreen:
+        return kWKContextMenuItemTagToggleVideoEnhancedFullscreen;
</ins><span class="cx">     case WebCore::ContextMenuItemTagMediaPlayPause:
</span><span class="cx">         return kWKContextMenuItemTagMediaPlayPause;
</span><span class="cx">     case WebCore::ContextMenuItemTagMediaMute:
</span><span class="lines">@@ -664,6 +666,8 @@
</span><span class="cx">         return WebCore::ContextMenuItemTagToggleVideoFullscreen;
</span><span class="cx">     case kWKContextMenuItemTagEnterVideoFullscreen:
</span><span class="cx">         return WebCore::ContextMenuItemTagEnterVideoFullscreen;
</span><ins>+    case kWKContextMenuItemTagToggleVideoEnhancedFullscreen:
+        return WebCore::ContextMenuItemTagToggleVideoEnhancedFullscreen;
</ins><span class="cx">     case kWKContextMenuItemTagMediaPlayPause:
</span><span class="cx">         return WebCore::ContextMenuItemTagMediaPlayPause;
</span><span class="cx">     case kWKContextMenuItemTagMediaMute:
</span></span></pre>
</div>
</div>

</body>
</html>