OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_RENDERER_MEDIA_RENDERER_WEBMIDIACCESOR_IMPL_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_RENDERER_WEBMIDIACCESOR_IMPL_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" |
| 10 #include "third_party/WebKit/public/platform/WebMIDIAccessor.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 14 class MIDIMessageFilter; |
| 15 |
| 16 class RendererWebMIDIAccessorImpl |
| 17 : public WebKit::WebMIDIAccessor { |
| 18 public: |
| 19 explicit RendererWebMIDIAccessorImpl( |
| 20 WebKit::WebMIDIAccessor::Client* client); |
| 21 virtual ~RendererWebMIDIAccessorImpl(); |
| 22 |
| 23 // WebKit::WebMIDIAccessor implementation. |
| 24 virtual void requestAccess(int access) OVERRIDE; |
| 25 virtual void sendMIDIData(unsigned port_index, |
| 26 const unsigned char* data, |
| 27 size_t length, |
| 28 double timestamp) OVERRIDE; |
| 29 |
| 30 private: |
| 31 WebKit::WebMIDIAccessor::Client* client_; |
| 32 |
| 33 MIDIMessageFilter* midi_message_filter(); |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(RendererWebMIDIAccessorImpl); |
| 36 }; |
| 37 |
| 38 } // namespace content |
| 39 |
| 40 #endif // CONTENT_RENDERER_MEDIA_RENDERER_WEBMIDIACCESOR_IMPL_H_ |
OLD | NEW |