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

Side by Side Diff: Source/modules/webaudio/OfflineAudioCompletionEvent.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, Google Inc. All rights reserved. 2 * Copyright (C) 2011, 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 24 matching lines...) Expand all
35 return adoptRefWillBeNoop(new OfflineAudioCompletionEvent); 35 return adoptRefWillBeNoop(new OfflineAudioCompletionEvent);
36 } 36 }
37 37
38 PassRefPtrWillBeRawPtr<OfflineAudioCompletionEvent> OfflineAudioCompletionEvent: :create(AudioBuffer* renderedBuffer) 38 PassRefPtrWillBeRawPtr<OfflineAudioCompletionEvent> OfflineAudioCompletionEvent: :create(AudioBuffer* renderedBuffer)
39 { 39 {
40 return adoptRefWillBeNoop(new OfflineAudioCompletionEvent(renderedBuffer)); 40 return adoptRefWillBeNoop(new OfflineAudioCompletionEvent(renderedBuffer));
41 } 41 }
42 42
43 OfflineAudioCompletionEvent::OfflineAudioCompletionEvent() 43 OfflineAudioCompletionEvent::OfflineAudioCompletionEvent()
44 { 44 {
45 ScriptWrappable::init(this);
46 } 45 }
47 46
48 OfflineAudioCompletionEvent::OfflineAudioCompletionEvent(AudioBuffer* renderedBu ffer) 47 OfflineAudioCompletionEvent::OfflineAudioCompletionEvent(AudioBuffer* renderedBu ffer)
49 : Event(EventTypeNames::complete, true, false) 48 : Event(EventTypeNames::complete, true, false)
50 , m_renderedBuffer(renderedBuffer) 49 , m_renderedBuffer(renderedBuffer)
51 { 50 {
52 ScriptWrappable::init(this);
53 } 51 }
54 52
55 OfflineAudioCompletionEvent::~OfflineAudioCompletionEvent() 53 OfflineAudioCompletionEvent::~OfflineAudioCompletionEvent()
56 { 54 {
57 } 55 }
58 56
59 const AtomicString& OfflineAudioCompletionEvent::interfaceName() const 57 const AtomicString& OfflineAudioCompletionEvent::interfaceName() const
60 { 58 {
61 return EventNames::OfflineAudioCompletionEvent; 59 return EventNames::OfflineAudioCompletionEvent;
62 } 60 }
63 61
64 void OfflineAudioCompletionEvent::trace(Visitor* visitor) 62 void OfflineAudioCompletionEvent::trace(Visitor* visitor)
65 { 63 {
66 visitor->trace(m_renderedBuffer); 64 visitor->trace(m_renderedBuffer);
67 Event::trace(visitor); 65 Event::trace(visitor);
68 } 66 }
69 67
70 } // namespace blink 68 } // namespace blink
71 69
72 #endif // ENABLE(WEB_AUDIO) 70 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/modules/webaudio/MediaStreamAudioSourceNode.cpp ('k') | Source/modules/webaudio/OfflineAudioContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698