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

Side by Side Diff: Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 27 matching lines...) Expand all
38 } 38 }
39 39
40 PassRefPtr<MediaStreamTrackEvent> MediaStreamTrackEvent::create(const AtomicStri ng& type, bool canBubble, bool cancelable, PassRefPtr<MediaStreamTrack> track) 40 PassRefPtr<MediaStreamTrackEvent> MediaStreamTrackEvent::create(const AtomicStri ng& type, bool canBubble, bool cancelable, PassRefPtr<MediaStreamTrack> track)
41 { 41 {
42 return adoptRef(new MediaStreamTrackEvent(type, canBubble, cancelable, track )); 42 return adoptRef(new MediaStreamTrackEvent(type, canBubble, cancelable, track ));
43 } 43 }
44 44
45 45
46 MediaStreamTrackEvent::MediaStreamTrackEvent() 46 MediaStreamTrackEvent::MediaStreamTrackEvent()
47 { 47 {
48 ScriptWrappable::init(this);
48 } 49 }
49 50
50 MediaStreamTrackEvent::MediaStreamTrackEvent(const AtomicString& type, bool canB ubble, bool cancelable, PassRefPtr<MediaStreamTrack> track) 51 MediaStreamTrackEvent::MediaStreamTrackEvent(const AtomicString& type, bool canB ubble, bool cancelable, PassRefPtr<MediaStreamTrack> track)
51 : Event(type, canBubble, cancelable) 52 : Event(type, canBubble, cancelable)
52 , m_track(track) 53 , m_track(track)
53 { 54 {
55 ScriptWrappable::init(this);
54 } 56 }
55 57
56 MediaStreamTrackEvent::~MediaStreamTrackEvent() 58 MediaStreamTrackEvent::~MediaStreamTrackEvent()
57 { 59 {
58 } 60 }
59 61
60 MediaStreamTrack* MediaStreamTrackEvent::track() const 62 MediaStreamTrack* MediaStreamTrackEvent::track() const
61 { 63 {
62 return m_track.get(); 64 return m_track.get();
63 } 65 }
64 66
65 const AtomicString& MediaStreamTrackEvent::interfaceName() const 67 const AtomicString& MediaStreamTrackEvent::interfaceName() const
66 { 68 {
67 return eventNames().interfaceForMediaStreamTrackEvent; 69 return eventNames().interfaceForMediaStreamTrackEvent;
68 } 70 }
69 71
70 } // namespace WebCore 72 } // namespace WebCore
71 73
72 #endif // ENABLE(MEDIA_STREAM) 74 #endif // ENABLE(MEDIA_STREAM)
73 75
OLDNEW
« no previous file with comments | « Source/WebCore/Modules/mediastream/MediaStreamEvent.cpp ('k') | Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698