| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 119 |
| 120 ASSERT_NOT_REACHED(); | 120 ASSERT_NOT_REACHED(); |
| 121 return String(); | 121 return String(); |
| 122 } | 122 } |
| 123 | 123 |
| 124 void MediaStreamTrack::getSources(ScriptExecutionContext* context, PassRefPtr<Me
diaStreamTrackSourcesCallback> callback, ExceptionState& es) | 124 void MediaStreamTrack::getSources(ScriptExecutionContext* context, PassRefPtr<Me
diaStreamTrackSourcesCallback> callback, ExceptionState& es) |
| 125 { | 125 { |
| 126 RefPtr<MediaStreamTrackSourcesRequest> request = MediaStreamTrackSourcesRequ
est::create(context, callback); | 126 RefPtr<MediaStreamTrackSourcesRequest> request = MediaStreamTrackSourcesRequ
est::create(context, callback); |
| 127 bool ok = MediaStreamCenter::instance().getMediaStreamTrackSources(request.r
elease()); | 127 bool ok = MediaStreamCenter::instance().getMediaStreamTrackSources(request.r
elease()); |
| 128 if (!ok) | 128 if (!ok) |
| 129 es.throwDOMException(NotSupportedError); | 129 es.throwUninformativeAndGenericDOMException(NotSupportedError); |
| 130 } | 130 } |
| 131 | 131 |
| 132 bool MediaStreamTrack::ended() const | 132 bool MediaStreamTrack::ended() const |
| 133 { | 133 { |
| 134 return m_stopped || (m_component->source()->readyState() == MediaStreamSourc
e::ReadyStateEnded); | 134 return m_stopped || (m_component->source()->readyState() == MediaStreamSourc
e::ReadyStateEnded); |
| 135 } | 135 } |
| 136 | 136 |
| 137 void MediaStreamTrack::sourceChangedState() | 137 void MediaStreamTrack::sourceChangedState() |
| 138 { | 138 { |
| 139 if (m_stopped) | 139 if (m_stopped) |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 { | 186 { |
| 187 return &m_eventTargetData; | 187 return &m_eventTargetData; |
| 188 } | 188 } |
| 189 | 189 |
| 190 EventTargetData* MediaStreamTrack::ensureEventTargetData() | 190 EventTargetData* MediaStreamTrack::ensureEventTargetData() |
| 191 { | 191 { |
| 192 return &m_eventTargetData; | 192 return &m_eventTargetData; |
| 193 } | 193 } |
| 194 | 194 |
| 195 } // namespace WebCore | 195 } // namespace WebCore |
| OLD | NEW |