Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 75 return m_activeSourceBuffers.get(); | 75 return m_activeSourceBuffers.get(); |
| 76 } | 76 } |
| 77 SourceBuffer* addSourceBuffer(const String& type, ExceptionState&); | 77 SourceBuffer* addSourceBuffer(const String& type, ExceptionState&); |
| 78 void removeSourceBuffer(SourceBuffer*, ExceptionState&); | 78 void removeSourceBuffer(SourceBuffer*, ExceptionState&); |
| 79 void setDuration(double, ExceptionState&); | 79 void setDuration(double, ExceptionState&); |
| 80 | 80 |
| 81 DEFINE_ATTRIBUTE_EVENT_LISTENER(sourceopen); | 81 DEFINE_ATTRIBUTE_EVENT_LISTENER(sourceopen); |
| 82 DEFINE_ATTRIBUTE_EVENT_LISTENER(sourceended); | 82 DEFINE_ATTRIBUTE_EVENT_LISTENER(sourceended); |
| 83 DEFINE_ATTRIBUTE_EVENT_LISTENER(sourceclose); | 83 DEFINE_ATTRIBUTE_EVENT_LISTENER(sourceclose); |
| 84 | 84 |
| 85 const AtomicString& readyState() const { return m_readyState; } | 85 const AtomicString& getReadyState() const { return m_readyState; } |
|
Łukasz Anforowicz
2016/12/12 22:43:49
After naive rename this would conflict with MediaS
| |
| 86 void endOfStream(const AtomicString& error, ExceptionState&); | 86 void endOfStream(const AtomicString& error, ExceptionState&); |
| 87 void endOfStream(ExceptionState&); | 87 void endOfStream(ExceptionState&); |
| 88 void setLiveSeekableRange(double start, double end, ExceptionState&); | 88 void setLiveSeekableRange(double start, double end, ExceptionState&); |
| 89 void clearLiveSeekableRange(ExceptionState&); | 89 void clearLiveSeekableRange(ExceptionState&); |
| 90 | 90 |
| 91 static bool isTypeSupported(const String& type); | 91 static bool isTypeSupported(const String& type); |
| 92 | 92 |
| 93 // HTMLMediaSource | 93 // HTMLMediaSource |
| 94 bool attachToElement(HTMLMediaElement*) override; | 94 bool attachToElement(HTMLMediaElement*) override; |
| 95 void setWebMediaSourceAndOpen(std::unique_ptr<WebMediaSource>) override; | 95 void setWebMediaSourceAndOpen(std::unique_ptr<WebMediaSource>) override; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 153 Member<SourceBufferList> m_activeSourceBuffers; | 153 Member<SourceBufferList> m_activeSourceBuffers; |
| 154 | 154 |
| 155 Member<TimeRanges> m_liveSeekableRange; | 155 Member<TimeRanges> m_liveSeekableRange; |
| 156 | 156 |
| 157 int m_addedToRegistryCounter; | 157 int m_addedToRegistryCounter; |
| 158 }; | 158 }; |
| 159 | 159 |
| 160 } // namespace blink | 160 } // namespace blink |
| 161 | 161 |
| 162 #endif // MediaSource_h | 162 #endif // MediaSource_h |
| OLD | NEW |