OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/base/android/media_player_bridge.h" | 5 #include "media/base/android/media_player_bridge.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/stringprintf.h" | 11 #include "base/stringprintf.h" |
12 | 12 |
13 // Auto generated jni class from MediaPlayerListener.java. | 13 // Auto generated jni class from MediaPlayerListener.java. |
14 // Check base/android/jni_generator/golden_sample_for_tests_jni.h for example. | 14 // Check base/android/jni_generator/golden_sample_for_tests_jni.h for example. |
15 #include "jni/media_player_listener_jni.h" | 15 #include "jni/MediaPlayerListener_jni.h" |
16 | 16 |
17 using base::android::AttachCurrentThread; | 17 using base::android::AttachCurrentThread; |
18 using base::android::CheckException; | 18 using base::android::CheckException; |
19 using base::android::ConvertUTF8ToJavaString; | 19 using base::android::ConvertUTF8ToJavaString; |
20 using base::android::GetClass; | 20 using base::android::GetClass; |
21 using base::android::GetMethodID; | 21 using base::android::GetMethodID; |
22 using base::android::JavaRef; | 22 using base::android::JavaRef; |
23 using base::android::ScopedJavaLocalRef; | 23 using base::android::ScopedJavaLocalRef; |
24 | 24 |
25 // These constants are from the android source tree and need to be kept in | 25 // These constants are from the android source tree and need to be kept in |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 return j_result; | 352 return j_result; |
353 } | 353 } |
354 | 354 |
355 bool MediaPlayerBridge::RegisterMediaPlayerListener(JNIEnv* env) { | 355 bool MediaPlayerBridge::RegisterMediaPlayerListener(JNIEnv* env) { |
356 bool ret = RegisterNativesImpl(env); | 356 bool ret = RegisterNativesImpl(env); |
357 DCHECK(g_MediaPlayerListener_clazz); | 357 DCHECK(g_MediaPlayerListener_clazz); |
358 return ret; | 358 return ret; |
359 } | 359 } |
360 | 360 |
361 } // namespace media | 361 } // namespace media |
OLD | NEW |