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

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: Address Marcus' comments 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
« no previous file with comments | « no previous file | net/android/java/org/chromium/net/ProxyChangeListener.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
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/ProxyChangeListener', 188 'Lorg/chromium/net/ProxyChangeListener',
189 'Lorg/chromium/net/NetworkChangeNotifier',
190 ] 189 ]
191 if param == 'byte[][]': 190 if param == 'byte[][]':
192 return '[[B' 191 return '[[B'
193 prefix = '' 192 prefix = ''
194 # Array? 193 # Array?
195 if param[-2:] == '[]': 194 if param[-2:] == '[]':
196 prefix = '[' 195 prefix = '['
197 param = param[:-2] 196 param = param[:-2]
198 # Generic? 197 # Generic?
199 if '<' in param: 198 if '<' in param:
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 CheckFilenames(input_files, output_files) 981 CheckFilenames(input_files, output_files)
983 if options.jar_file: 982 if options.jar_file:
984 # CheckFileNames guarantees same length for inputs and outputs 983 # CheckFileNames guarantees same length for inputs and outputs
985 out_dirs = map(os.path.dirname, output_files) 984 out_dirs = map(os.path.dirname, output_files)
986 input_files = ExtractInputFiles(options.jar_file, input_files, out_dirs) 985 input_files = ExtractInputFiles(options.jar_file, input_files, out_dirs)
987 GenerateJNIHeaders(input_files, output_files, options.namespace) 986 GenerateJNIHeaders(input_files, output_files, options.namespace)
988 987
989 988
990 if __name__ == '__main__': 989 if __name__ == '__main__':
991 sys.exit(main(sys.argv)) 990 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | net/android/java/org/chromium/net/ProxyChangeListener.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698