Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: third_party/WebKit/LayoutTests/media/media-controls.js

Issue 2741933004: [Blink, Media] Added controlsList to HTMLMediaElement (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/media/media-controls.js
diff --git a/third_party/WebKit/LayoutTests/media/media-controls.js b/third_party/WebKit/LayoutTests/media/media-controls.js
index 77eae3345eea6e0d320fa875ed0bc4eef1b6f189..3fa54e6034e3f438b2c36ed8d098df26bce4cf4a 100644
--- a/third_party/WebKit/LayoutTests/media/media-controls.js
+++ b/third_party/WebKit/LayoutTests/media/media-controls.js
@@ -17,6 +17,22 @@ function castButton(videoElement) {
return button;
}
+function downloadButton(videoElement) {
+ var controlID = '-internal-media-controls-download-button';
+ var button = mediaControlsElement(window.internals.shadowRoot(videoElement).firstChild, controlID);
+ if (!button)
+ throw 'Failed to find download button';
+ return button;
+}
+
+function fullscreenButton(videoElement) {
+ var controlID = '-webkit-media-controls-fullscreen-button';
+ var button = mediaControlsElement(window.internals.shadowRoot(videoElement).firstChild, controlID);
+ if (!button)
+ throw 'Failed to find fullscreen button';
+ return button;
+}
+
function overlayCastButton(videoElement)
{
var controlID = '-internal-media-controls-overlay-cast-button';

Powered by Google App Engine
This is Rietveld 408576698