OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2015 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. |
| 4 |
| 5 // The <code>chrome.tabCapturePrivate</code> API provides extra functionality |
| 6 // needed by the Chrome Media Router. |
| 7 namespace tabCapturePrivate { |
| 8 callback DoneCallback = void (); |
| 9 |
| 10 interface Functions { |
| 11 // Registers an off-screen tab as a "receiving browsing context" in a |
| 12 // PresentationSession (see https://w3c.github.io/presentation-api). The |
| 13 // two arguments are strings identifying the off-screen tab and the |
| 14 // PresentationSession. The |offscreenTabId| is found as a property in the |
| 15 // MediaStream object returned by chrome.tabCapture.captureOffscreenTab(). |
| 16 // |
| 17 // See chrome/test/data/extensions/api_test/tab_capture/api_tests.js for |
| 18 // usage example. |
| 19 static void registerOffscreenTabAsPresentation( |
| 20 DOMString offscreenTabId, |
| 21 DOMString presentationId, |
| 22 DoneCallback callback); |
| 23 }; |
| 24 }; |
OLD | NEW |