| OLD | NEW |
| 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 Loading... |
| 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(PassRefPtrWillBeRawPtr<EventListener> listener
) | 77 void MIDIAccess::setOnstatechange(RawPtr<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 && !getExecutionContext()->activeDOMObjectsAreSt
opped(); | 85 return m_hasPendingActivity && !getExecutionContext()->activeDOMObjectsAreSt
opped(); |
| 86 } | 86 } |
| 87 | 87 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |