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

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

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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
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 <vector> 9 #include <vector>
10 10
11 #include "base/android/scoped_java_ref.h" 11 #include "base/android/scoped_java_ref.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 13
14 namespace media { 14 namespace media {
15 namespace midi { 15 namespace midi {
16 16
17 class MidiOutputPortAndroid final { 17 class MidiOutputPortAndroid final {
18 public: 18 public:
19 MidiOutputPortAndroid(JNIEnv* env, jobject raw); 19 MidiOutputPortAndroid(JNIEnv* env, jobject raw);
20 ~MidiOutputPortAndroid(); 20 ~MidiOutputPortAndroid();
21 21
22 // Returns the when the operation succeeds or the port is already open. 22 // Returns the when the operation succeeds or the port is already open.
23 bool Open(); 23 bool Open();
24 void Close(); 24 void Close();
25 void Send(const std::vector<uint8>& data); 25 void Send(const std::vector<uint8_t>& data);
26 26
27 static bool Register(JNIEnv* env); 27 static bool Register(JNIEnv* env);
28 28
29 private: 29 private:
30 base::android::ScopedJavaGlobalRef<jobject> raw_port_; 30 base::android::ScopedJavaGlobalRef<jobject> raw_port_;
31 }; 31 };
32 32
33 } // namespace midi 33 } // namespace midi
34 } // namespace media 34 } // namespace media
35 35
36 #endif // MEDIA_MIDI_MIDI_OUTPUT_PORT_ANDROID_H_ 36 #endif // MEDIA_MIDI_MIDI_OUTPUT_PORT_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698