| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 } | 137 } |
| 138 | 138 |
| 139 bool RTCDataChannel::negotiated() const { | 139 bool RTCDataChannel::negotiated() const { |
| 140 return m_handler->negotiated(); | 140 return m_handler->negotiated(); |
| 141 } | 141 } |
| 142 | 142 |
| 143 unsigned short RTCDataChannel::id() const { | 143 unsigned short RTCDataChannel::id() const { |
| 144 return m_handler->id(); | 144 return m_handler->id(); |
| 145 } | 145 } |
| 146 | 146 |
| 147 String RTCDataChannel::readyState() const { | 147 String RTCDataChannel::getReadyState() const { |
| 148 switch (m_readyState) { | 148 switch (m_readyState) { |
| 149 case ReadyStateConnecting: | 149 case ReadyStateConnecting: |
| 150 return "connecting"; | 150 return "connecting"; |
| 151 case ReadyStateOpen: | 151 case ReadyStateOpen: |
| 152 return "open"; | 152 return "open"; |
| 153 case ReadyStateClosing: | 153 case ReadyStateClosing: |
| 154 return "closing"; | 154 return "closing"; |
| 155 case ReadyStateClosed: | 155 case ReadyStateClosed: |
| 156 return "closed"; | 156 return "closed"; |
| 157 } | 157 } |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 events.clear(); | 372 events.clear(); |
| 373 } | 373 } |
| 374 | 374 |
| 375 DEFINE_TRACE(RTCDataChannel) { | 375 DEFINE_TRACE(RTCDataChannel) { |
| 376 visitor->trace(m_scheduledEvents); | 376 visitor->trace(m_scheduledEvents); |
| 377 EventTargetWithInlineData::trace(visitor); | 377 EventTargetWithInlineData::trace(visitor); |
| 378 ActiveDOMObject::trace(visitor); | 378 ActiveDOMObject::trace(visitor); |
| 379 } | 379 } |
| 380 | 380 |
| 381 } // namespace blink | 381 } // namespace blink |
| OLD | NEW |