| 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": "options", |
| 46 "type": "object", |
| 47 "description": "Contains properties that describe the stream.", |
| 48 "properties": { |
| 49 "canRequestAudioTrack": { |
| 50 "type": "boolean", |
| 51 "description": "True if \"audio\" is included in parameter
sources, and the end user does not uncheck the \"Share audio\" checkbox. Otherwi
se false, and in this case, one should not ask for audio stream through getUserM
edia call." |
| 52 } |
| 53 } |
| 43 } | 54 } |
| 44 ] | 55 ] |
| 45 } | 56 } |
| 46 ], | 57 ], |
| 47 "returns": { | 58 "returns": { |
| 48 "type": "integer", | 59 "type": "integer", |
| 49 "description": "An id that can be passed to cancelChooseDesktopMedia()
in case the prompt need to be canceled." | 60 "description": "An id that can be passed to cancelChooseDesktopMedia()
in case the prompt need to be canceled." |
| 50 } | 61 } |
| 51 }, | 62 }, |
| 52 { | 63 { |
| 53 "name": "cancelChooseDesktopMedia", | 64 "name": "cancelChooseDesktopMedia", |
| 54 "type": "function", | 65 "type": "function", |
| 55 "description": "Hides desktop media picker dialog shown by chooseDesktop
Media().", | 66 "description": "Hides desktop media picker dialog shown by chooseDesktop
Media().", |
| 56 "parameters": [ | 67 "parameters": [ |
| 57 { | 68 { |
| 58 "name": "desktopMediaRequestId", | 69 "name": "desktopMediaRequestId", |
| 59 "type": "integer", | 70 "type": "integer", |
| 60 "description": "Id returned by chooseDesktopMedia()" | 71 "description": "Id returned by chooseDesktopMedia()" |
| 61 } | 72 } |
| 62 ] | 73 ] |
| 63 } | 74 } |
| 64 ] | 75 ] |
| 65 } | 76 } |
| 66 ] | 77 ] |
| OLD | NEW |