| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 if (!ended()) | 104 if (!ended()) |
| 105 MediaStreamCenter::instance().didSetMediaStreamTrackEnabled(m_component.
get()); | 105 MediaStreamCenter::instance().didSetMediaStreamTrackEnabled(m_component.
get()); |
| 106 } | 106 } |
| 107 | 107 |
| 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 |
| 114 { |
| 115 return m_component->source()->remote(); |
| 116 } |
| 117 |
| 118 bool MediaStreamTrack::readonly() const |
| 119 { |
| 120 return m_component->source()->readonly(); |
| 121 } |
| 122 |
| 113 String MediaStreamTrack::readyState() const | 123 String MediaStreamTrack::readyState() const |
| 114 { | 124 { |
| 115 if (ended()) | 125 if (ended()) |
| 116 return "ended"; | 126 return "ended"; |
| 117 | 127 |
| 118 switch (m_readyState) { | 128 switch (m_readyState) { |
| 119 case MediaStreamSource::ReadyStateLive: | 129 case MediaStreamSource::ReadyStateLive: |
| 120 return "live"; | 130 return "live"; |
| 121 case MediaStreamSource::ReadyStateMuted: | 131 case MediaStreamSource::ReadyStateMuted: |
| 122 return "muted"; | 132 return "muted"; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 return ActiveDOMObject::executionContext(); | 245 return ActiveDOMObject::executionContext(); |
| 236 } | 246 } |
| 237 | 247 |
| 238 void MediaStreamTrack::trace(Visitor* visitor) | 248 void MediaStreamTrack::trace(Visitor* visitor) |
| 239 { | 249 { |
| 240 visitor->trace(m_registeredMediaStreams); | 250 visitor->trace(m_registeredMediaStreams); |
| 241 EventTargetWithInlineData::trace(visitor); | 251 EventTargetWithInlineData::trace(visitor); |
| 242 } | 252 } |
| 243 | 253 |
| 244 } // namespace blink | 254 } // namespace blink |
| OLD | NEW |