| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Ericsson AB. All rights reserved. | 3 * Copyright (C) 2011 Ericsson AB. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 bool MediaStreamTrack::muted() const | 108 bool MediaStreamTrack::muted() const |
| 109 { | 109 { |
| 110 return m_component->muted(); | 110 return m_component->muted(); |
| 111 } | 111 } |
| 112 | 112 |
| 113 bool MediaStreamTrack::remote() const | 113 bool MediaStreamTrack::remote() const |
| 114 { | 114 { |
| 115 return m_component->source()->remote(); | 115 return m_component->source()->remote(); |
| 116 } | 116 } |
| 117 | 117 |
| 118 bool MediaStreamTrack::readonly() const | |
| 119 { | |
| 120 return m_component->source()->readonly(); | |
| 121 } | |
| 122 | |
| 123 String MediaStreamTrack::readyState() const | 118 String MediaStreamTrack::readyState() const |
| 124 { | 119 { |
| 125 if (ended()) | 120 if (ended()) |
| 126 return "ended"; | 121 return "ended"; |
| 127 | 122 |
| 128 switch (m_readyState) { | 123 switch (m_readyState) { |
| 129 case MediaStreamSource::ReadyStateLive: | 124 case MediaStreamSource::ReadyStateLive: |
| 130 return "live"; | 125 return "live"; |
| 131 case MediaStreamSource::ReadyStateMuted: | 126 case MediaStreamSource::ReadyStateMuted: |
| 132 return "muted"; | 127 return "muted"; |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 | 258 |
| 264 DEFINE_TRACE(MediaStreamTrack) | 259 DEFINE_TRACE(MediaStreamTrack) |
| 265 { | 260 { |
| 266 visitor->trace(m_registeredMediaStreams); | 261 visitor->trace(m_registeredMediaStreams); |
| 267 visitor->trace(m_component); | 262 visitor->trace(m_component); |
| 268 EventTargetWithInlineData::trace(visitor); | 263 EventTargetWithInlineData::trace(visitor); |
| 269 ActiveDOMObject::trace(visitor); | 264 ActiveDOMObject::trace(visitor); |
| 270 } | 265 } |
| 271 | 266 |
| 272 } // namespace blink | 267 } // namespace blink |
| OLD | NEW |