Title: [151512] trunk/Source
- Revision
- 151512
- Author
- [email protected]
- Date
- 2013-06-12 10:33:31 -0700 (Wed, 12 Jun 2013)
Log Message
Allow for toggling fullscreen on <video> elements
https://bugs.webkit.org/show_bug.cgi?id=117220
Patch by Ruth Fong <[email protected]> on 2013-06-12
Reviewed by Dean Jackson.
Source/WebCore:
This patch adds the ability for fullscreen
context menu item on <video> elements to switch between "Enter Fullscreen"
and "Exit Fullscreen" and behave appropriately.
No new tests. media/context-menu-action.html,
which has been disabled by bug 116651, is used to test context menus.
* English.lproj/Localizable.strings: Add "Exit Fullscreen" string.
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::toggleFullscreenState): Added to appropriately enter/exit fullscreen.
* html/HTMLMediaElement.h:
* page/ContextMenuController.cpp:
* platform/ContextMenuItem.h:
* platform/LocalizedStrings.cpp:
* platform/LocalizedStrings.h:
Updated to rename variables more appropriately to reflect the toggle-ability of video fullscreen.
* rendering/HitTestResult.cpp:
(WebCore::HitTestResult::mediaIsInFullscreen): Added to check if an element
was a media element in fullscreen.
(WebCore::HitTestResult::toggleMediaFullscreenState): Added to hook into
HTMLMediaElement::toggleFullscreenState.
* rendering/HitTestResult.h:
Source/WebKit2:
* Shared/API/c/WKContextMenuItemTypes.h:
* Shared/API/c/WKSharedAPICast.h:
Added variables to support the toggle-ability of the fullscreen
video context menu item.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (151511 => 151512)
--- trunk/Source/WebCore/ChangeLog 2013-06-12 17:32:33 UTC (rev 151511)
+++ trunk/Source/WebCore/ChangeLog 2013-06-12 17:33:31 UTC (rev 151512)
@@ -1,3 +1,33 @@
+2013-06-12 Ruth Fong <[email protected]>
+
+ Allow for toggling fullscreen on <video> elements
+ https://bugs.webkit.org/show_bug.cgi?id=117220
+
+ Reviewed by Dean Jackson.
+
+ This patch adds the ability for fullscreen
+ context menu item on <video> elements to switch between "Enter Fullscreen"
+ and "Exit Fullscreen" and behave appropriately.
+
+ No new tests. media/context-menu-action.html,
+ which has been disabled by bug 116651, is used to test context menus.
+
+ * English.lproj/Localizable.strings: Add "Exit Fullscreen" string.
+ * html/HTMLMediaElement.cpp:
+ (WebCore::HTMLMediaElement::toggleFullscreenState): Added to appropriately enter/exit fullscreen.
+ * html/HTMLMediaElement.h:
+ * page/ContextMenuController.cpp:
+ * platform/ContextMenuItem.h:
+ * platform/LocalizedStrings.cpp:
+ * platform/LocalizedStrings.h:
+ Updated to rename variables more appropriately to reflect the toggle-ability of video fullscreen.
+ * rendering/HitTestResult.cpp:
+ (WebCore::HitTestResult::mediaIsInFullscreen): Added to check if an element
+ was a media element in fullscreen.
+ (WebCore::HitTestResult::toggleMediaFullscreenState): Added to hook into
+ HTMLMediaElement::toggleFullscreenState.
+ * rendering/HitTestResult.h:
+
2013-06-12 Sergio Villar Senin <[email protected]>
Skipping {}, () and [] blocks while error recovering in CSS
Modified: trunk/Source/WebCore/English.lproj/Localizable.strings (151511 => 151512)
--- trunk/Source/WebCore/English.lproj/Localizable.strings 2013-06-12 17:32:33 UTC (rev 151511)
+++ trunk/Source/WebCore/English.lproj/Localizable.strings 2013-06-12 17:33:31 UTC (rev 151512)
@@ -175,6 +175,9 @@
/ * V i d e o E n t e r F u l l s c r e e n c o n t e x t m e n u i t e m * /
"