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

Side by Side Diff: third_party/WebKit/Source/modules/webmidi/MIDIPort.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 28 matching lines...) Expand all
39 #include "media/midi/midi_service.mojom-blink.h" 39 #include "media/midi/midi_service.mojom-blink.h"
40 #include "modules/EventTargetModules.h" 40 #include "modules/EventTargetModules.h"
41 #include "modules/webmidi/MIDIAccessor.h" 41 #include "modules/webmidi/MIDIAccessor.h"
42 #include "platform/heap/Handle.h" 42 #include "platform/heap/Handle.h"
43 43
44 namespace blink { 44 namespace blink {
45 45
46 class MIDIAccess; 46 class MIDIAccess;
47 47
48 class MIDIPort : public EventTargetWithInlineData, 48 class MIDIPort : public EventTargetWithInlineData,
49 public ActiveScriptWrappable, 49 public ActiveScriptWrappable<MIDIPort>,
50 public SuspendableObject { 50 public SuspendableObject {
51 DEFINE_WRAPPERTYPEINFO(); 51 DEFINE_WRAPPERTYPEINFO();
52 USING_GARBAGE_COLLECTED_MIXIN(MIDIPort); 52 USING_GARBAGE_COLLECTED_MIXIN(MIDIPort);
53 53
54 public: 54 public:
55 enum ConnectionState { 55 enum ConnectionState {
56 ConnectionStateOpen, 56 ConnectionStateOpen,
57 ConnectionStateClosed, 57 ConnectionStateClosed,
58 ConnectionStatePending 58 ConnectionStatePending
59 }; 59 };
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 TypeCode m_type; 119 TypeCode m_type;
120 String m_version; 120 String m_version;
121 TraceWrapperMember<MIDIAccess> m_access; 121 TraceWrapperMember<MIDIAccess> m_access;
122 midi::mojom::PortState m_state; 122 midi::mojom::PortState m_state;
123 ConnectionState m_connection; 123 ConnectionState m_connection;
124 }; 124 };
125 125
126 } // namespace blink 126 } // namespace blink
127 127
128 #endif // MIDIPort_h 128 #endif // MIDIPort_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp ('k') | third_party/WebKit/Source/modules/webmidi/MIDIPort.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698