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

Side by Side Diff: Source/modules/mediastream/RTCDTMFToneChangeEvent.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) 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 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 28 matching lines...) Expand all
39 } 39 }
40 40
41 PassRefPtrWillBeRawPtr<RTCDTMFToneChangeEvent> RTCDTMFToneChangeEvent::create(co nst AtomicString& type, const RTCDTMFToneChangeEventInit& initializer) 41 PassRefPtrWillBeRawPtr<RTCDTMFToneChangeEvent> RTCDTMFToneChangeEvent::create(co nst AtomicString& type, const RTCDTMFToneChangeEventInit& initializer)
42 { 42 {
43 ASSERT(type == EventTypeNames::tonechange); 43 ASSERT(type == EventTypeNames::tonechange);
44 return adoptRefWillBeNoop(new RTCDTMFToneChangeEvent(initializer)); 44 return adoptRefWillBeNoop(new RTCDTMFToneChangeEvent(initializer));
45 } 45 }
46 46
47 RTCDTMFToneChangeEvent::RTCDTMFToneChangeEvent() 47 RTCDTMFToneChangeEvent::RTCDTMFToneChangeEvent()
48 { 48 {
49 ScriptWrappable::init(this);
50 } 49 }
51 50
52 RTCDTMFToneChangeEvent::RTCDTMFToneChangeEvent(const String& tone) 51 RTCDTMFToneChangeEvent::RTCDTMFToneChangeEvent(const String& tone)
53 : Event(EventTypeNames::tonechange, false, false) 52 : Event(EventTypeNames::tonechange, false, false)
54 , m_tone(tone) 53 , m_tone(tone)
55 { 54 {
56 ScriptWrappable::init(this);
57 } 55 }
58 56
59 RTCDTMFToneChangeEvent::RTCDTMFToneChangeEvent(const RTCDTMFToneChangeEventInit& initializer) 57 RTCDTMFToneChangeEvent::RTCDTMFToneChangeEvent(const RTCDTMFToneChangeEventInit& initializer)
60 : Event(EventTypeNames::tonechange, initializer) 58 : Event(EventTypeNames::tonechange, initializer)
61 , m_tone(initializer.tone) 59 , m_tone(initializer.tone)
62 { 60 {
63 ScriptWrappable::init(this);
64 } 61 }
65 62
66 RTCDTMFToneChangeEvent::~RTCDTMFToneChangeEvent() 63 RTCDTMFToneChangeEvent::~RTCDTMFToneChangeEvent()
67 { 64 {
68 } 65 }
69 66
70 const String& RTCDTMFToneChangeEvent::tone() const 67 const String& RTCDTMFToneChangeEvent::tone() const
71 { 68 {
72 return m_tone; 69 return m_tone;
73 } 70 }
74 71
75 const AtomicString& RTCDTMFToneChangeEvent::interfaceName() const 72 const AtomicString& RTCDTMFToneChangeEvent::interfaceName() const
76 { 73 {
77 return EventNames::RTCDTMFToneChangeEvent; 74 return EventNames::RTCDTMFToneChangeEvent;
78 } 75 }
79 76
80 void RTCDTMFToneChangeEvent::trace(Visitor* visitor) 77 void RTCDTMFToneChangeEvent::trace(Visitor* visitor)
81 { 78 {
82 Event::trace(visitor); 79 Event::trace(visitor);
83 } 80 }
84 81
85 } // namespace blink 82 } // namespace blink
86 83
OLDNEW
« no previous file with comments | « Source/modules/mediastream/RTCDTMFSender.cpp ('k') | Source/modules/mediastream/RTCDataChannel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698