| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 MIDIAccess::~MIDIAccess() | 67 MIDIAccess::~MIDIAccess() |
| 68 { | 68 { |
| 69 } | 69 } |
| 70 | 70 |
| 71 EventListener* MIDIAccess::onstatechange() | 71 EventListener* MIDIAccess::onstatechange() |
| 72 { | 72 { |
| 73 return getAttributeEventListener(EventTypeNames::statechange); | 73 return getAttributeEventListener(EventTypeNames::statechange); |
| 74 } | 74 } |
| 75 | 75 |
| 76 void MIDIAccess::setOnstatechange(PassRefPtrWillBeRawPtr<EventListener> listener
) | 76 void MIDIAccess::setOnstatechange(RawPtr<EventListener> listener) |
| 77 { | 77 { |
| 78 m_hasPendingActivity = listener; | 78 m_hasPendingActivity = listener; |
| 79 setAttributeEventListener(EventTypeNames::statechange, listener); | 79 setAttributeEventListener(EventTypeNames::statechange, listener); |
| 80 } | 80 } |
| 81 | 81 |
| 82 bool MIDIAccess::hasPendingActivity() const | 82 bool MIDIAccess::hasPendingActivity() const |
| 83 { | 83 { |
| 84 return m_hasPendingActivity && !executionContext()->activeDOMObjectsAreStopp
ed(); | 84 return m_hasPendingActivity && !executionContext()->activeDOMObjectsAreStopp
ed(); |
| 85 } | 85 } |
| 86 | 86 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 201 |
| 202 DEFINE_TRACE(MIDIAccess) | 202 DEFINE_TRACE(MIDIAccess) |
| 203 { | 203 { |
| 204 visitor->trace(m_inputs); | 204 visitor->trace(m_inputs); |
| 205 visitor->trace(m_outputs); | 205 visitor->trace(m_outputs); |
| 206 RefCountedGarbageCollectedEventTargetWithInlineData<MIDIAccess>::trace(visit
or); | 206 RefCountedGarbageCollectedEventTargetWithInlineData<MIDIAccess>::trace(visit
or); |
| 207 ActiveDOMObject::trace(visitor); | 207 ActiveDOMObject::trace(visitor); |
| 208 } | 208 } |
| 209 | 209 |
| 210 } // namespace blink | 210 } // namespace blink |
| OLD | NEW |