| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 'Lcom/google/android/apps/chrome/infobar/InfoBarContainer$NativeInfoBar', | 162 'Lcom/google/android/apps/chrome/infobar/InfoBarContainer$NativeInfoBar', |
| 163 ('Lcom/google/android/apps/chrome/preferences/ChromeNativePreferences$' | 163 ('Lcom/google/android/apps/chrome/preferences/ChromeNativePreferences$' |
| 164 'PasswordListObserver'), | 164 'PasswordListObserver'), |
| 165 'Lorg/chromium/base/SystemMessageHandler', | 165 'Lorg/chromium/base/SystemMessageHandler', |
| 166 'Lorg/chromium/chrome/browser/JSModalDialog', | 166 'Lorg/chromium/chrome/browser/JSModalDialog', |
| 167 'Lorg/chromium/chrome/browser/SelectFileDialog', | 167 'Lorg/chromium/chrome/browser/SelectFileDialog', |
| 168 'Lorg/chromium/content/browser/ChromeVideoView', | 168 'Lorg/chromium/content/browser/ChromeVideoView', |
| 169 'Lorg/chromium/content/browser/ContentView', | 169 'Lorg/chromium/content/browser/ContentView', |
| 170 ('Lorg/chromium/content/browser/ContentView$' | 170 ('Lorg/chromium/content/browser/ContentView$' |
| 171 'FindResultReceivedListener$FindNotificationDetails'), | 171 'FindResultReceivedListener$FindNotificationDetails'), |
| 172 'Lorg/chromium/content/browser/ChromeViewClient', | 172 'Lorg/chromium/content/browser/ContentViewClient', |
| 173 'Lorg/chromium/content/browser/ContentHttpAuthHandler', | 173 'Lorg/chromium/content/browser/ContentHttpAuthHandler', |
| 174 'Lorg/chromium/content/browser/DeviceInfo', | 174 'Lorg/chromium/content/browser/DeviceInfo', |
| 175 'Lorg/chromium/content/browser/DeviceOrientation', | 175 'Lorg/chromium/content/browser/DeviceOrientation', |
| 176 'Lorg/chromium/content/browser/FileChooserParams', | 176 'Lorg/chromium/content/browser/FileChooserParams', |
| 177 'Lorg/chromium/content/browser/InterceptedRequestData', | 177 'Lorg/chromium/content/browser/InterceptedRequestData', |
| 178 'Lorg/chromium/content/browser/JavaInputStream', | 178 'Lorg/chromium/content/browser/JavaInputStream', |
| 179 'Lorg/chromium/content/browser/LocationProvider', | 179 'Lorg/chromium/content/browser/LocationProvider', |
| 180 'Lorg/chromium/content/browser/SandboxedProcessArgs', | 180 'Lorg/chromium/content/browser/SandboxedProcessArgs', |
| 181 'Lorg/chromium/content/browser/SandboxedProcessConnection', | 181 'Lorg/chromium/content/browser/SandboxedProcessConnection', |
| 182 'Lorg/chromium/content/browser/SandboxedProcessService', | 182 'Lorg/chromium/content/browser/SandboxedProcessService', |
| (...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 981 CheckFilenames(input_files, output_files) | 981 CheckFilenames(input_files, output_files) |
| 982 if options.jar_file: | 982 if options.jar_file: |
| 983 # CheckFileNames guarantees same length for inputs and outputs | 983 # CheckFileNames guarantees same length for inputs and outputs |
| 984 out_dirs = map(os.path.dirname, output_files) | 984 out_dirs = map(os.path.dirname, output_files) |
| 985 input_files = ExtractInputFiles(options.jar_file, input_files, out_dirs) | 985 input_files = ExtractInputFiles(options.jar_file, input_files, out_dirs) |
| 986 GenerateJNIHeaders(input_files, output_files, options.namespace) | 986 GenerateJNIHeaders(input_files, output_files, options.namespace) |
| 987 | 987 |
| 988 | 988 |
| 989 if __name__ == '__main__': | 989 if __name__ == '__main__': |
| 990 sys.exit(main(sys.argv)) | 990 sys.exit(main(sys.argv)) |
| OLD | NEW |