summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormfoltz <mfoltz@chromium.org>2014-08-28 14:55:43 -0700
committerCommit bot <commit-bot@chromium.org>2014-08-28 21:56:40 +0000
commit93727f756a29c617d0f321386e09bf8a89eefc96 (patch)
treef5f39d743c7df042fd9990ad56d5b5b534c19e04
parent9e8ca6bef7de6728ea12d83ec15b17bf2d79473b (diff)
downloadchromium_src-93727f756a29c617d0f321386e09bf8a89eefc96.zip
chromium_src-93727f756a29c617d0f321386e09bf8a89eefc96.tar.gz
chromium_src-93727f756a29c617d0f321386e09bf8a89eefc96.tar.bz2
Documentation updates for chrome.tabCapture.
BUG=338449 Review URL: https://codereview.chromium.org/503503003 Cr-Commit-Position: refs/heads/master@{#292474}
-rw-r--r--chrome/common/extensions/api/tab_capture.idl15
1 files changed, 10 insertions, 5 deletions
diff --git a/chrome/common/extensions/api/tab_capture.idl b/chrome/common/extensions/api/tab_capture.idl
index 7e3e2a2..978c235 100644
--- a/chrome/common/extensions/api/tab_capture.idl
+++ b/chrome/common/extensions/api/tab_capture.idl
@@ -47,12 +47,15 @@ namespace tabCapture {
callback GetCapturedTabsCallback = void (CaptureInfo[] result);
interface Functions {
- // Captures the visible area of the currently active tab.
- // This method can only be used on the currently active page after the
- // extension has been <em>invoked</em>, similar to the way that
- // <a href="activeTab.html">activeTab</a> works.
+ // Captures the visible area of the currently active tab. Capture can
+ // only be started on the currently active tab after the extension has been
+ // <em>invoked</em>. Capture is maintained across page navigations within
+ // the tab, and stops when the tab is closed, or the media stream is closed
+ // by the extension.
+ //
// |options| : Configures the returned media stream.
- // |callback| : Callback with either the stream returned or null.
+ // |callback| : Callback with either the tab capture stream or
+ // <code>null</code>.
static void capture(CaptureOptions options,
GetTabMediaCallback callback);
@@ -61,6 +64,7 @@ namespace tabCapture {
// This allows extensions to inform the user that there is an existing
// tab capture that would prevent a new tab capture from succeeding (or
// to prevent redundant requests for the same tab).
+ // |callback| : Callback invoked with CaptureInfo[] for captured tabs.
static void getCapturedTabs(GetCapturedTabsCallback callback);
};
@@ -68,6 +72,7 @@ namespace tabCapture {
// Event fired when the capture status of a tab changes.
// This allows extension authors to keep track of the capture status of
// tabs to keep UI elements like page actions and infobars in sync.
+ // |info| : CaptureInfo with new capture status for the tab.
static void onStatusChanged(CaptureInfo info);
};