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

Unified Diff: Source/core/platform/midi/MIDIAccessorClient.h

Issue 17101035: Web MIDI: refine MIDIAccessor and WebMIDIAccessor APIs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/platform/midi/MIDIAccessor.cpp ('k') | public/platform/Platform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/midi/MIDIAccessorClient.h
diff --git a/Source/core/platform/midi/MIDIAccessorClient.h b/Source/core/platform/midi/MIDIAccessorClient.h
index 7d08c8108296e234e00bed365886b4fd18817c71..467d96df44234f395919e5f82d6bb7a1ae691bac 100644
--- a/Source/core/platform/midi/MIDIAccessorClient.h
+++ b/Source/core/platform/midi/MIDIAccessorClient.h
@@ -37,11 +37,12 @@ namespace WebCore {
class MIDIAccessorClient {
public:
- virtual void addInputPort(const String& id, const String& manufacturer, const String& name, const String& version) = 0;
- virtual void addOutputPort(const String& id, const String& manufacturer, const String& name, const String& version) = 0;
+ virtual void didAddInputPort(const String& id, const String& manufacturer, const String& name, const String& version) = 0;
+ virtual void didAddOutputPort(const String& id, const String& manufacturer, const String& name, const String& version) = 0;
- virtual void accessApproved(bool approved) = 0;
- virtual void receiveMIDIData(unsigned portIndex, const unsigned char* data, size_t length, double timeStamp) = 0;
+ virtual void didAllowAccess() = 0;
+ virtual void didBlockAccess() = 0;
+ virtual void didReceiveMIDIData(unsigned portIndex, const unsigned char* data, size_t length, double timeStamp) = 0;
};
} // namespace WebCore
« no previous file with comments | « Source/core/platform/midi/MIDIAccessor.cpp ('k') | public/platform/Platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698