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

Side by Side Diff: third_party/WebKit/Source/modules/webmidi/MIDIAccessor.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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 const WebString& name, 64 const WebString& name,
65 const WebString& version, 65 const WebString& version,
66 MIDIPortState) override; 66 MIDIPortState) override;
67 void didAddOutputPort(const WebString& id, 67 void didAddOutputPort(const WebString& id,
68 const WebString& manufacturer, 68 const WebString& manufacturer,
69 const WebString& name, 69 const WebString& name,
70 const WebString& version, 70 const WebString& version,
71 MIDIPortState) override; 71 MIDIPortState) override;
72 void didSetInputPortState(unsigned portIndex, MIDIPortState) override; 72 void didSetInputPortState(unsigned portIndex, MIDIPortState) override;
73 void didSetOutputPortState(unsigned portIndex, MIDIPortState) override; 73 void didSetOutputPortState(unsigned portIndex, MIDIPortState) override;
74 void didStartSession(bool success, 74 void didStartSession(midi::mojom::Result) override;
75 const WebString& error,
76 const WebString& message) override;
77 void didReceiveMIDIData(unsigned portIndex, 75 void didReceiveMIDIData(unsigned portIndex,
78 const unsigned char* data, 76 const unsigned char* data,
79 size_t length, 77 size_t length,
80 double timeStamp) override; 78 double timeStamp) override;
81 79
82 private: 80 private:
83 explicit MIDIAccessor(MIDIAccessorClient*); 81 explicit MIDIAccessor(MIDIAccessorClient*);
84 82
85 MIDIAccessorClient* m_client; 83 MIDIAccessorClient* m_client;
86 std::unique_ptr<WebMIDIAccessor> m_accessor; 84 std::unique_ptr<WebMIDIAccessor> m_accessor;
87 }; 85 };
88 86
89 } // namespace blink 87 } // namespace blink
90 88
91 #endif // MIDIAccessor_h 89 #endif // MIDIAccessor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698