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

Unified Diff: chrome/common/extensions/docs/examples/api/desktopCapture/app.js

Issue 529293002: Fix DesktopMediaPickerViews to handle background parent_web_contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2125
Patch Set: Created 6 years, 3 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: chrome/common/extensions/docs/examples/api/desktopCapture/app.js
diff --git a/chrome/common/extensions/docs/examples/api/desktopCapture/app.js b/chrome/common/extensions/docs/examples/api/desktopCapture/app.js
index 72bd1505a9407bcf4761712d95d22da28cd2d148..70b492a17c9273cad07216f16292f9e19848ad0f 100644
--- a/chrome/common/extensions/docs/examples/api/desktopCapture/app.js
+++ b/chrome/common/extensions/docs/examples/api/desktopCapture/app.js
@@ -38,3 +38,9 @@ document.querySelector('#cancel').addEventListener('click', function(e) {
chrome.desktopCapture.cancelChooseDesktopMedia(pending_request_id);
}
});
+
+document.querySelector('#startFromBackgroundPage')
+ .addEventListener('click', function(e) {
+ chrome.runtime.sendMessage(
+ {}, function(response) { console.log(response.farewell); });
+ });

Powered by Google App Engine
This is Rietveld 408576698