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

Side by Side Diff: chrome/common/extensions/api/desktop_capture.json

Issue 1644073002: Desktop Share Audio User Permission (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [ 5 [
6 { 6 {
7 "namespace": "desktopCapture", 7 "namespace": "desktopCapture",
8 "description": "Desktop Capture API that can be used to capture content of s creen, individual windows or tabs.", 8 "description": "Desktop Capture API that can be used to capture content of s creen, individual windows or tabs.",
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 15 matching lines...) Expand all
26 "name": "sources", 26 "name": "sources",
27 "description": "Set of sources that should be shown to the user." 27 "description": "Set of sources that should be shown to the user."
28 }, 28 },
29 { 29 {
30 "$ref": "tabs.Tab", 30 "$ref": "tabs.Tab",
31 "name": "targetTab", 31 "name": "targetTab",
32 "optional": true, 32 "optional": true,
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 mat ches <code>tab.url</code>." 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 mat ches <code>tab.url</code>."
34 }, 34 },
35 { 35 {
36 "type": "boolean",
37 "name": "request_audio_permission",
Ken Rockot(use gerrit already) 2016/01/28 19:25:54 Proper naming scheme for object fields would be re
qiangchen 2016/02/02 16:36:42 N/A now. Look at Patch 3's json file for new API c
38 "optional": true,
39 "description": "If set true, the picker window will ask user's permi ssion for audio sharing; otherwise, picker window will not ask, and we defaults to denying audio sharing."
40 },
41 {
36 "type": "function", 42 "type": "function",
37 "name": "callback", 43 "name": "callback",
38 "parameters": [ 44 "parameters": [
39 { 45 {
40 "name": "streamId", 46 "name": "streamId",
41 "type": "string", 47 "type": "string",
42 "description": "An opaque string that can be passed to <code>get UserMedia()</code> API to generate media stream that corresponds to the source s elected 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 <c ode>streamId</code> can be used only once and expires after a few seconds when i t is not used." 48 "description": "An opaque string that can be passed to <code>get UserMedia()</code> API to generate media stream that corresponds to the source s elected 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 <c ode>streamId</code> can be used only once and expires after a few seconds when i t is not used."
43 } 49 }
44 ] 50 ]
45 } 51 }
(...skipping 11 matching lines...) Expand all
57 { 63 {
58 "name": "desktopMediaRequestId", 64 "name": "desktopMediaRequestId",
59 "type": "integer", 65 "type": "integer",
60 "description": "Id returned by chooseDesktopMedia()" 66 "description": "Id returned by chooseDesktopMedia()"
61 } 67 }
62 ] 68 ]
63 } 69 }
64 ] 70 ]
65 } 71 }
66 ] 72 ]
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698