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

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

Issue 2025693002: Implement SetWrapperReferenceTo idl attribute within traceWrappers for MIDIInput and MIDIOutput (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/webmidi/MIDIPort.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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 ScriptPromise open(ScriptState*); 71 ScriptPromise open(ScriptState*);
72 ScriptPromise close(ScriptState*); 72 ScriptPromise close(ScriptState*);
73 73
74 MIDIAccess* midiAccess() const { return m_access; } 74 MIDIAccess* midiAccess() const { return m_access; }
75 MIDIAccessor::MIDIPortState getState() const { return m_state; } 75 MIDIAccessor::MIDIPortState getState() const { return m_state; }
76 void setState(MIDIAccessor::MIDIPortState); 76 void setState(MIDIAccessor::MIDIPortState);
77 ConnectionState getConnection() const { return m_connection; } 77 ConnectionState getConnection() const { return m_connection; }
78 78
79 DECLARE_VIRTUAL_TRACE(); 79 DECLARE_VIRTUAL_TRACE();
80 80
81 DECLARE_VIRTUAL_TRACE_WRAPPERS();
82
81 DEFINE_ATTRIBUTE_EVENT_LISTENER(statechange); 83 DEFINE_ATTRIBUTE_EVENT_LISTENER(statechange);
82 84
83 // EventTarget 85 // EventTarget
84 const AtomicString& interfaceName() const override { return EventTargetNames ::MIDIPort; } 86 const AtomicString& interfaceName() const override { return EventTargetNames ::MIDIPort; }
85 ExecutionContext* getExecutionContext() const final; 87 ExecutionContext* getExecutionContext() const final;
86 88
87 // ActiveScriptWrappable 89 // ActiveScriptWrappable
88 bool hasPendingActivity() const final; 90 bool hasPendingActivity() const final;
89 91
90 // ActiveDOMObject 92 // ActiveDOMObject
(...skipping 16 matching lines...) Expand all
107 TypeCode m_type; 109 TypeCode m_type;
108 String m_version; 110 String m_version;
109 Member<MIDIAccess> m_access; 111 Member<MIDIAccess> m_access;
110 MIDIAccessor::MIDIPortState m_state; 112 MIDIAccessor::MIDIPortState m_state;
111 ConnectionState m_connection; 113 ConnectionState m_connection;
112 }; 114 };
113 115
114 } // namespace blink 116 } // namespace blink
115 117
116 #endif // MIDIPort_h 118 #endif // MIDIPort_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/webmidi/MIDIPort.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698