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

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

Issue 85263006: Make IDL Callbacks non-refcounted by default (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Refinements Created 7 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 | Annotate | Revision Log
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 String id() const; 53 String id() const;
54 String label() const; 54 String label() const;
55 55
56 bool enabled() const; 56 bool enabled() const;
57 void setEnabled(bool); 57 void setEnabled(bool);
58 58
59 void didEndTrack(); 59 void didEndTrack();
60 60
61 String readyState() const; 61 String readyState() const;
62 62
63 static void getSources(ExecutionContext*, PassRefPtr<MediaStreamTrackSources Callback>, ExceptionState&); 63 static void getSources(ExecutionContext*, PassOwnPtr<MediaStreamTrackSources Callback>, ExceptionState&);
64 void stopTrack(ExceptionState&); 64 void stopTrack(ExceptionState&);
65 65
66 DEFINE_ATTRIBUTE_EVENT_LISTENER(mute); 66 DEFINE_ATTRIBUTE_EVENT_LISTENER(mute);
67 DEFINE_ATTRIBUTE_EVENT_LISTENER(unmute); 67 DEFINE_ATTRIBUTE_EVENT_LISTENER(unmute);
68 DEFINE_ATTRIBUTE_EVENT_LISTENER(ended); 68 DEFINE_ATTRIBUTE_EVENT_LISTENER(ended);
69 69
70 MediaStreamComponent* component(); 70 MediaStreamComponent* component();
71 bool ended() const; 71 bool ended() const;
72 72
73 // EventTarget 73 // EventTarget
(...skipping 11 matching lines...) Expand all
85 85
86 bool m_stopped; 86 bool m_stopped;
87 RefPtr<MediaStreamComponent> m_component; 87 RefPtr<MediaStreamComponent> m_component;
88 }; 88 };
89 89
90 typedef Vector<RefPtr<MediaStreamTrack> > MediaStreamTrackVector; 90 typedef Vector<RefPtr<MediaStreamTrack> > MediaStreamTrackVector;
91 91
92 } // namespace WebCore 92 } // namespace WebCore
93 93
94 #endif // MediaStreamTrack_h 94 #endif // MediaStreamTrack_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698