| Index: Source/core/platform/midi/MIDIAccessorChromium.h
|
| diff --git a/Source/modules/donottrack/NavigatorDoNotTrack.h b/Source/core/platform/midi/MIDIAccessorChromium.h
|
| similarity index 71%
|
| copy from Source/modules/donottrack/NavigatorDoNotTrack.h
|
| copy to Source/core/platform/midi/MIDIAccessorChromium.h
|
| index 0c044e7cd8edef2f8860c374d59f077e1e963816..85a066687056ef0271d235aaec367d087fb4fc03 100644
|
| --- a/Source/modules/donottrack/NavigatorDoNotTrack.h
|
| +++ b/Source/core/platform/midi/MIDIAccessorChromium.h
|
| @@ -28,32 +28,31 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef NavigatorDoNotTrack_h
|
| -#define NavigatorDoNotTrack_h
|
| +#ifndef MIDIAccessorChromium_h
|
| +#define MIDIAccessorChromium_h
|
|
|
| -#include "core/page/DOMWindowProperty.h"
|
| -#include "core/platform/Supplementable.h"
|
| -#include "wtf/text/WTFString.h"
|
| +#include "core/platform/midi/MIDIAccessor.h"
|
| +#include "wtf/OwnPtr.h"
|
| +#include <public/WebMIDIAccessor.h>
|
|
|
| -namespace WebCore {
|
| +namespace WebCore {
|
|
|
| -class Frame;
|
| -class Navigator;
|
| -
|
| -class NavigatorDoNotTrack : public Supplement<Navigator>, public DOMWindowProperty {
|
| +class MIDIAccessorChromium : public MIDIAccessor, public WebKit::WebMIDIAccessor::Client {
|
| public:
|
| - virtual ~NavigatorDoNotTrack();
|
| - static NavigatorDoNotTrack* from(Navigator*);
|
| + MIDIAccessorChromium(MIDIAccessorClient*);
|
| + virtual ~MIDIAccessorChromium() { }
|
|
|
| - static String doNotTrack(Navigator*);
|
| + // MIDIAccessor
|
|
|
| - String doNotTrack();
|
| + // WebKit::WebMIDIAccessor::Client
|
| + virtual void receiveMIDIData(unsigned portIndex, const unsigned char* data, size_t length, double timeStamp);
|
|
|
| private:
|
| - explicit NavigatorDoNotTrack(Frame*);
|
| - static const char* supplementName();
|
| + MIDIAccessorClient* m_client;
|
| +
|
| + OwnPtr<WebKit::WebMIDIAccessor> m_accessor;
|
| };
|
|
|
| } // namespace WebCore
|
|
|
| -#endif // NavigatorDoNotTrack_h
|
| +#endif // MIDIAccessorChromium_h
|
|
|