chrome.desktopCapture and chrome.tabCapture

as close as possible to description on 
https://developer.chrome.com/extensions/desktopCapture
and
https://developer.chrome.com/extensions/tabCapture