From c0c366c3c0ddb5166ad7d242bb31d06270e026b9 Mon Sep 17 00:00:00 2001 From: Jordan Bayles Date: Mon, 27 Sep 2021 18:07:29 -0700 Subject: [PATCH] [Region Capture #1] Add new produceCropId() API This patch adds a new produceCropId() API to mediaDevices. This API is called with a DIV or IFRAME element, and adds a new base::UnguessableToken value to that element's rare data structure. This token value will be used in followup patches in order to keep track of an element's location in the page and viewport. Based on the following design document: https://docs.google.com/document/d/1dULARMnMZggfWqa_Ti_GrINRNYXGIli3XK9brzAKEV8/ Bug: 1247761 Change-Id: I01cd67e2d4e3dfa7a86289f876e48c8b55095d0a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3173396 Commit-Queue: Jordan Bayles Reviewed-by: Elad Alon Reviewed-by: mark a. foltz Reviewed-by: Joey Arhar Cr-Commit-Position: refs/heads/main@{#925544} --- .../MediaDevices-produceCropId.https.html | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 mediacapture-streams/MediaDevices-produceCropId.https.html diff --git a/mediacapture-streams/MediaDevices-produceCropId.https.html b/mediacapture-streams/MediaDevices-produceCropId.https.html new file mode 100644 index 00000000000000..682caad7e7de5e --- /dev/null +++ b/mediacapture-streams/MediaDevices-produceCropId.https.html @@ -0,0 +1,65 @@ + + + +Test navigator.mediaDevices.produceCropId() + + + + +

Description

+

This test checks for the behavior of the +navigator.mediaDevices.produceCropId() method.

+ +
+