1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
7 "namespace": "desktopCapture",
8 "description": "Desktop Capture API that can be used to capture content of screen, individual windows or tabs.",
11 "id": "DesktopCaptureSourceType",
13 "enum": ["screen", "window", "tab"],
14 "description": "Enum used to define set of desktop media sources used in chooseDesktopMedia()."
19 "name": "chooseDesktopMedia",
21 "description": "Shows desktop media picker UI with the specified set of sources.",
25 "items": { "$ref": "DesktopCaptureSourceType" },
27 "description": "Set of sources that should be shown to the user."
33 "description": "Optional tab for which the stream is created. If not specified then the resulting stream can be used only by the calling extension. The stream can only be used by frames in the given tab whose security origin matches <code>tab.url</code>."
42 "description": "An opaque string that can be passed to <code>getUserMedia()</code> API to generate media stream that corresponds to the source selected by the user. If user didn't select any source (i.e. canceled the prompt) then the callback is called with an empty <code>streamId</code>. The created <code>streamId</code> can be used only once and expires after a few seconds when it is not used."
49 "description": "An id that can be passed to cancelChooseDesktopMedia() in case the prompt need to be canceled."
53 "name": "cancelChooseDesktopMedia",
55 "description": "Hides desktop media picker dialog shown by chooseDesktopMedia().",
58 "name": "desktopMediaRequestId",
60 "description": "Id returned by chooseDesktopMedia()"