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

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

Issue 1857143002: Oilpan: Remove RefCountedGarbageCollectedEventTargetWithInlineData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "wtf/Vector.h" 42 #include "wtf/Vector.h"
43 43
44 namespace blink { 44 namespace blink {
45 45
46 class ExecutionContext; 46 class ExecutionContext;
47 class MIDIInput; 47 class MIDIInput;
48 class MIDIInputMap; 48 class MIDIInputMap;
49 class MIDIOutput; 49 class MIDIOutput;
50 class MIDIOutputMap; 50 class MIDIOutputMap;
51 51
52 class MIDIAccess final : public RefCountedGarbageCollectedEventTargetWithInlineD ata<MIDIAccess>, public ActiveScriptWrappable, public ActiveDOMObject, public MI DIAccessorClient { 52 class MIDIAccess final : public EventTargetWithInlineData, public ActiveScriptWr appable, public ActiveDOMObject, public MIDIAccessorClient {
53 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(MIDIAccess); 53 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(MIDIAccess);
54 DEFINE_WRAPPERTYPEINFO(); 54 DEFINE_WRAPPERTYPEINFO();
55 USING_GARBAGE_COLLECTED_MIXIN(MIDIAccess); 55 USING_GARBAGE_COLLECTED_MIXIN(MIDIAccess);
56 USING_PRE_FINALIZER(MIDIAccess, dispose); 56 USING_PRE_FINALIZER(MIDIAccess, dispose);
57 public: 57 public:
58 static MIDIAccess* create(PassOwnPtr<MIDIAccessor> accessor, bool sysexEnabl ed, const Vector<MIDIAccessInitializer::PortDescriptor>& ports, ExecutionContext * executionContext) 58 static MIDIAccess* create(PassOwnPtr<MIDIAccessor> accessor, bool sysexEnabl ed, const Vector<MIDIAccessInitializer::PortDescriptor>& ports, ExecutionContext * executionContext)
59 { 59 {
60 MIDIAccess* access = new MIDIAccess(accessor, sysexEnabled, ports, execu tionContext); 60 MIDIAccess* access = new MIDIAccess(accessor, sysexEnabled, ports, execu tionContext);
61 access->suspendIfNeeded(); 61 access->suspendIfNeeded();
62 return access; 62 return access;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 OwnPtr<MIDIAccessor> m_accessor; 109 OwnPtr<MIDIAccessor> m_accessor;
110 bool m_sysexEnabled; 110 bool m_sysexEnabled;
111 bool m_hasPendingActivity; 111 bool m_hasPendingActivity;
112 HeapVector<Member<MIDIInput>> m_inputs; 112 HeapVector<Member<MIDIInput>> m_inputs;
113 HeapVector<Member<MIDIOutput>> m_outputs; 113 HeapVector<Member<MIDIOutput>> m_outputs;
114 }; 114 };
115 115
116 } // namespace blink 116 } // namespace blink
117 117
118 #endif // MIDIAccess_h 118 #endif // MIDIAccess_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/AudioNode.cpp ('k') | third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698