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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. 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 | 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "platform/heap/Handle.h" 42 #include "platform/heap/Handle.h"
43 #include "wtf/Vector.h" 43 #include "wtf/Vector.h"
44 44
45 namespace blink { 45 namespace blink {
46 46
47 class ExecutionContext; 47 class ExecutionContext;
48 struct MIDIOptions; 48 struct MIDIOptions;
49 49
50 class MIDIAccess FINAL : public RefCountedGarbageCollectedWillBeGarbageCollected Finalized<MIDIAccess>, public ActiveDOMObject, public EventTargetWithInlineData, public MIDIAccessorClient { 50 class MIDIAccess FINAL : public RefCountedGarbageCollectedWillBeGarbageCollected Finalized<MIDIAccess>, public ActiveDOMObject, public EventTargetWithInlineData, public MIDIAccessorClient {
51 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<M IDIAccess>); 51 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<M IDIAccess>);
52 DEFINE_WRAPPERTYPEINFO();
52 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MIDIAccess); 53 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MIDIAccess);
53 public: 54 public:
54 static MIDIAccess* create(PassOwnPtr<MIDIAccessor> accessor, bool sysexEnabl ed, const Vector<MIDIAccessInitializer::PortDescriptor>& ports, ExecutionContext * executionContext) 55 static MIDIAccess* create(PassOwnPtr<MIDIAccessor> accessor, bool sysexEnabl ed, const Vector<MIDIAccessInitializer::PortDescriptor>& ports, ExecutionContext * executionContext)
55 { 56 {
56 MIDIAccess* access = new MIDIAccess(accessor, sysexEnabled, ports, execu tionContext); 57 MIDIAccess* access = new MIDIAccess(accessor, sysexEnabled, ports, execu tionContext);
57 access->suspendIfNeeded(); 58 access->suspendIfNeeded();
58 return access; 59 return access;
59 } 60 }
60 virtual ~MIDIAccess(); 61 virtual ~MIDIAccess();
61 62
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 96
96 OwnPtr<MIDIAccessor> m_accessor; 97 OwnPtr<MIDIAccessor> m_accessor;
97 bool m_sysexEnabled; 98 bool m_sysexEnabled;
98 MIDIInputVector m_inputs; 99 MIDIInputVector m_inputs;
99 MIDIOutputVector m_outputs; 100 MIDIOutputVector m_outputs;
100 }; 101 };
101 102
102 } // namespace blink 103 } // namespace blink
103 104
104 #endif // MIDIAccess_h 105 #endif // MIDIAccess_h
OLDNEW
« no previous file with comments | « Source/modules/webdatabase/SQLTransactionSync.h ('k') | Source/modules/webmidi/MIDIConnectionEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698