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

Side by Side Diff: Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.cpp

Issue 13814002: First part of work to move V8 binding integrity off of vtables. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 } 43 }
44 44
45 PassRefPtr<RTCDTMFToneChangeEvent> RTCDTMFToneChangeEvent::create(const AtomicSt ring& type, const RTCDTMFToneChangeEventInit& initializer) 45 PassRefPtr<RTCDTMFToneChangeEvent> RTCDTMFToneChangeEvent::create(const AtomicSt ring& type, const RTCDTMFToneChangeEventInit& initializer)
46 { 46 {
47 ASSERT(type == eventNames().tonechangeEvent); 47 ASSERT(type == eventNames().tonechangeEvent);
48 return adoptRef(new RTCDTMFToneChangeEvent(initializer)); 48 return adoptRef(new RTCDTMFToneChangeEvent(initializer));
49 } 49 }
50 50
51 RTCDTMFToneChangeEvent::RTCDTMFToneChangeEvent() 51 RTCDTMFToneChangeEvent::RTCDTMFToneChangeEvent()
52 { 52 {
53 ScriptWrappable::init(this);
53 } 54 }
54 55
55 RTCDTMFToneChangeEvent::RTCDTMFToneChangeEvent(const String& tone) 56 RTCDTMFToneChangeEvent::RTCDTMFToneChangeEvent(const String& tone)
56 : Event(eventNames().tonechangeEvent, false, false) 57 : Event(eventNames().tonechangeEvent, false, false)
57 , m_tone(tone) 58 , m_tone(tone)
58 { 59 {
60 ScriptWrappable::init(this);
59 } 61 }
60 62
61 RTCDTMFToneChangeEvent::RTCDTMFToneChangeEvent(const RTCDTMFToneChangeEventInit& initializer) 63 RTCDTMFToneChangeEvent::RTCDTMFToneChangeEvent(const RTCDTMFToneChangeEventInit& initializer)
62 : Event(eventNames().tonechangeEvent, initializer) 64 : Event(eventNames().tonechangeEvent, initializer)
63 , m_tone(initializer.tone) 65 , m_tone(initializer.tone)
64 { 66 {
67 ScriptWrappable::init(this);
65 } 68 }
66 69
67 RTCDTMFToneChangeEvent::~RTCDTMFToneChangeEvent() 70 RTCDTMFToneChangeEvent::~RTCDTMFToneChangeEvent()
68 { 71 {
69 } 72 }
70 73
71 const String& RTCDTMFToneChangeEvent::tone() const 74 const String& RTCDTMFToneChangeEvent::tone() const
72 { 75 {
73 return m_tone; 76 return m_tone;
74 } 77 }
75 78
76 const AtomicString& RTCDTMFToneChangeEvent::interfaceName() const 79 const AtomicString& RTCDTMFToneChangeEvent::interfaceName() const
77 { 80 {
78 return eventNames().interfaceForRTCDTMFToneChangeEvent; 81 return eventNames().interfaceForRTCDTMFToneChangeEvent;
79 } 82 }
80 83
81 } // namespace WebCore 84 } // namespace WebCore
82 85
83 #endif // ENABLE(MEDIA_STREAM) 86 #endif // ENABLE(MEDIA_STREAM)
84 87
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698