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

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

Issue 547383004: WebMIDI: Add MIDIOptions dictionary (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add assertion Created 6 years, 3 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
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/webmidi/MIDIAccess.cpp » ('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 29 matching lines...) Expand all
40 #include "platform/heap/Handle.h" 40 #include "platform/heap/Handle.h"
41 #include "wtf/Vector.h" 41 #include "wtf/Vector.h"
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 struct MIDIOptions;
51 50
52 class MIDIAccess FINAL : public RefCountedGarbageCollectedWillBeGarbageCollected Finalized<MIDIAccess>, public ActiveDOMObject, public EventTargetWithInlineData, public MIDIAccessorClient { 51 class MIDIAccess FINAL : public RefCountedGarbageCollectedWillBeGarbageCollected Finalized<MIDIAccess>, public ActiveDOMObject, public EventTargetWithInlineData, public MIDIAccessorClient {
53 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<M IDIAccess>); 52 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<M IDIAccess>);
54 DEFINE_WRAPPERTYPEINFO(); 53 DEFINE_WRAPPERTYPEINFO();
55 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MIDIAccess); 54 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MIDIAccess);
56 public: 55 public:
57 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)
58 { 57 {
59 MIDIAccess* access = adoptRefCountedGarbageCollectedWillBeNoop(new MIDIA ccess(accessor, sysexEnabled, ports, executionContext)); 58 MIDIAccess* access = adoptRefCountedGarbageCollectedWillBeNoop(new MIDIA ccess(accessor, sysexEnabled, ports, executionContext));
60 access->suspendIfNeeded(); 59 access->suspendIfNeeded();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 97
99 OwnPtr<MIDIAccessor> m_accessor; 98 OwnPtr<MIDIAccessor> m_accessor;
100 bool m_sysexEnabled; 99 bool m_sysexEnabled;
101 HeapVector<Member<MIDIInput> > m_inputs; 100 HeapVector<Member<MIDIInput> > m_inputs;
102 HeapVector<Member<MIDIOutput> > m_outputs; 101 HeapVector<Member<MIDIOutput> > m_outputs;
103 }; 102 };
104 103
105 } // namespace blink 104 } // namespace blink
106 105
107 #endif // MIDIAccess_h 106 #endif // MIDIAccess_h
OLDNEW
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/webmidi/MIDIAccess.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698