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

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

Issue 2404443002: Web MIDI: use midi_service.mojom for media::midi::Result (Closed)
Patch Set: yhirano@ review Created 4 years, 2 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
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 MIDIAccessor::MIDIPortState) override; 101 MIDIAccessor::MIDIPortState) override;
102 void didAddOutputPort(const String& id, 102 void didAddOutputPort(const String& id,
103 const String& manufacturer, 103 const String& manufacturer,
104 const String& name, 104 const String& name,
105 const String& version, 105 const String& version,
106 MIDIAccessor::MIDIPortState) override; 106 MIDIAccessor::MIDIPortState) override;
107 void didSetInputPortState(unsigned portIndex, 107 void didSetInputPortState(unsigned portIndex,
108 MIDIAccessor::MIDIPortState) override; 108 MIDIAccessor::MIDIPortState) override;
109 void didSetOutputPortState(unsigned portIndex, 109 void didSetOutputPortState(unsigned portIndex,
110 MIDIAccessor::MIDIPortState) override; 110 MIDIAccessor::MIDIPortState) override;
111 void didStartSession(bool success, 111 void didStartSession(midi::mojom::Result) override {
112 const String& error,
113 const String& message) override {
114 // This method is for MIDIAccess initialization: MIDIAccessInitializer 112 // This method is for MIDIAccess initialization: MIDIAccessInitializer
115 // has the implementation. 113 // has the implementation.
116 NOTREACHED(); 114 NOTREACHED();
117 } 115 }
118 void didReceiveMIDIData(unsigned portIndex, 116 void didReceiveMIDIData(unsigned portIndex,
119 const unsigned char* data, 117 const unsigned char* data,
120 size_t length, 118 size_t length,
121 double timeStamp) override; 119 double timeStamp) override;
122 120
123 // |timeStampInMilliseconds| is in the same time coordinate system as 121 // |timeStampInMilliseconds| is in the same time coordinate system as
(...skipping 18 matching lines...) Expand all
142 std::unique_ptr<MIDIAccessor> m_accessor; 140 std::unique_ptr<MIDIAccessor> m_accessor;
143 bool m_sysexEnabled; 141 bool m_sysexEnabled;
144 bool m_hasPendingActivity; 142 bool m_hasPendingActivity;
145 HeapVector<Member<MIDIInput>> m_inputs; 143 HeapVector<Member<MIDIInput>> m_inputs;
146 HeapVector<Member<MIDIOutput>> m_outputs; 144 HeapVector<Member<MIDIOutput>> m_outputs;
147 }; 145 };
148 146
149 } // namespace blink 147 } // namespace blink
150 148
151 #endif // MIDIAccess_h 149 #endif // MIDIAccess_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698