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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/AudioContext.idl

Issue 1805843002: [v8 gc] Introduce a base class for all objects that can have pending activity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 4 years, 9 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) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. 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 12 matching lines...) Expand all
23 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 enum AudioContextState { 26 enum AudioContextState {
27 "suspended", 27 "suspended",
28 "running", 28 "running",
29 "closed" 29 "closed"
30 }; 30 };
31 31
32 [ 32 [
33 GarbageCollected, 33 ActiveScriptWrappable,
34 DependentLifetime,
35 Constructor, 34 Constructor,
36 ConstructorCallWith=Document, 35 ConstructorCallWith=Document,
36 DependentLifetime,
37 GarbageCollected,
37 ImplementedAs=AbstractAudioContext, 38 ImplementedAs=AbstractAudioContext,
38 NoInterfaceObject, 39 NoInterfaceObject,
39 RaisesException=Constructor, 40 RaisesException=Constructor,
40 ] interface AudioContext : EventTarget { 41 ] interface AudioContext : EventTarget {
41 // All rendered audio ultimately connects to destination, which represents t he audio hardware. 42 // All rendered audio ultimately connects to destination, which represents t he audio hardware.
42 readonly attribute AudioDestinationNode destination; 43 readonly attribute AudioDestinationNode destination;
43 44
44 // All scheduled times are relative to this time in seconds. 45 // All scheduled times are relative to this time in seconds.
45 readonly attribute double currentTime; 46 readonly attribute double currentTime;
46 47
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 88
88 // Close 89 // Close
89 [MeasureAs=AudioContextClose, CallWith=ScriptState, ImplementedAs=closeConte xt] Promise<void> close(); 90 [MeasureAs=AudioContextClose, CallWith=ScriptState, ImplementedAs=closeConte xt] Promise<void> close();
90 91
91 // Pause/resume 92 // Pause/resume
92 [MeasureAs=AudioContextSuspend, CallWith=ScriptState, ImplementedAs=suspendC ontext] Promise<void> suspend(); 93 [MeasureAs=AudioContextSuspend, CallWith=ScriptState, ImplementedAs=suspendC ontext] Promise<void> suspend();
93 [MeasureAs=AudioContextResume, CallWith=ScriptState, ImplementedAs=resumeCon text] Promise<void> resume(); 94 [MeasureAs=AudioContextResume, CallWith=ScriptState, ImplementedAs=resumeCon text] Promise<void> resume();
94 95
95 attribute EventHandler onstatechange; 96 attribute EventHandler onstatechange;
96 }; 97 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698