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

Side by Side Diff: third_party/WebKit/Source/modules/mediasource/SourceBuffer.h

Issue 1945523003: MSE: Add EventHandler attributes to MSE objects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 months 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) 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 void appendBuffer(DOMArrayBuffer* data, ExceptionState&); 82 void appendBuffer(DOMArrayBuffer* data, ExceptionState&);
83 void appendBuffer(DOMArrayBufferView* data, ExceptionState&); 83 void appendBuffer(DOMArrayBufferView* data, ExceptionState&);
84 void appendStream(Stream*, ExceptionState&); 84 void appendStream(Stream*, ExceptionState&);
85 void appendStream(Stream*, unsigned long long maxSize, ExceptionState&); 85 void appendStream(Stream*, unsigned long long maxSize, ExceptionState&);
86 void abort(ExceptionState&); 86 void abort(ExceptionState&);
87 void remove(double start, double end, ExceptionState&); 87 void remove(double start, double end, ExceptionState&);
88 double appendWindowStart() const; 88 double appendWindowStart() const;
89 void setAppendWindowStart(double, ExceptionState&); 89 void setAppendWindowStart(double, ExceptionState&);
90 double appendWindowEnd() const; 90 double appendWindowEnd() const;
91 void setAppendWindowEnd(double, ExceptionState&); 91 void setAppendWindowEnd(double, ExceptionState&);
92 DEFINE_ATTRIBUTE_EVENT_LISTENER(updatestart);
93 DEFINE_ATTRIBUTE_EVENT_LISTENER(update);
94 DEFINE_ATTRIBUTE_EVENT_LISTENER(updateend);
95 DEFINE_ATTRIBUTE_EVENT_LISTENER(error);
96 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort);
92 TrackDefaultList* trackDefaults() const { return m_trackDefaults.get(); } 97 TrackDefaultList* trackDefaults() const { return m_trackDefaults.get(); }
93 void setTrackDefaults(TrackDefaultList*, ExceptionState&); 98 void setTrackDefaults(TrackDefaultList*, ExceptionState&);
94 99
95 AudioTrackList& audioTracks(); 100 AudioTrackList& audioTracks();
96 VideoTrackList& videoTracks(); 101 VideoTrackList& videoTracks();
97 102
98 void abortIfUpdating(); 103 void abortIfUpdating();
99 void removedFromMediaSource(); 104 void removedFromMediaSource();
100 105
101 // ActiveScriptWrappable 106 // ActiveScriptWrappable
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 bool m_streamMaxSizeValid; 184 bool m_streamMaxSizeValid;
180 unsigned long long m_streamMaxSize; 185 unsigned long long m_streamMaxSize;
181 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner; 186 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner;
182 Member<Stream> m_stream; 187 Member<Stream> m_stream;
183 std::unique_ptr<FileReaderLoader> m_loader; 188 std::unique_ptr<FileReaderLoader> m_loader;
184 }; 189 };
185 190
186 } // namespace blink 191 } // namespace blink
187 192
188 #endif // SourceBuffer_h 193 #endif // SourceBuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698