| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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)) |
| OLD | NEW |