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

Side by Side Diff: content/renderer/media/renderer_webmidiaccessor_impl.h

Issue 16025005: Web MIDI API back-end (work-in-progress) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698