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

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

Issue 2199913003: media: Remove unneeded RegisterNatives() call (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@jnireg1
Patch Set: rebase Created 4 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
« no previous file with comments | « media/midi/midi_jni_registrar.cc ('k') | media/midi/midi_output_port_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_MIDI_MIDI_OUTPUT_PORT_ANDROID_H_ 5 #ifndef MEDIA_MIDI_MIDI_OUTPUT_PORT_ANDROID_H_
6 #define MEDIA_MIDI_MIDI_OUTPUT_PORT_ANDROID_H_ 6 #define MEDIA_MIDI_MIDI_OUTPUT_PORT_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/android/scoped_java_ref.h" 12 #include "base/android/scoped_java_ref.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 14
15 namespace media { 15 namespace media {
16 namespace midi { 16 namespace midi {
17 17
18 class MidiOutputPortAndroid final { 18 class MidiOutputPortAndroid final {
19 public: 19 public:
20 MidiOutputPortAndroid(JNIEnv* env, jobject raw); 20 MidiOutputPortAndroid(JNIEnv* env, jobject raw);
21 ~MidiOutputPortAndroid(); 21 ~MidiOutputPortAndroid();
22 22
23 // Returns the when the operation succeeds or the port is already open. 23 // Returns the when the operation succeeds or the port is already open.
24 bool Open(); 24 bool Open();
25 void Close(); 25 void Close();
26 void Send(const std::vector<uint8_t>& data); 26 void Send(const std::vector<uint8_t>& data);
27 27
28 static bool Register(JNIEnv* env);
29
30 private: 28 private:
31 base::android::ScopedJavaGlobalRef<jobject> raw_port_; 29 base::android::ScopedJavaGlobalRef<jobject> raw_port_;
32 }; 30 };
33 31
34 } // namespace midi 32 } // namespace midi
35 } // namespace media 33 } // namespace media
36 34
37 #endif // MEDIA_MIDI_MIDI_OUTPUT_PORT_ANDROID_H_ 35 #endif // MEDIA_MIDI_MIDI_OUTPUT_PORT_ANDROID_H_
OLDNEW
« no previous file with comments | « media/midi/midi_jni_registrar.cc ('k') | media/midi/midi_output_port_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698