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

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

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_input_port_android.h ('k') | media/midi/midi_jni_registrar.h » ('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 #include "media/midi/midi_input_port_android.h" 5 #include "media/midi/midi_input_port_android.h"
6 6
7 #include "base/android/jni_array.h" 7 #include "base/android/jni_array.h"
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "jni/MidiInputPortAndroid_jni.h" 9 #include "jni/MidiInputPortAndroid_jni.h"
10 10
11 using base::android::JavaParamRef; 11 using base::android::JavaParamRef;
12 12
13 namespace media {
14 namespace midi { 13 namespace midi {
15 14
16 MidiInputPortAndroid::MidiInputPortAndroid(JNIEnv* env, 15 MidiInputPortAndroid::MidiInputPortAndroid(JNIEnv* env,
17 jobject raw, 16 jobject raw,
18 Delegate* delegate) 17 Delegate* delegate)
19 : raw_port_(env, raw), delegate_(delegate) {} 18 : raw_port_(env, raw), delegate_(delegate) {}
20 19
21 MidiInputPortAndroid::~MidiInputPortAndroid() { 20 MidiInputPortAndroid::~MidiInputPortAndroid() {
22 Close(); 21 Close();
23 } 22 }
(...skipping 27 matching lines...) Expand all
51 base::TimeTicks timestamp_to_pass = base::TimeTicks::FromInternalValue( 50 base::TimeTicks timestamp_to_pass = base::TimeTicks::FromInternalValue(
52 timestamp / base::TimeTicks::kNanosecondsPerMicrosecond); 51 timestamp / base::TimeTicks::kNanosecondsPerMicrosecond);
53 delegate_->OnReceivedData(this, &bytes[offset], size, timestamp_to_pass); 52 delegate_->OnReceivedData(this, &bytes[offset], size, timestamp_to_pass);
54 } 53 }
55 54
56 bool MidiInputPortAndroid::Register(JNIEnv* env) { 55 bool MidiInputPortAndroid::Register(JNIEnv* env) {
57 return RegisterNativesImpl(env); 56 return RegisterNativesImpl(env);
58 } 57 }
59 58
60 } // namespace midi 59 } // namespace midi
61 } // namespace media
OLDNEW
« no previous file with comments | « media/midi/midi_input_port_android.h ('k') | media/midi/midi_jni_registrar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698