| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // The <code>chrome.cast.devicesPrivate</code> API manages starting and stopping | 5 // The <code>chrome.cast.devicesPrivate</code> API manages starting and stopping |
| 6 // casts based on receiver names. It also provides a list of available | 6 // casts based on receiver names. It also provides a list of available |
| 7 // receivers. | 7 // receivers. |
| 8 [use_movable_types=true] namespace cast.devicesPrivate { | 8 namespace cast.devicesPrivate { |
| 9 // A cast receiver is an actual cast device. It has a unique |id| and a | 9 // A cast receiver is an actual cast device. It has a unique |id| and a |
| 10 // non-unique |name| which is how people identify it. | 10 // non-unique |name| which is how people identify it. |
| 11 dictionary Receiver { | 11 dictionary Receiver { |
| 12 // The unique id of a receiver. | 12 // The unique id of a receiver. |
| 13 DOMString id; | 13 DOMString id; |
| 14 | 14 |
| 15 // The human-readable name of the receiver. | 15 // The human-readable name of the receiver. |
| 16 DOMString name; | 16 DOMString name; |
| 17 }; | 17 }; |
| 18 | 18 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // Stops a cast. This should always be a user-initiated stop. | 54 // Stops a cast. This should always be a user-initiated stop. |
| 55 static void stopCast(DOMString reason); | 55 static void stopCast(DOMString reason); |
| 56 | 56 |
| 57 // Starts a new cast. | 57 // Starts a new cast. |
| 58 // | 58 // |
| 59 // |receiverId|: The receiver ID to initiate a cast on. The implementation | 59 // |receiverId|: The receiver ID to initiate a cast on. The implementation |
| 60 // will handle selecting an appropriate activity. | 60 // will handle selecting an appropriate activity. |
| 61 static void startCast(DOMString receiverId); | 61 static void startCast(DOMString receiverId); |
| 62 }; | 62 }; |
| 63 }; | 63 }; |
| OLD | NEW |