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

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

Issue 1163253003: Clean up macros around DEFINE_EVENT_TARGET_REFCOUNTING (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/modules/webaudio/AudioNode.h ('k') | Source/modules/webmidi/MIDIPort.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 42
43 namespace blink { 43 namespace blink {
44 44
45 class ExecutionContext; 45 class ExecutionContext;
46 class MIDIInput; 46 class MIDIInput;
47 class MIDIInputMap; 47 class MIDIInputMap;
48 class MIDIOutput; 48 class MIDIOutput;
49 class MIDIOutputMap; 49 class MIDIOutputMap;
50 50
51 class MIDIAccess final : public RefCountedGarbageCollectedEventTargetWithInlineD ata<MIDIAccess>, public ActiveDOMObject, public MIDIAccessorClient { 51 class MIDIAccess final : public RefCountedGarbageCollectedEventTargetWithInlineD ata<MIDIAccess>, public ActiveDOMObject, public MIDIAccessorClient {
52 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<M IDIAccess>); 52 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(MIDIAccess);
53 DEFINE_WRAPPERTYPEINFO(); 53 DEFINE_WRAPPERTYPEINFO();
54 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MIDIAccess); 54 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MIDIAccess);
55 public: 55 public:
56 static MIDIAccess* create(PassOwnPtr<MIDIAccessor> accessor, bool sysexEnabl ed, const Vector<MIDIAccessInitializer::PortDescriptor>& ports, ExecutionContext * executionContext) 56 static MIDIAccess* create(PassOwnPtr<MIDIAccessor> accessor, bool sysexEnabl ed, const Vector<MIDIAccessInitializer::PortDescriptor>& ports, ExecutionContext * executionContext)
57 { 57 {
58 MIDIAccess* access = new MIDIAccess(accessor, sysexEnabled, ports, execu tionContext); 58 MIDIAccess* access = new MIDIAccess(accessor, sysexEnabled, ports, execu tionContext);
59 access->suspendIfNeeded(); 59 access->suspendIfNeeded();
60 return access; 60 return access;
61 } 61 }
62 ~MIDIAccess() override; 62 ~MIDIAccess() override;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 OwnPtr<MIDIAccessor> m_accessor; 101 OwnPtr<MIDIAccessor> m_accessor;
102 bool m_sysexEnabled; 102 bool m_sysexEnabled;
103 bool m_hasPendingActivity; 103 bool m_hasPendingActivity;
104 HeapVector<Member<MIDIInput>> m_inputs; 104 HeapVector<Member<MIDIInput>> m_inputs;
105 HeapVector<Member<MIDIOutput>> m_outputs; 105 HeapVector<Member<MIDIOutput>> m_outputs;
106 }; 106 };
107 107
108 } // namespace blink 108 } // namespace blink
109 109
110 #endif // MIDIAccess_h 110 #endif // MIDIAccess_h
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioNode.h ('k') | Source/modules/webmidi/MIDIPort.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698