| Index: media/midi/midi_output_port_android.h
|
| diff --git a/media/midi/midi_output_port_android.h b/media/midi/midi_output_port_android.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1607d377fe993dd44ca0025d6dbe7689462122c2
|
| --- /dev/null
|
| +++ b/media/midi/midi_output_port_android.h
|
| @@ -0,0 +1,33 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef MEDIA_MIDI_MIDI_OUTPUT_PORT_ANDROID_H_
|
| +#define MEDIA_MIDI_MIDI_OUTPUT_PORT_ANDROID_H_
|
| +
|
| +#include <jni.h>
|
| +#include <vector>
|
| +
|
| +#include "base/android/scoped_java_ref.h"
|
| +#include "base/time/time.h"
|
| +
|
| +namespace media {
|
| +namespace midi {
|
| +
|
| +class MidiOutputPortAndroid final {
|
| + public:
|
| + MidiOutputPortAndroid(JNIEnv* env, jobject raw);
|
| + ~MidiOutputPortAndroid();
|
| +
|
| + void Send(const std::vector<uint8>& data);
|
| +
|
| + static bool Register(JNIEnv* env);
|
| +
|
| + private:
|
| + base::android::ScopedJavaGlobalRef<jobject> raw_port_;
|
| +};
|
| +
|
| +} // namespace midi
|
| +} // namespace media
|
| +
|
| +#endif // MEDIA_MIDI_MIDI_OUTPUT_PORT_ANDROID_H_
|
|
|