| 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 12 matching lines...) Expand all Loading... |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef MediaStreamTrack_h | 26 #ifndef MediaStreamTrack_h |
| 27 #define MediaStreamTrack_h | 27 #define MediaStreamTrack_h |
| 28 | 28 |
| 29 #include "bindings/core/v8/ActiveScriptWrappable.h" | 29 #include "bindings/core/v8/ActiveScriptWrappable.h" |
| 30 #include "core/dom/ActiveDOMObject.h" | 30 #include "core/dom/ActiveDOMObject.h" |
| 31 #include "modules/EventTargetModules.h" | 31 #include "modules/EventTargetModules.h" |
| 32 #include "modules/ModulesExport.h" | 32 #include "modules/ModulesExport.h" |
| 33 #include "modules/mediastream/SourceInfo.h" | |
| 34 #include "platform/mediastream/MediaStreamDescriptor.h" | 33 #include "platform/mediastream/MediaStreamDescriptor.h" |
| 35 #include "platform/mediastream/MediaStreamSource.h" | 34 #include "platform/mediastream/MediaStreamSource.h" |
| 36 #include "public/platform/WebMediaConstraints.h" | 35 #include "public/platform/WebMediaConstraints.h" |
| 37 #include "wtf/Forward.h" | 36 #include "wtf/Forward.h" |
| 38 #include <memory> | 37 #include <memory> |
| 39 | 38 |
| 40 namespace blink { | 39 namespace blink { |
| 41 | 40 |
| 42 class AudioSourceProvider; | 41 class AudioSourceProvider; |
| 43 class ExceptionState; | 42 class ExceptionState; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 61 String label() const; | 60 String label() const; |
| 62 bool remote() const; | 61 bool remote() const; |
| 63 | 62 |
| 64 bool enabled() const; | 63 bool enabled() const; |
| 65 void setEnabled(bool); | 64 void setEnabled(bool); |
| 66 | 65 |
| 67 bool muted() const; | 66 bool muted() const; |
| 68 | 67 |
| 69 String readyState() const; | 68 String readyState() const; |
| 70 | 69 |
| 71 static void getSources(ExecutionContext*, | |
| 72 MediaStreamTrackSourcesCallback*, | |
| 73 ExceptionState&); | |
| 74 void stopTrack(ExceptionState&); | 70 void stopTrack(ExceptionState&); |
| 75 virtual MediaStreamTrack* clone(ExecutionContext*); | 71 virtual MediaStreamTrack* clone(ExecutionContext*); |
| 76 | 72 |
| 77 void getConstraints(MediaTrackConstraints&); | 73 void getConstraints(MediaTrackConstraints&); |
| 78 | 74 |
| 79 // This function is called when constrains have been successfully applied. | 75 // This function is called when constrains have been successfully applied. |
| 80 // Called from UserMediaRequest when it succeeds. It is not IDL-exposed. | 76 // Called from UserMediaRequest when it succeeds. It is not IDL-exposed. |
| 81 void setConstraints(const WebMediaConstraints&); | 77 void setConstraints(const WebMediaConstraints&); |
| 82 | 78 |
| 83 void getSettings(MediaTrackSettings&); | 79 void getSettings(MediaTrackSettings&); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 bool m_stopped; | 118 bool m_stopped; |
| 123 Member<MediaStreamComponent> m_component; | 119 Member<MediaStreamComponent> m_component; |
| 124 WebMediaConstraints m_constraints; | 120 WebMediaConstraints m_constraints; |
| 125 }; | 121 }; |
| 126 | 122 |
| 127 typedef HeapVector<Member<MediaStreamTrack>> MediaStreamTrackVector; | 123 typedef HeapVector<Member<MediaStreamTrack>> MediaStreamTrackVector; |
| 128 | 124 |
| 129 } // namespace blink | 125 } // namespace blink |
| 130 | 126 |
| 131 #endif // MediaStreamTrack_h | 127 #endif // MediaStreamTrack_h |
| OLD | NEW |