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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 interface Events { | 154 interface Events { |
155 // Fired when a message is received on an open channel. | 155 // Fired when a message is received on an open channel. |
156 static void onMessage(ChannelInfo channel, | 156 static void onMessage(ChannelInfo channel, |
157 MessageInfo message); | 157 MessageInfo message); |
158 | 158 |
159 // Fired when an error occurs as a result of a channel method or a network | 159 // Fired when an error occurs as a result of a channel method or a network |
160 // event. | 160 // event. |
161 static void onError(ChannelInfo channel); | 161 static void onError(ChannelInfo channel); |
162 }; | 162 }; |
163 }; | 163 }; |
OLD | NEW |