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

Side by Side Diff: Source/core/platform/midi/MIDIAccessor.h

Issue 18260005: Web MIDI: remove old platform API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@midi_permission_request
Patch Set: (rebase) Created 7 years, 5 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 | Source/core/platform/midi/MIDIAccessor.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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 virtual ~MIDIAccessor() { } 47 virtual ~MIDIAccessor() { }
48 48
49 void startSession(); 49 void startSession();
50 void sendMIDIData(unsigned portIndex, const unsigned char* data, size_t leng th, double timeStamp); 50 void sendMIDIData(unsigned portIndex, const unsigned char* data, size_t leng th, double timeStamp);
51 51
52 // WebKit::WebMIDIAccessorClient 52 // WebKit::WebMIDIAccessorClient
53 virtual void didAddInputPort(const WebKit::WebString& id, const WebKit::WebS tring& manufacturer, const WebKit::WebString& name, const WebKit::WebString& ver sion) OVERRIDE; 53 virtual void didAddInputPort(const WebKit::WebString& id, const WebKit::WebS tring& manufacturer, const WebKit::WebString& name, const WebKit::WebString& ver sion) OVERRIDE;
54 virtual void didAddOutputPort(const WebKit::WebString& id, const WebKit::Web String& manufacturer, const WebKit::WebString& name, const WebKit::WebString& ve rsion) OVERRIDE; 54 virtual void didAddOutputPort(const WebKit::WebString& id, const WebKit::Web String& manufacturer, const WebKit::WebString& name, const WebKit::WebString& ve rsion) OVERRIDE;
55 virtual void didStartSession() OVERRIDE; 55 virtual void didStartSession() OVERRIDE;
56 virtual void didAllowAccess() OVERRIDE;
57 virtual void didBlockAccess() OVERRIDE;
58 virtual void didReceiveMIDIData(unsigned portIndex, const unsigned char* dat a, size_t length, double timeStamp) OVERRIDE; 56 virtual void didReceiveMIDIData(unsigned portIndex, const unsigned char* dat a, size_t length, double timeStamp) OVERRIDE;
59 57
60 private: 58 private:
61 explicit MIDIAccessor(MIDIAccessorClient*); 59 explicit MIDIAccessor(MIDIAccessorClient*);
62 60
63 MIDIAccessorClient* m_client; 61 MIDIAccessorClient* m_client;
64 OwnPtr<WebKit::WebMIDIAccessor> m_accessor; 62 OwnPtr<WebKit::WebMIDIAccessor> m_accessor;
65 }; 63 };
66 64
67 } // namespace WebCore 65 } // namespace WebCore
68 66
69 #endif // MIDIAccessor_h 67 #endif // MIDIAccessor_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/platform/midi/MIDIAccessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698