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

Side by Side Diff: media/base/android/media_player_bridge.cc

Issue 10798010: Uses gyp "rules" rather than "actions" templates for the JNI generator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Typo on content_jni.gypi Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « content/shell/shell_android.cc ('k') | media/media.gyp » ('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 (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
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
OLDNEW
« no previous file with comments | « content/shell/shell_android.cc ('k') | media/media.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698