| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // API for communicating with a Google Cast device over an authenticated | 5 // API for communicating with a Google Cast device over an authenticated |
| 6 // channel. | 6 // channel. |
| 7 namespace cast.channel { | 7 namespace cast.channel { |
| 8 | 8 |
| 9 // The state of the channel. | 9 // The state of the channel. |
| 10 enum ReadyState { | 10 enum ReadyState { |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 interface Events { | 161 interface Events { |
| 162 // Fired when a message is received on an open channel. | 162 // Fired when a message is received on an open channel. |
| 163 static void onMessage(ChannelInfo channel, | 163 static void onMessage(ChannelInfo channel, |
| 164 MessageInfo message); | 164 MessageInfo message); |
| 165 | 165 |
| 166 // Fired when an error occurs as a result of a channel method or a network | 166 // Fired when an error occurs as a result of a channel method or a network |
| 167 // event. | 167 // event. |
| 168 static void onError(ChannelInfo channel); | 168 static void onError(ChannelInfo channel); |
| 169 }; | 169 }; |
| 170 }; | 170 }; |
| OLD | NEW |