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/android_webview/JsResultReceiver', | 171 'Lorg/chromium/android_webview/JsResultReceiver', |
172 'Lorg/chromium/base/SystemMessageHandler', | 172 'Lorg/chromium/base/SystemMessageHandler', |
173 'Lorg/chromium/chrome/browser/ChromeBrowserProvider$BookmarkNode', | 173 'Lorg/chromium/chrome/browser/ChromeBrowserProvider$BookmarkNode', |
174 'Lorg/chromium/chrome/browser/ChromeWebContentsDelegateAndroid', | 174 'Lorg/chromium/chrome/browser/ChromeWebContentsDelegateAndroid', |
175 'Lorg/chromium/chrome/browser/FindMatchRectsDetails', | 175 'Lorg/chromium/chrome/browser/FindMatchRectsDetails', |
176 'Lorg/chromium/chrome/browser/FindNotificationDetails', | 176 'Lorg/chromium/chrome/browser/FindNotificationDetails', |
177 'Lorg/chromium/chrome/browser/JavascriptAppModalDialog', | 177 'Lorg/chromium/chrome/browser/JavascriptAppModalDialog', |
178 'Lorg/chromium/chrome/browser/ProcessUtils', | 178 'Lorg/chromium/chrome/browser/ProcessUtils', |
179 'Lorg/chromium/chrome/browser/component/web_contents_delegate_android/WebC
ontentsDelegateAndroid', | 179 'Lorg/chromium/chrome/browser/component/web_contents_delegate_android/WebC
ontentsDelegateAndroid', |
180 'Lorg/chromium/content/browser/ContentVideoView', | 180 'Lorg/chromium/content/browser/ContentVideoView', |
181 'Lorg/chromium/content/browser/ContentViewClient', | |
182 'Lorg/chromium/content/browser/ContentViewCore', | 181 'Lorg/chromium/content/browser/ContentViewCore', |
183 'Lorg/chromium/content/browser/DeviceOrientation', | 182 'Lorg/chromium/content/browser/DeviceOrientation', |
184 'Lorg/chromium/content/browser/FindNotificationDetails', | 183 'Lorg/chromium/content/browser/FindNotificationDetails', |
185 'Lorg/chromium/content/browser/JavaInputStream', | 184 'Lorg/chromium/content/browser/JavaInputStream', |
186 'Lorg/chromium/content/browser/LocationProvider', | 185 'Lorg/chromium/content/browser/LocationProvider', |
187 'Lorg/chromium/content/browser/SandboxedProcessArgs', | 186 'Lorg/chromium/content/browser/SandboxedProcessArgs', |
188 'Lorg/chromium/content/browser/SandboxedProcessConnection', | 187 'Lorg/chromium/content/browser/SandboxedProcessConnection', |
189 'Lorg/chromium/content/app/SandboxedProcessService', | 188 'Lorg/chromium/content/app/SandboxedProcessService', |
190 'Lorg/chromium/content/browser/TouchPoint', | 189 'Lorg/chromium/content/browser/TouchPoint', |
191 'Lorg/chromium/content/browser/WaitableNativeEvent', | 190 'Lorg/chromium/content/browser/WaitableNativeEvent', |
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
990 input_file = options.input_file | 989 input_file = options.input_file |
991 output_file = None | 990 output_file = None |
992 if options.output_dir: | 991 if options.output_dir: |
993 root_name = os.path.splitext(os.path.basename(input_file))[0] | 992 root_name = os.path.splitext(os.path.basename(input_file))[0] |
994 output_file = os.path.join(options.output_dir, root_name) + '_jni.h' | 993 output_file = os.path.join(options.output_dir, root_name) + '_jni.h' |
995 GenerateJNIHeader(input_file, output_file, options.namespace) | 994 GenerateJNIHeader(input_file, output_file, options.namespace) |
996 | 995 |
997 | 996 |
998 if __name__ == '__main__': | 997 if __name__ == '__main__': |
999 sys.exit(main(sys.argv)) | 998 sys.exit(main(sys.argv)) |
OLD | NEW |