Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 22 matching lines...) Expand all Loading... | |
| 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": "function", | 36 "type": "function", |
| 37 "name": "callback", | 37 "name": "callback", |
| 38 "parameters": [ | 38 "parameters": [ |
| 39 { | 39 { |
| 40 "name": "streamId", | 40 "name": "streamId", |
| 41 "type": "string", | 41 "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." | 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." |
| 43 }, | |
| 44 { | |
| 45 "name": "audioApproved", | |
|
Devlin
2016/12/08 19:09:44
Do you think we'd ever want to include more than j
qiangchen
2016/12/08 20:01:28
Good Suggestion.
| |
| 46 "type": "boolean", | |
| 47 "description": "True if the user has approved the audio request. " | |
| 43 } | 48 } |
| 44 ] | 49 ] |
| 45 } | 50 } |
| 46 ], | 51 ], |
| 47 "returns": { | 52 "returns": { |
| 48 "type": "integer", | 53 "type": "integer", |
| 49 "description": "An id that can be passed to cancelChooseDesktopMedia() in case the prompt need to be canceled." | 54 "description": "An id that can be passed to cancelChooseDesktopMedia() in case the prompt need to be canceled." |
| 50 } | 55 } |
| 51 }, | 56 }, |
| 52 { | 57 { |
| 53 "name": "cancelChooseDesktopMedia", | 58 "name": "cancelChooseDesktopMedia", |
| 54 "type": "function", | 59 "type": "function", |
| 55 "description": "Hides desktop media picker dialog shown by chooseDesktop Media().", | 60 "description": "Hides desktop media picker dialog shown by chooseDesktop Media().", |
| 56 "parameters": [ | 61 "parameters": [ |
| 57 { | 62 { |
| 58 "name": "desktopMediaRequestId", | 63 "name": "desktopMediaRequestId", |
| 59 "type": "integer", | 64 "type": "integer", |
| 60 "description": "Id returned by chooseDesktopMedia()" | 65 "description": "Id returned by chooseDesktopMedia()" |
| 61 } | 66 } |
| 62 ] | 67 ] |
| 63 } | 68 } |
| 64 ] | 69 ] |
| 65 } | 70 } |
| 66 ] | 71 ] |
| OLD | NEW |