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

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

Issue 182063004: Rename adoptRefCountedWillBeRefCountedGarbageCollected to adoptRefWillBeRefCountedGarbageCollected (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 26 matching lines...) Expand all
37 #include "core/loader/DocumentLoader.h" 37 #include "core/loader/DocumentLoader.h"
38 #include "modules/webmidi/MIDIAccessPromise.h" 38 #include "modules/webmidi/MIDIAccessPromise.h"
39 #include "modules/webmidi/MIDIConnectionEvent.h" 39 #include "modules/webmidi/MIDIConnectionEvent.h"
40 #include "modules/webmidi/MIDIController.h" 40 #include "modules/webmidi/MIDIController.h"
41 #include "modules/webmidi/MIDIPort.h" 41 #include "modules/webmidi/MIDIPort.h"
42 42
43 namespace WebCore { 43 namespace WebCore {
44 44
45 PassRefPtrWillBeRawPtr<MIDIAccess> MIDIAccess::create(ExecutionContext* context, MIDIAccessPromise* promise) 45 PassRefPtrWillBeRawPtr<MIDIAccess> MIDIAccess::create(ExecutionContext* context, MIDIAccessPromise* promise)
46 { 46 {
47 RefPtrWillBeRawPtr<MIDIAccess> midiAccess(adoptRefCountedWillBeRefCountedGar bageCollected(new MIDIAccess(context, promise))); 47 RefPtrWillBeRawPtr<MIDIAccess> midiAccess(adoptRefWillBeRefCountedGarbageCol lected(new MIDIAccess(context, promise)));
48 midiAccess->suspendIfNeeded(); 48 midiAccess->suspendIfNeeded();
49 midiAccess->startRequest(); 49 midiAccess->startRequest();
50 return midiAccess.release(); 50 return midiAccess.release();
51 } 51 }
52 52
53 MIDIAccess::~MIDIAccess() 53 MIDIAccess::~MIDIAccess()
54 { 54 {
55 stop(); 55 stop();
56 } 56 }
57 57
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 } 180 }
181 181
182 void MIDIAccess::trace(Visitor* visitor) 182 void MIDIAccess::trace(Visitor* visitor)
183 { 183 {
184 visitor->trace(m_inputs); 184 visitor->trace(m_inputs);
185 visitor->trace(m_outputs); 185 visitor->trace(m_outputs);
186 visitor->trace(m_promise); 186 visitor->trace(m_promise);
187 } 187 }
188 188
189 } // namespace WebCore 189 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/speech/SpeechSynthesisUtterance.cpp ('k') | Source/modules/webmidi/MIDIAccessPromise.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698