| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 'Lcom/google/android/apps/chrome/infobar/InfoBarContainer', | 159 'Lcom/google/android/apps/chrome/infobar/InfoBarContainer', |
| 160 'Lcom/google/android/apps/chrome/infobar/InfoBarContainer$NativeInfoBar', | 160 'Lcom/google/android/apps/chrome/infobar/InfoBarContainer$NativeInfoBar', |
| 161 ('Lcom/google/android/apps/chrome/preferences/ChromeNativePreferences$' | 161 ('Lcom/google/android/apps/chrome/preferences/ChromeNativePreferences$' |
| 162 'PasswordListObserver'), | 162 'PasswordListObserver'), |
| 163 'Lorg/chromium/android_webview/AwContents', | 163 'Lorg/chromium/android_webview/AwContents', |
| 164 'Lorg/chromium/android_webview/AwContentsClient', | 164 'Lorg/chromium/android_webview/AwContentsClient', |
| 165 'Lorg/chromium/android_webview/AwHttpAuthHandler', | 165 'Lorg/chromium/android_webview/AwHttpAuthHandler', |
| 166 'Lorg/chromium/android_webview/AwContentsIoThreadClient', | 166 'Lorg/chromium/android_webview/AwContentsIoThreadClient', |
| 167 'Lorg/chromium/android_webview/AwWebContentsDelegate', | 167 'Lorg/chromium/android_webview/AwWebContentsDelegate', |
| 168 'Lorg/chromium/android_webview/InterceptedRequestData', | 168 'Lorg/chromium/android_webview/InterceptedRequestData', |
| 169 'Lorg/chromium/android_webview/JsPromptResultReceiver', |
| 170 'Lorg/chromium/android_webview/JsResultHandler', |
| 171 'Lorg/chromium/android_webview/JsResultReceiver', |
| 169 'Lorg/chromium/base/SystemMessageHandler', | 172 'Lorg/chromium/base/SystemMessageHandler', |
| 170 'Lorg/chromium/chrome/browser/ChromeBrowserProvider$BookmarkNode', | 173 'Lorg/chromium/chrome/browser/ChromeBrowserProvider$BookmarkNode', |
| 171 'Lorg/chromium/chrome/browser/ChromeWebContentsDelegateAndroid', | 174 'Lorg/chromium/chrome/browser/ChromeWebContentsDelegateAndroid', |
| 172 'Lorg/chromium/chrome/browser/FindMatchRectsDetails', | 175 'Lorg/chromium/chrome/browser/FindMatchRectsDetails', |
| 173 'Lorg/chromium/chrome/browser/FindNotificationDetails', | 176 'Lorg/chromium/chrome/browser/FindNotificationDetails', |
| 174 'Lorg/chromium/chrome/browser/JavascriptAppModalDialog', | 177 'Lorg/chromium/chrome/browser/JavascriptAppModalDialog', |
| 175 'Lorg/chromium/chrome/browser/ProcessUtils', | 178 'Lorg/chromium/chrome/browser/ProcessUtils', |
| 176 'Lorg/chromium/chrome/browser/component/web_contents_delegate_android/WebC
ontentsDelegateAndroid', | 179 'Lorg/chromium/chrome/browser/component/web_contents_delegate_android/WebC
ontentsDelegateAndroid', |
| 177 'Lorg/chromium/content/browser/ContentVideoView', | 180 'Lorg/chromium/content/browser/ContentVideoView', |
| 178 'Lorg/chromium/content/browser/ContentViewClient', | 181 'Lorg/chromium/content/browser/ContentViewClient', |
| (...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 987 input_file = options.input_file | 990 input_file = options.input_file |
| 988 output_file = None | 991 output_file = None |
| 989 if options.output_dir: | 992 if options.output_dir: |
| 990 root_name = os.path.splitext(os.path.basename(input_file))[0] | 993 root_name = os.path.splitext(os.path.basename(input_file))[0] |
| 991 output_file = os.path.join(options.output_dir, root_name) + '_jni.h' | 994 output_file = os.path.join(options.output_dir, root_name) + '_jni.h' |
| 992 GenerateJNIHeader(input_file, output_file, options.namespace) | 995 GenerateJNIHeader(input_file, output_file, options.namespace) |
| 993 | 996 |
| 994 | 997 |
| 995 if __name__ == '__main__': | 998 if __name__ == '__main__': |
| 996 sys.exit(main(sys.argv)) | 999 sys.exit(main(sys.argv)) |
| OLD | NEW |