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

Side by Side Diff: third_party/WebKit/Source/modules/webmidi/MIDIAccessor.cpp

Issue 2404443002: Web MIDI: use midi_service.mojom for media::midi::Result (Closed)
Patch Set: fix layout test 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 void MIDIAccessor::didSetInputPortState(unsigned portIndex, 83 void MIDIAccessor::didSetInputPortState(unsigned portIndex,
84 MIDIPortState state) { 84 MIDIPortState state) {
85 m_client->didSetInputPortState(portIndex, state); 85 m_client->didSetInputPortState(portIndex, state);
86 } 86 }
87 87
88 void MIDIAccessor::didSetOutputPortState(unsigned portIndex, 88 void MIDIAccessor::didSetOutputPortState(unsigned portIndex,
89 MIDIPortState state) { 89 MIDIPortState state) {
90 m_client->didSetOutputPortState(portIndex, state); 90 m_client->didSetOutputPortState(portIndex, state);
91 } 91 }
92 92
93 void MIDIAccessor::didStartSession(bool success, 93 void MIDIAccessor::didStartSession(media::midi::Result result) {
94 const WebString& error, 94 m_client->didStartSession(result);
95 const WebString& message) {
96 m_client->didStartSession(success, error, message);
97 } 95 }
98 96
99 void MIDIAccessor::didReceiveMIDIData(unsigned portIndex, 97 void MIDIAccessor::didReceiveMIDIData(unsigned portIndex,
100 const unsigned char* data, 98 const unsigned char* data,
101 size_t length, 99 size_t length,
102 double timeStamp) { 100 double timeStamp) {
103 m_client->didReceiveMIDIData(portIndex, data, length, timeStamp); 101 m_client->didReceiveMIDIData(portIndex, data, length, timeStamp);
104 } 102 }
105 103
106 } // namespace blink 104 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698