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

Side by Side Diff: modules/mediasource/SourceBuffer.idl

Issue 2786203002: Roll 50: Copied IDLs, PYTHON scripts from WebKit removed deleted files in WebCore (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « modules/mediasource/MediaSource.idl ('k') | modules/mediasource/SourceBufferList.idl » ('j') | 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) 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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 // https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html #idl-def-SourceBuffer 31 // https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html #idl-def-SourceBuffer
32 32
33 enum AppendMode { 33 enum AppendMode {
34 "segments", 34 "segments",
35 "sequence" 35 "sequence"
36 }; 36 };
37 37
38 [ 38 [
39 ActiveDOMObject, 39 DependentLifetime,
40 NoInterfaceObject,
41 RuntimeEnabled=MediaSource, 40 RuntimeEnabled=MediaSource,
42 TypeChecking=Interface,
43 ] interface SourceBuffer : EventTarget { 41 ] interface SourceBuffer : EventTarget {
44 42
45 // Gets or sets the AppendMode. 43 // Gets or sets the AppendMode.
46 // FIXME: Remove MediaSourceExperimental once mode attribute is implemented and stabilized. See http://crbug.com/249422. 44 [RaisesException=Setter] attribute AppendMode mode;
47 [RaisesException=Setter, RuntimeEnabled=MediaSourceExperimental] attribute A ppendMode mode;
48 45
49 readonly attribute boolean updating; 46 readonly attribute boolean updating;
50 47
51 // Returns the time ranges buffered. 48 // Returns the time ranges buffered.
52 [RaisesException=Getter] readonly attribute TimeRanges buffered; 49 [RaisesException=Getter] readonly attribute TimeRanges buffered;
53 50
54 // Applies an offset to media segment timestamps. 51 // Applies an offset to media segment timestamps.
55 [RaisesException=Setter] attribute double timestampOffset; 52 [RaisesException=Setter] attribute double timestampOffset;
56 53
57 // Presentation timestamp for the start of append window. 54 // Presentation timestamp for the start of append window.
58 [RaisesException=Setter] attribute double appendWindowStart; 55 [RaisesException=Setter] attribute double appendWindowStart;
59 56
60 // Presentation timestamp for the end of append window. 57 // Presentation timestamp for the end of append window.
61 [RaisesException=Setter] attribute unrestricted double appendWindowEnd; 58 [RaisesException=Setter] attribute unrestricted double appendWindowEnd;
62 59
63 // Append segment data. 60 // Append segment data.
64 [RaisesException] void appendBuffer(ArrayBuffer data); 61 [RaisesException] void appendBuffer(ArrayBuffer data);
65 [RaisesException] void appendBuffer(ArrayBufferView data); 62 [RaisesException] void appendBuffer(ArrayBufferView data);
66 63
67 [RaisesException, RuntimeEnabled=ExperimentalStream] void appendStream(Strea m stream, optional unsigned long long maxSize); 64 [RaisesException, RuntimeEnabled=ExperimentalStream] void appendStream(Strea m stream, optional unsigned long long maxSize);
68 65
69 // Abort the current segment append sequence. 66 // Abort the current segment append sequence.
70 [RaisesException] void abort(); 67 [RaisesException] void abort();
71 [RaisesException] void remove(double start, unrestricted double end); 68 [RaisesException] void remove(double start, unrestricted double end);
72 69
73 // Gets or sets the TrackDefaultList this SourceBuffer may consult during 70 // Gets or sets the TrackDefaultList this SourceBuffer may consult during
74 // the initialization segment algorithm. 71 // the initialization segment algorithm.
75 [RaisesException=Setter, RuntimeEnabled=MediaSourceExperimental] attribute T rackDefaultList trackDefaults; 72 [RaisesException=Setter, RuntimeEnabled=MediaSourceExperimental] attribute T rackDefaultList trackDefaults;
76 }; 73 };
77
OLDNEW
« no previous file with comments | « modules/mediasource/MediaSource.idl ('k') | modules/mediasource/SourceBufferList.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698