| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollectedWi
llBeGarbageCollectedFinalized<MediaStreamTrack>); | 48 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollectedWi
llBeGarbageCollectedFinalized<MediaStreamTrack>); |
| 49 DEFINE_WRAPPERTYPEINFO(); | 49 DEFINE_WRAPPERTYPEINFO(); |
| 50 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaStreamTrack); | 50 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaStreamTrack); |
| 51 public: | 51 public: |
| 52 static MediaStreamTrack* create(ExecutionContext*, MediaStreamComponent*); | 52 static MediaStreamTrack* create(ExecutionContext*, MediaStreamComponent*); |
| 53 virtual ~MediaStreamTrack(); | 53 virtual ~MediaStreamTrack(); |
| 54 | 54 |
| 55 String kind() const; | 55 String kind() const; |
| 56 String id() const; | 56 String id() const; |
| 57 String label() const; | 57 String label() const; |
| 58 bool remote() const; |
| 59 bool readonly() const; |
| 58 | 60 |
| 59 bool enabled() const; | 61 bool enabled() const; |
| 60 void setEnabled(bool); | 62 void setEnabled(bool); |
| 61 | 63 |
| 62 bool muted() const; | 64 bool muted() const; |
| 63 | 65 |
| 64 String readyState() const; | 66 String readyState() const; |
| 65 | 67 |
| 66 static void getSources(ExecutionContext*, MediaStreamTrackSourcesCallback*,
ExceptionState&); | 68 static void getSources(ExecutionContext*, MediaStreamTrackSourcesCallback*,
ExceptionState&); |
| 67 void stopTrack(ExceptionState&); | 69 void stopTrack(ExceptionState&); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 bool m_isIteratingRegisteredMediaStreams; | 103 bool m_isIteratingRegisteredMediaStreams; |
| 102 bool m_stopped; | 104 bool m_stopped; |
| 103 RefPtr<MediaStreamComponent> m_component; | 105 RefPtr<MediaStreamComponent> m_component; |
| 104 }; | 106 }; |
| 105 | 107 |
| 106 typedef HeapVector<Member<MediaStreamTrack> > MediaStreamTrackVector; | 108 typedef HeapVector<Member<MediaStreamTrack> > MediaStreamTrackVector; |
| 107 | 109 |
| 108 } // namespace blink | 110 } // namespace blink |
| 109 | 111 |
| 110 #endif // MediaStreamTrack_h | 112 #endif // MediaStreamTrack_h |
| OLD | NEW |