Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // An API for tab media streams. | 5 // Use the <code>chrome.tabCapture</code> module to interact with tab media |
| 6 | 6 // streams. |
|
epeterson
2013/06/13 03:24:28
Added some tech-writing flair.
not at google - send to devlin
2013/06/19 16:47:16
sweet
| |
| 7 namespace tabCapture { | 7 namespace tabCapture { |
| 8 | 8 |
| 9 enum TabCaptureState { | 9 enum TabCaptureState { |
| 10 pending, | 10 pending, |
| 11 active, | 11 active, |
| 12 stopped, | 12 stopped, |
| 13 error | 13 error |
| 14 }; | 14 }; |
| 15 | 15 |
| 16 dictionary CaptureInfo { | 16 dictionary CaptureInfo { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 interface Events { | 67 interface Events { |
| 68 // Event fired when the capture status of a tab changes. | 68 // Event fired when the capture status of a tab changes. |
| 69 // This allows extension authors to keep track of the capture status of | 69 // This allows extension authors to keep track of the capture status of |
| 70 // tabs to keep UI elements like page actions and infobars in sync. | 70 // tabs to keep UI elements like page actions and infobars in sync. |
| 71 static void onStatusChanged(CaptureInfo info); | 71 static void onStatusChanged(CaptureInfo info); |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 }; | 74 }; |
| OLD | NEW |