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

Side by Side Diff: media/midi/midi_output_port_android.h

Issue 1177973003: [Web MIDI] Use Android MIDI API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
OLDNEW
(Empty)
1 // Copyright 2015 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 MEDIA_MIDI_MIDI_OUTPUT_PORT_ANDROID_H_
6 #define MEDIA_MIDI_MIDI_OUTPUT_PORT_ANDROID_H_
7
8 #include <jni.h>
9 #include <vector>
10
11 #include "base/android/scoped_java_ref.h"
12 #include "base/time/time.h"
13
14 namespace media {
15 namespace midi {
16
17 class MidiOutputPortAndroid final {
18 public:
19 MidiOutputPortAndroid(JNIEnv* env, jobject raw);
20 ~MidiOutputPortAndroid();
21
22 void Send(const std::vector<uint8>& data);
23
24 static bool Register(JNIEnv* env);
25
26 private:
27 base::android::ScopedJavaGlobalRef<jobject> raw_port_;
28 };
29
30 } // namespace midi
31 } // namespace media
32
33 #endif // MEDIA_MIDI_MIDI_OUTPUT_PORT_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698