| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 'Lorg/chromium/content/browser/ContentHttpAuthHandler', | 171 'Lorg/chromium/content/browser/ContentHttpAuthHandler', |
| 172 'Lorg/chromium/content/browser/DeviceInfo', | 172 'Lorg/chromium/content/browser/DeviceInfo', |
| 173 'Lorg/chromium/content/browser/DeviceOrientation', | 173 'Lorg/chromium/content/browser/DeviceOrientation', |
| 174 'Lorg/chromium/content/browser/FileChooserParams', | 174 'Lorg/chromium/content/browser/FileChooserParams', |
| 175 'Lorg/chromium/content/browser/InterceptedRequestData', | 175 'Lorg/chromium/content/browser/InterceptedRequestData', |
| 176 'Lorg/chromium/content/browser/JavaInputStream', | 176 'Lorg/chromium/content/browser/JavaInputStream', |
| 177 'Lorg/chromium/content/browser/LocationProvider', | 177 'Lorg/chromium/content/browser/LocationProvider', |
| 178 'Lorg/chromium/content/browser/SandboxedProcessArgs', | 178 'Lorg/chromium/content/browser/SandboxedProcessArgs', |
| 179 'Lorg/chromium/content/browser/SandboxedProcessConnection', | 179 'Lorg/chromium/content/browser/SandboxedProcessConnection', |
| 180 'Lorg/chromium/content/app/SandboxedProcessService', | 180 'Lorg/chromium/content/app/SandboxedProcessService', |
| 181 'Lorg/chromium/content/browser/SurfaceTextureListener', | |
| 182 'Lorg/chromium/content/browser/TouchPoint', | 181 'Lorg/chromium/content/browser/TouchPoint', |
| 183 'Lorg/chromium/content/browser/WaitableNativeEvent', | 182 'Lorg/chromium/content/browser/WaitableNativeEvent', |
| 183 'Lorg/chromium/content/common/SurfaceTextureListener', |
| 184 'Lorg/chromium/media/MediaPlayerListener', | 184 'Lorg/chromium/media/MediaPlayerListener', |
| 185 'Lorg/chromium/net/NetworkChangeNotifier', | 185 'Lorg/chromium/net/NetworkChangeNotifier', |
| 186 'Lorg/chromium/net/ProxyChangeListener', | 186 'Lorg/chromium/net/ProxyChangeListener', |
| 187 ] | 187 ] |
| 188 if param == 'byte[][]': | 188 if param == 'byte[][]': |
| 189 return '[[B' | 189 return '[[B' |
| 190 prefix = '' | 190 prefix = '' |
| 191 # Array? | 191 # Array? |
| 192 if param[-2:] == '[]': | 192 if param[-2:] == '[]': |
| 193 prefix = '[' | 193 prefix = '[' |
| (...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 999 CheckFilenames(input_files, output_files) | 999 CheckFilenames(input_files, output_files) |
| 1000 if options.jar_file: | 1000 if options.jar_file: |
| 1001 # CheckFileNames guarantees same length for inputs and outputs | 1001 # CheckFileNames guarantees same length for inputs and outputs |
| 1002 out_dirs = map(os.path.dirname, output_files) | 1002 out_dirs = map(os.path.dirname, output_files) |
| 1003 input_files = ExtractInputFiles(options.jar_file, input_files, out_dirs) | 1003 input_files = ExtractInputFiles(options.jar_file, input_files, out_dirs) |
| 1004 GenerateJNIHeaders(input_files, output_files, options.namespace) | 1004 GenerateJNIHeaders(input_files, output_files, options.namespace) |
| 1005 | 1005 |
| 1006 | 1006 |
| 1007 if __name__ == '__main__': | 1007 if __name__ == '__main__': |
| 1008 sys.exit(main(sys.argv)) | 1008 sys.exit(main(sys.argv)) |
| OLD | NEW |