| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 case MediaStreamSource::ReadyStateMuted: | 112 case MediaStreamSource::ReadyStateMuted: |
| 113 return "muted"; | 113 return "muted"; |
| 114 case MediaStreamSource::ReadyStateEnded: | 114 case MediaStreamSource::ReadyStateEnded: |
| 115 return "ended"; | 115 return "ended"; |
| 116 } | 116 } |
| 117 | 117 |
| 118 ASSERT_NOT_REACHED(); | 118 ASSERT_NOT_REACHED(); |
| 119 return String(); | 119 return String(); |
| 120 } | 120 } |
| 121 | 121 |
| 122 void MediaStreamTrack::getSources(ExecutionContext* context, PassRefPtr<MediaStr
eamTrackSourcesCallback> callback, ExceptionState& exceptionState) | 122 void MediaStreamTrack::getSources(ExecutionContext* context, PassOwnPtr<MediaStr
eamTrackSourcesCallback> callback, ExceptionState& exceptionState) |
| 123 { | 123 { |
| 124 RefPtr<MediaStreamTrackSourcesRequest> request = MediaStreamTrackSourcesRequ
est::create(context->securityOrigin()->toString(), callback); | 124 RefPtr<MediaStreamTrackSourcesRequest> request = MediaStreamTrackSourcesRequ
est::create(context->securityOrigin()->toString(), callback); |
| 125 MediaStreamCenter::instance().getMediaStreamTrackSources(request.release()); | 125 MediaStreamCenter::instance().getMediaStreamTrackSources(request.release()); |
| 126 } | 126 } |
| 127 | 127 |
| 128 void MediaStreamTrack::stopTrack(ExceptionState& exceptionState) | 128 void MediaStreamTrack::stopTrack(ExceptionState& exceptionState) |
| 129 { | 129 { |
| 130 if (ended()) | 130 if (ended()) |
| 131 return; | 131 return; |
| 132 | 132 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 { | 202 { |
| 203 return EventTargetNames::MediaStreamTrack; | 203 return EventTargetNames::MediaStreamTrack; |
| 204 } | 204 } |
| 205 | 205 |
| 206 ExecutionContext* MediaStreamTrack::executionContext() const | 206 ExecutionContext* MediaStreamTrack::executionContext() const |
| 207 { | 207 { |
| 208 return ActiveDOMObject::executionContext(); | 208 return ActiveDOMObject::executionContext(); |
| 209 } | 209 } |
| 210 | 210 |
| 211 } // namespace WebCore | 211 } // namespace WebCore |
| OLD | NEW |