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

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

Issue 1514113005: Fix clone() behavior on CanvasCaptureMediaStreamTrack (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@spec-change
Patch Set: perkj@ comments. Created 5 years 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
« no previous file with comments | « third_party/WebKit/Source/modules/mediacapturefromelement/CanvasCaptureMediaStreamTrack.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 bool enabled() const; 61 bool enabled() const;
62 void setEnabled(bool); 62 void setEnabled(bool);
63 63
64 bool muted() const; 64 bool muted() const;
65 65
66 String readyState() const; 66 String readyState() const;
67 67
68 static void getSources(ExecutionContext*, MediaStreamTrackSourcesCallback*, ExceptionState&); 68 static void getSources(ExecutionContext*, MediaStreamTrackSourcesCallback*, ExceptionState&);
69 void stopTrack(ExceptionState&); 69 void stopTrack(ExceptionState&);
70 MediaStreamTrack* clone(ExecutionContext*); 70 virtual MediaStreamTrack* clone(ExecutionContext*);
71 71
72 DEFINE_ATTRIBUTE_EVENT_LISTENER(mute); 72 DEFINE_ATTRIBUTE_EVENT_LISTENER(mute);
73 DEFINE_ATTRIBUTE_EVENT_LISTENER(unmute); 73 DEFINE_ATTRIBUTE_EVENT_LISTENER(unmute);
74 DEFINE_ATTRIBUTE_EVENT_LISTENER(ended); 74 DEFINE_ATTRIBUTE_EVENT_LISTENER(ended);
75 75
76 MediaStreamComponent* component() { return m_component; } 76 MediaStreamComponent* component() { return m_component; }
77 bool ended() const; 77 bool ended() const;
78 78
79 void registerMediaStream(MediaStream*); 79 void registerMediaStream(MediaStream*);
80 void unregisterMediaStream(MediaStream*); 80 void unregisterMediaStream(MediaStream*);
(...skipping 24 matching lines...) Expand all
105 bool m_isIteratingRegisteredMediaStreams; 105 bool m_isIteratingRegisteredMediaStreams;
106 bool m_stopped; 106 bool m_stopped;
107 Member<MediaStreamComponent> m_component; 107 Member<MediaStreamComponent> m_component;
108 }; 108 };
109 109
110 typedef HeapVector<Member<MediaStreamTrack>> MediaStreamTrackVector; 110 typedef HeapVector<Member<MediaStreamTrack>> MediaStreamTrackVector;
111 111
112 } // namespace blink 112 } // namespace blink
113 113
114 #endif // MediaStreamTrack_h 114 #endif // MediaStreamTrack_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/mediacapturefromelement/CanvasCaptureMediaStreamTrack.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698