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

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

Issue 2577053002: ActiveScriptWrappable: GC wrappers in detached ExecutionContexts. (Closed)
Patch Set: component build fix(msvc) Created 4 years 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 namespace blink { 46 namespace blink {
47 47
48 class ExecutionContext; 48 class ExecutionContext;
49 class MIDIInput; 49 class MIDIInput;
50 class MIDIInputMap; 50 class MIDIInputMap;
51 class MIDIOutput; 51 class MIDIOutput;
52 class MIDIOutputMap; 52 class MIDIOutputMap;
53 53
54 class MIDIAccess final : public EventTargetWithInlineData, 54 class MIDIAccess final : public EventTargetWithInlineData,
55 public ActiveScriptWrappable, 55 public ActiveScriptWrappable<MIDIAccess>,
56 public SuspendableObject, 56 public SuspendableObject,
57 public MIDIAccessorClient { 57 public MIDIAccessorClient {
58 DEFINE_WRAPPERTYPEINFO(); 58 DEFINE_WRAPPERTYPEINFO();
59 USING_GARBAGE_COLLECTED_MIXIN(MIDIAccess); 59 USING_GARBAGE_COLLECTED_MIXIN(MIDIAccess);
60 USING_PRE_FINALIZER(MIDIAccess, dispose); 60 USING_PRE_FINALIZER(MIDIAccess, dispose);
61 61
62 public: 62 public:
63 static MIDIAccess* create( 63 static MIDIAccess* create(
64 std::unique_ptr<MIDIAccessor> accessor, 64 std::unique_ptr<MIDIAccessor> accessor,
65 bool sysexEnabled, 65 bool sysexEnabled,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 std::unique_ptr<MIDIAccessor> m_accessor; 141 std::unique_ptr<MIDIAccessor> m_accessor;
142 bool m_sysexEnabled; 142 bool m_sysexEnabled;
143 bool m_hasPendingActivity; 143 bool m_hasPendingActivity;
144 HeapVector<Member<MIDIInput>> m_inputs; 144 HeapVector<Member<MIDIInput>> m_inputs;
145 HeapVector<Member<MIDIOutput>> m_outputs; 145 HeapVector<Member<MIDIOutput>> m_outputs;
146 }; 146 };
147 147
148 } // namespace blink 148 } // namespace blink
149 149
150 #endif // MIDIAccess_h 150 #endif // MIDIAccess_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698