Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: base/android/jni_generator/jni_generator.py

Issue 10206014: Upstream Android proxy config service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comment Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
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',
183 'Lorg/chromium/content/browser/SurfaceTextureListener', 183 'Lorg/chromium/content/browser/SurfaceTextureListener',
184 'Lorg/chromium/content/browser/TouchPoint', 184 'Lorg/chromium/content/browser/TouchPoint',
185 'Lorg/chromium/content/browser/WaitableNativeEvent', 185 'Lorg/chromium/content/browser/WaitableNativeEvent',
186 'Lorg/chromium/media/MediaPlayerListener', 186 'Lorg/chromium/media/MediaPlayerListener',
187 'Lorg/chromium/net/NetworkChangeNotifier', 187 'Lorg/chromium/net/NetworkChangeNotifier',
188 'Lorg/chromium/net/NetworkChangeNotifier',
bulach 2012/06/06 10:57:38 nit: seems duplicated w/ 187?
Philippe 2012/06/06 11:36:58 Indeed. Probably due to a merge conflict.
188 'Lorg/chromium/net/ProxyChangeListener', 189 'Lorg/chromium/net/ProxyChangeListener',
189 'Lorg/chromium/net/NetworkChangeNotifier',
190 ] 190 ]
191 if param == 'byte[][]': 191 if param == 'byte[][]':
192 return '[[B' 192 return '[[B'
193 prefix = '' 193 prefix = ''
194 # Array? 194 # Array?
195 if param[-2:] == '[]': 195 if param[-2:] == '[]':
196 prefix = '[' 196 prefix = '['
197 param = param[:-2] 197 param = param[:-2]
198 # Generic? 198 # Generic?
199 if '<' in param: 199 if '<' in param:
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 CheckFilenames(input_files, output_files) 982 CheckFilenames(input_files, output_files)
983 if options.jar_file: 983 if options.jar_file:
984 # CheckFileNames guarantees same length for inputs and outputs 984 # CheckFileNames guarantees same length for inputs and outputs
985 out_dirs = map(os.path.dirname, output_files) 985 out_dirs = map(os.path.dirname, output_files)
986 input_files = ExtractInputFiles(options.jar_file, input_files, out_dirs) 986 input_files = ExtractInputFiles(options.jar_file, input_files, out_dirs)
987 GenerateJNIHeaders(input_files, output_files, options.namespace) 987 GenerateJNIHeaders(input_files, output_files, options.namespace)
988 988
989 989
990 if __name__ == '__main__': 990 if __name__ == '__main__':
991 sys.exit(main(sys.argv)) 991 sys.exit(main(sys.argv))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698