| 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 // An API for tab media streams. |
| 6 | |
| 7 namespace tabCapture { | 6 namespace tabCapture { |
| 8 | 7 |
| 9 enum TabCaptureState { | 8 enum TabCaptureState { |
| 10 pending, | 9 pending, |
| 11 active, | 10 active, |
| 12 stopped, | 11 stopped, |
| 13 error | 12 error |
| 14 }; | 13 }; |
| 15 | 14 |
| 16 dictionary CaptureInfo { | 15 dictionary CaptureInfo { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 }; | 64 }; |
| 66 | 65 |
| 67 interface Events { | 66 interface Events { |
| 68 // Event fired when the capture status of a tab changes. | 67 // Event fired when the capture status of a tab changes. |
| 69 // This allows extension authors to keep track of the capture status of | 68 // 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. | 69 // tabs to keep UI elements like page actions and infobars in sync. |
| 71 static void onStatusChanged(CaptureInfo info); | 70 static void onStatusChanged(CaptureInfo info); |
| 72 }; | 71 }; |
| 73 | 72 |
| 74 }; | 73 }; |
| OLD | NEW |