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

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

Issue 10073024: Add NetworkChangeNotifier for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase on base chagnes Created 8 years, 8 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 | « base/android/java/org/chromium/base/ActivityStatus.java ('k') | net/android/OWNERS » ('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/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
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
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))
OLDNEW
« no previous file with comments | « base/android/java/org/chromium/base/ActivityStatus.java ('k') | net/android/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698