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

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

Issue 2007983006: Rename OwnPtr::clear() to reset() in modules/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 } 65 }
66 } 66 }
67 } 67 }
68 68
69 MIDIAccess::~MIDIAccess() 69 MIDIAccess::~MIDIAccess()
70 { 70 {
71 } 71 }
72 72
73 void MIDIAccess::dispose() 73 void MIDIAccess::dispose()
74 { 74 {
75 m_accessor.clear(); 75 m_accessor.reset();
76 } 76 }
77 77
78 EventListener* MIDIAccess::onstatechange() 78 EventListener* MIDIAccess::onstatechange()
79 { 79 {
80 return getAttributeEventListener(EventTypeNames::statechange); 80 return getAttributeEventListener(EventTypeNames::statechange);
81 } 81 }
82 82
83 void MIDIAccess::setOnstatechange(EventListener* listener) 83 void MIDIAccess::setOnstatechange(EventListener* listener)
84 { 84 {
85 m_hasPendingActivity = listener; 85 m_hasPendingActivity = listener;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 DCHECK(document); 196 DCHECK(document);
197 double documentStartTime = document->loader()->timing().referenceMonoton icTime(); 197 double documentStartTime = document->loader()->timing().referenceMonoton icTime();
198 timeStamp = documentStartTime + 0.001 * timeStampInMilliseconds; 198 timeStamp = documentStartTime + 0.001 * timeStampInMilliseconds;
199 } 199 }
200 200
201 m_accessor->sendMIDIData(portIndex, data, length, timeStamp); 201 m_accessor->sendMIDIData(portIndex, data, length, timeStamp);
202 } 202 }
203 203
204 void MIDIAccess::stop() 204 void MIDIAccess::stop()
205 { 205 {
206 m_accessor.clear(); 206 m_accessor.reset();
207 } 207 }
208 208
209 DEFINE_TRACE(MIDIAccess) 209 DEFINE_TRACE(MIDIAccess)
210 { 210 {
211 visitor->trace(m_inputs); 211 visitor->trace(m_inputs);
212 visitor->trace(m_outputs); 212 visitor->trace(m_outputs);
213 EventTargetWithInlineData::trace(visitor); 213 EventTargetWithInlineData::trace(visitor);
214 ActiveDOMObject::trace(visitor); 214 ActiveDOMObject::trace(visitor);
215 } 215 }
216 216
217 } // namespace blink 217 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698