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

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

Issue 2382233002: Hide overflow menu/closed caption list when clicking outside the list (Closed)
Patch Set: applied Mounir's 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/video-controls-overflow-menu-closed-captions-list-hide-on-click-outside.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 ebb609d6c474702afb19d3b8ff65ec19563fba8a..673e92aac340729f0748358ae9e20de04396ab20 100644
--- a/third_party/WebKit/LayoutTests/media/media-controls.js
+++ b/third_party/WebKit/LayoutTests/media/media-controls.js
@@ -55,6 +55,14 @@ function elementCoordinates(element)
return new Array(x, y);
}
+function coordinatesOutsideElement(element)
+{
+ var elementBoundingRect = element.getBoundingClientRect();
+ var x = elementBoundingRect.left - 1;
+ var y = elementBoundingRect.top - 1;
+ return new Array(x, y);
+}
+
function mediaControlsButtonCoordinates(element, id)
{
var button = mediaControlsButton(element, id);
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-closed-captions-list-hide-on-click-outside.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698