Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.h

Issue 2489823002: Revert "Remove MediaStreamTrack.getSources()." (Closed)
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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"
33 #include "platform/mediastream/MediaStreamDescriptor.h" 34 #include "platform/mediastream/MediaStreamDescriptor.h"
34 #include "platform/mediastream/MediaStreamSource.h" 35 #include "platform/mediastream/MediaStreamSource.h"
35 #include "public/platform/WebMediaConstraints.h" 36 #include "public/platform/WebMediaConstraints.h"
36 #include "wtf/Forward.h" 37 #include "wtf/Forward.h"
37 #include <memory> 38 #include <memory>
38 39
39 namespace blink { 40 namespace blink {
40 41
41 class AudioSourceProvider; 42 class AudioSourceProvider;
42 class ExceptionState; 43 class ExceptionState;
(...skipping 18 matching lines...) Expand all
61 String label() const; 62 String label() const;
62 bool remote() const; 63 bool remote() const;
63 64
64 bool enabled() const; 65 bool enabled() const;
65 void setEnabled(bool); 66 void setEnabled(bool);
66 67
67 bool muted() const; 68 bool muted() const;
68 69
69 String readyState() const; 70 String readyState() const;
70 71
72 static void getSources(ExecutionContext*,
73 MediaStreamTrackSourcesCallback*,
74 ExceptionState&);
71 void stopTrack(ExceptionState&); 75 void stopTrack(ExceptionState&);
72 virtual MediaStreamTrack* clone(ExecutionContext*); 76 virtual MediaStreamTrack* clone(ExecutionContext*);
73 77
74 void getConstraints(MediaTrackConstraints&); 78 void getConstraints(MediaTrackConstraints&);
75 79
76 // This function is called when constrains have been successfully applied. 80 // This function is called when constrains have been successfully applied.
77 // Called from UserMediaRequest when it succeeds. It is not IDL-exposed. 81 // Called from UserMediaRequest when it succeeds. It is not IDL-exposed.
78 void setConstraints(const WebMediaConstraints&); 82 void setConstraints(const WebMediaConstraints&);
79 83
80 void getSettings(MediaTrackSettings&); 84 void getSettings(MediaTrackSettings&);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 bool m_stopped; 123 bool m_stopped;
120 Member<MediaStreamComponent> m_component; 124 Member<MediaStreamComponent> m_component;
121 WebMediaConstraints m_constraints; 125 WebMediaConstraints m_constraints;
122 }; 126 };
123 127
124 typedef HeapVector<Member<MediaStreamTrack>> MediaStreamTrackVector; 128 typedef HeapVector<Member<MediaStreamTrack>> MediaStreamTrackVector;
125 129
126 } // namespace blink 130 } // namespace blink
127 131
128 #endif // MediaStreamTrack_h 132 #endif // MediaStreamTrack_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698