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

Side by Side Diff: base/android/jni_generator/jni_generator.py

Issue 10961015: Android: MediaPlayerBridge JNI cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 3 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 | « no previous file | media/base/android/java/src/org/chromium/media/MediaPlayerBridge.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # TODO (qinmin): Need to refactor this file as base should not know about 6 # TODO (qinmin): Need to refactor this file as base should not know about
7 # higher level concepts. Currently this file has knowledge about higher level 7 # higher level concepts. Currently this file has knowledge about higher level
8 # java classes. 8 # java classes.
9 9
10 """Extracts native methods from a Java file and generates the JNI bindings. 10 """Extracts native methods from a Java file and generates the JNI bindings.
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 'Ljava/util/HashMap', 134 'Ljava/util/HashMap',
135 'Ljava/util/List', 135 'Ljava/util/List',
136 'Landroid/content/Context', 136 'Landroid/content/Context',
137 'Landroid/graphics/Bitmap', 137 'Landroid/graphics/Bitmap',
138 'Landroid/graphics/Canvas', 138 'Landroid/graphics/Canvas',
139 'Landroid/graphics/Rect', 139 'Landroid/graphics/Rect',
140 'Landroid/graphics/RectF', 140 'Landroid/graphics/RectF',
141 'Landroid/graphics/Matrix', 141 'Landroid/graphics/Matrix',
142 'Landroid/graphics/Point', 142 'Landroid/graphics/Point',
143 'Landroid/graphics/SurfaceTexture$OnFrameAvailableListener', 143 'Landroid/graphics/SurfaceTexture$OnFrameAvailableListener',
144 'Landroid/media/MediaPlayer',
144 'Landroid/os/Message', 145 'Landroid/os/Message',
145 'Landroid/view/KeyEvent', 146 'Landroid/view/KeyEvent',
146 'Landroid/view/Surface', 147 'Landroid/view/Surface',
147 'Landroid/view/View', 148 'Landroid/view/View',
148 'Landroid/webkit/ValueCallback', 149 'Landroid/webkit/ValueCallback',
149 'Ljava/io/InputStream', 150 'Ljava/io/InputStream',
150 'Ljava/nio/ByteBuffer', 151 'Ljava/nio/ByteBuffer',
151 'Ljava/util/Vector', 152 'Ljava/util/Vector',
152 ] 153 ]
153 app_param_list = [ 154 app_param_list = [
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 input_file = options.input_file 1025 input_file = options.input_file
1025 output_file = None 1026 output_file = None
1026 if options.output_dir: 1027 if options.output_dir:
1027 root_name = os.path.splitext(os.path.basename(input_file))[0] 1028 root_name = os.path.splitext(os.path.basename(input_file))[0]
1028 output_file = os.path.join(options.output_dir, root_name) + '_jni.h' 1029 output_file = os.path.join(options.output_dir, root_name) + '_jni.h'
1029 GenerateJNIHeader(input_file, output_file, options.namespace) 1030 GenerateJNIHeader(input_file, output_file, options.namespace)
1030 1031
1031 1032
1032 if __name__ == '__main__': 1033 if __name__ == '__main__':
1033 sys.exit(main(sys.argv)) 1034 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | media/base/android/java/src/org/chromium/media/MediaPlayerBridge.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698