| 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 // Use the <code>chrome.tabCapture</code> API to interact with tab media | 5 // Use the <code>chrome.tabCapture</code> API to interact with tab media |
| 6 // streams. | 6 // streams. |
| 7 [use_movable_types=true] 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 { |
| 17 // The id of the tab whose status changed. | 17 // The id of the tab whose status changed. |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 interface Events { | 104 interface Events { |
| 105 // Event fired when the capture status of a tab changes. | 105 // Event fired when the capture status of a tab changes. |
| 106 // This allows extension authors to keep track of the capture status of | 106 // This allows extension authors to keep track of the capture status of |
| 107 // tabs to keep UI elements like page actions in sync. | 107 // tabs to keep UI elements like page actions in sync. |
| 108 // |info| : CaptureInfo with new capture status for the tab. | 108 // |info| : CaptureInfo with new capture status for the tab. |
| 109 static void onStatusChanged(CaptureInfo info); | 109 static void onStatusChanged(CaptureInfo info); |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 }; | 112 }; |
| OLD | NEW |