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

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

Issue 2418493002: //media/midi: use top level namespace midi rather than media.midi (Closed)
Patch Set: TAG name change s/media_midi/midi/ Created 4 years, 2 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_device_android.cc ('k') | media/midi/midi_input_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_INPUT_PORT_ANDROID_H_ 5 #ifndef MEDIA_MIDI_MIDI_INPUT_PORT_ANDROID_H_
6 #define MEDIA_MIDI_MIDI_INPUT_PORT_ANDROID_H_ 6 #define MEDIA_MIDI_MIDI_INPUT_PORT_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 #include <stdint.h> 10 #include <stdint.h>
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 {
16 namespace midi { 15 namespace midi {
17 16
18 class MidiInputPortAndroid final { 17 class MidiInputPortAndroid final {
19 public: 18 public:
20 class Delegate { 19 class Delegate {
21 public: 20 public:
22 virtual ~Delegate() {} 21 virtual ~Delegate() {}
23 virtual void OnReceivedData(MidiInputPortAndroid* port, 22 virtual void OnReceivedData(MidiInputPortAndroid* port,
24 const uint8_t* data, 23 const uint8_t* data,
25 size_t size, 24 size_t size,
(...skipping 15 matching lines...) Expand all
41 jlong timestamp); 40 jlong timestamp);
42 41
43 static bool Register(JNIEnv* env); 42 static bool Register(JNIEnv* env);
44 43
45 private: 44 private:
46 base::android::ScopedJavaGlobalRef<jobject> raw_port_; 45 base::android::ScopedJavaGlobalRef<jobject> raw_port_;
47 Delegate* const delegate_; 46 Delegate* const delegate_;
48 }; 47 };
49 48
50 } // namespace midi 49 } // namespace midi
51 } // namespace media
52 50
53 #endif // MEDIA_MIDI_MIDI_INPUT_PORT_ANDROID_H_ 51 #endif // MEDIA_MIDI_MIDI_INPUT_PORT_ANDROID_H_
OLDNEW
« no previous file with comments | « media/midi/midi_device_android.cc ('k') | media/midi/midi_input_port_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698