OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # | 2 # |
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # TODO (qinmin): Need to refactor this file as base should not know about | 7 # TODO (qinmin): Need to refactor this file as base should not know about |
8 # higher level concepts. Currently this file has knowledge about higher level | 8 # higher level concepts. Currently this file has knowledge about higher level |
9 # java classes. | 9 # java classes. |
10 | 10 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 'Lorg/chromium/chromeview/DeviceOrientation', | 173 'Lorg/chromium/chromeview/DeviceOrientation', |
174 'Lorg/chromium/chromeview/JavaInputStream', | 174 'Lorg/chromium/chromeview/JavaInputStream', |
175 'Lorg/chromium/chromeview/LocationProvider', | 175 'Lorg/chromium/chromeview/LocationProvider', |
176 'Lorg/chromium/chromeview/SandboxedProcessArgs', | 176 'Lorg/chromium/chromeview/SandboxedProcessArgs', |
177 'Lorg/chromium/chromeview/SandboxedProcessConnection', | 177 'Lorg/chromium/chromeview/SandboxedProcessConnection', |
178 'Lorg/chromium/chromeview/SandboxedProcessService', | 178 'Lorg/chromium/chromeview/SandboxedProcessService', |
179 'Lorg/chromium/chromeview/SelectFileDialog', | 179 'Lorg/chromium/chromeview/SelectFileDialog', |
180 'Lorg/chromium/chromeview/SurfaceTextureListener', | 180 'Lorg/chromium/chromeview/SurfaceTextureListener', |
181 'Lorg/chromium/chromeview/TouchPoint', | 181 'Lorg/chromium/chromeview/TouchPoint', |
182 'Lorg/chromium/media/MediaPlayerListener', | 182 'Lorg/chromium/media/MediaPlayerListener', |
| 183 'Lorg/chromium/net/NetworkChangeNotifier', |
183 ] | 184 ] |
184 if param == 'byte[][]': | 185 if param == 'byte[][]': |
185 return '[[B' | 186 return '[[B' |
186 prefix = '' | 187 prefix = '' |
187 # Array? | 188 # Array? |
188 if param[-2:] == '[]': | 189 if param[-2:] == '[]': |
189 prefix = '[' | 190 prefix = '[' |
190 param = param[:-2] | 191 param = param[:-2] |
191 # Generic? | 192 # Generic? |
192 if '<' in param: | 193 if '<' in param: |
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
943 if options.output_files: | 944 if options.output_files: |
944 output_files = input_files[len(input_files) / 2:] | 945 output_files = input_files[len(input_files) / 2:] |
945 input_files = input_files[:len(input_files) / 2] | 946 input_files = input_files[:len(input_files) / 2] |
946 CheckFilenames(input_files, output_files) | 947 CheckFilenames(input_files, output_files) |
947 GenerateJNIHeaders(input_files, output_files, options.javap_class, | 948 GenerateJNIHeaders(input_files, output_files, options.javap_class, |
948 options.namespace) | 949 options.namespace) |
949 | 950 |
950 | 951 |
951 if __name__ == '__main__': | 952 if __name__ == '__main__': |
952 sys.exit(main(sys.argv)) | 953 sys.exit(main(sys.argv)) |
OLD | NEW |