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

Side by Side Diff: Source/modules/webmidi/MIDIAccess.cpp

Issue 1238083002: Oilpan: Move the EventListener hierarchy to Oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 MIDIAccess::~MIDIAccess() 68 MIDIAccess::~MIDIAccess()
69 { 69 {
70 } 70 }
71 71
72 EventListener* MIDIAccess::onstatechange() 72 EventListener* MIDIAccess::onstatechange()
73 { 73 {
74 return getAttributeEventListener(EventTypeNames::statechange); 74 return getAttributeEventListener(EventTypeNames::statechange);
75 } 75 }
76 76
77 void MIDIAccess::setOnstatechange(PassRefPtr<EventListener> listener) 77 void MIDIAccess::setOnstatechange(PassRefPtrWillBeRawPtr<EventListener> listener )
78 { 78 {
79 m_hasPendingActivity = listener; 79 m_hasPendingActivity = listener;
80 setAttributeEventListener(EventTypeNames::statechange, listener); 80 setAttributeEventListener(EventTypeNames::statechange, listener);
81 } 81 }
82 82
83 bool MIDIAccess::hasPendingActivity() const 83 bool MIDIAccess::hasPendingActivity() const
84 { 84 {
85 return m_hasPendingActivity && !executionContext()->activeDOMObjectsAreStopp ed(); 85 return m_hasPendingActivity && !executionContext()->activeDOMObjectsAreStopp ed();
86 } 86 }
87 87
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 202
203 DEFINE_TRACE(MIDIAccess) 203 DEFINE_TRACE(MIDIAccess)
204 { 204 {
205 visitor->trace(m_inputs); 205 visitor->trace(m_inputs);
206 visitor->trace(m_outputs); 206 visitor->trace(m_outputs);
207 RefCountedGarbageCollectedEventTargetWithInlineData<MIDIAccess>::trace(visit or); 207 RefCountedGarbageCollectedEventTargetWithInlineData<MIDIAccess>::trace(visit or);
208 ActiveDOMObject::trace(visitor); 208 ActiveDOMObject::trace(visitor);
209 } 209 }
210 210
211 } // namespace blink 211 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698