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

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

Issue 2431583004: Media Controls: don't activate buttons when tapping on hidden controls. (Closed)
Patch Set: review comments Created 4 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/media-controls-tap-show-controls-without-activating.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 673e92aac340729f0748358ae9e20de04396ab20..98a68f8a6602d2e5ea4d4e12a8bd2880a34e4464 100644
--- a/third_party/WebKit/LayoutTests/media/media-controls.js
+++ b/third_party/WebKit/LayoutTests/media/media-controls.js
@@ -180,3 +180,8 @@ function hasFullscreenButton(element)
var size = mediaControlsButtonDimensions(element, "fullscreen-button");
return size[0] > 0 && size[1] > 0;
}
+
+function isControlsPanelVisible(element)
+{
+ return getComputedStyle(mediaControlsButton(element, "panel")).opacity == "1";
+}
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/media-controls-tap-show-controls-without-activating.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698