function createOverlay(shadowRoot, titleText, subtitleText)
{
var shadowContainer = document.createElement("div");
shadowContainer.setAttribute("pseudo", "-webkit-snapshotted-plugin-content");
var overlay = shadowContainer.appendChild(document.createElement("div"));
overlay.setAttribute("aria-label", titleText + ": " + subtitleText);
overlay.setAttribute("role", "button");
overlay.className = "snapshot-overlay";
var snapshotLabel = overlay.appendChild(document.createElement("div"));
snapshotLabel.className = "snapshot-label";
var title = snapshotLabel.appendChild(document.createElement("div"));
title.className = "snapshot-title";
title.textContent = titleText;
var subtitle = snapshotLabel.appendChild(document.createElement("div"));
subtitle.className = "snapshot-subtitle";
subtitle.textContent = subtitleText;
shadowRoot.appendChild(shadowContainer);
};