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

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

Issue 11186010: Update geolocation infobar to handle Android system settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updates Created 8 years, 2 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 'Landroid/webkit/ValueCallback', 149 'Landroid/webkit/ValueCallback',
150 'Ljava/io/InputStream', 150 'Ljava/io/InputStream',
151 'Ljava/nio/ByteBuffer', 151 'Ljava/nio/ByteBuffer',
152 'Ljava/util/Vector', 152 'Ljava/util/Vector',
153 ] 153 ]
154 app_param_list = [ 154 app_param_list = [
155 'Landroid/graphics/SurfaceTexture', 155 'Landroid/graphics/SurfaceTexture',
156 'Lcom/google/android/apps/chrome/AutofillData', 156 'Lcom/google/android/apps/chrome/AutofillData',
157 'Lcom/google/android/apps/chrome/ChromeContextMenuInfo', 157 'Lcom/google/android/apps/chrome/ChromeContextMenuInfo',
158 'Lcom/google/android/apps/chrome/ChromeWindow', 158 'Lcom/google/android/apps/chrome/ChromeWindow',
159 'Lcom/google/android/apps/chrome/GoogleLocationSettingsHelperImpl',
159 'Lcom/google/android/apps/chrome/OmniboxSuggestion', 160 'Lcom/google/android/apps/chrome/OmniboxSuggestion',
160 'Lcom/google/android/apps/chrome/PageInfoViewer', 161 'Lcom/google/android/apps/chrome/PageInfoViewer',
161 'Lcom/google/android/apps/chrome/Tab', 162 'Lcom/google/android/apps/chrome/Tab',
162 'Lcom/google/android/apps/chrome/infobar/InfoBarContainer', 163 'Lcom/google/android/apps/chrome/infobar/InfoBarContainer',
163 'Lcom/google/android/apps/chrome/infobar/InfoBarContainer$NativeInfoBar', 164 'Lcom/google/android/apps/chrome/infobar/InfoBarContainer$NativeInfoBar',
164 ('Lcom/google/android/apps/chrome/preferences/ChromeNativePreferences$' 165 ('Lcom/google/android/apps/chrome/preferences/ChromeNativePreferences$'
165 'PasswordListObserver'), 166 'PasswordListObserver'),
166 'Lorg/chromium/android_webview/AwContents', 167 'Lorg/chromium/android_webview/AwContents',
167 'Lorg/chromium/android_webview/AwContentsClient', 168 'Lorg/chromium/android_webview/AwContentsClient',
168 'Lorg/chromium/android_webview/AwHttpAuthHandler', 169 'Lorg/chromium/android_webview/AwHttpAuthHandler',
169 'Lorg/chromium/android_webview/AwContentsIoThreadClient', 170 'Lorg/chromium/android_webview/AwContentsIoThreadClient',
170 'Lorg/chromium/android_webview/AwWebContentsDelegate', 171 'Lorg/chromium/android_webview/AwWebContentsDelegate',
171 'Lorg/chromium/android_webview/InterceptedRequestData', 172 'Lorg/chromium/android_webview/InterceptedRequestData',
172 'Lorg/chromium/android_webview/JsPromptResultReceiver', 173 'Lorg/chromium/android_webview/JsPromptResultReceiver',
173 'Lorg/chromium/android_webview/JsResultHandler', 174 'Lorg/chromium/android_webview/JsResultHandler',
174 'Lorg/chromium/android_webview/JsResultReceiver', 175 'Lorg/chromium/android_webview/JsResultReceiver',
175 'Lorg/chromium/base/SystemMessageHandler', 176 'Lorg/chromium/base/SystemMessageHandler',
176 'Lorg/chromium/chrome/browser/ChromeBrowserProvider$BookmarkNode', 177 'Lorg/chromium/chrome/browser/ChromeBrowserProvider$BookmarkNode',
177 'Lorg/chromium/chrome/browser/ChromeHttpAuthHandler', 178 'Lorg/chromium/chrome/browser/ChromeHttpAuthHandler',
178 'Lorg/chromium/chrome/browser/ChromeWebContentsDelegateAndroid', 179 'Lorg/chromium/chrome/browser/ChromeWebContentsDelegateAndroid',
179 'Lorg/chromium/chrome/browser/FindMatchRectsDetails', 180 'Lorg/chromium/chrome/browser/FindMatchRectsDetails',
180 'Lorg/chromium/chrome/browser/FindNotificationDetails', 181 'Lorg/chromium/chrome/browser/FindNotificationDetails',
182 'Lorg/chromium/chrome/browser/GoogleLocationSettingsHelper',
183 'Lorg/chromium/chrome/browser/GoogleLocationSettingsHelperImpl',
181 'Lorg/chromium/chrome/browser/JavascriptAppModalDialog', 184 'Lorg/chromium/chrome/browser/JavascriptAppModalDialog',
182 'Lorg/chromium/chrome/browser/ProcessUtils', 185 'Lorg/chromium/chrome/browser/ProcessUtils',
183 ('Lorg/chromium/chrome/browser/component/navigation_interception/' 186 ('Lorg/chromium/chrome/browser/component/navigation_interception/'
184 'InterceptNavigationDelegate'), 187 'InterceptNavigationDelegate'),
185 ('Lorg/chromium/chrome/browser/component/web_contents_delegate_android/' 188 ('Lorg/chromium/chrome/browser/component/web_contents_delegate_android/'
186 'WebContentsDelegateAndroid'), 189 'WebContentsDelegateAndroid'),
187 'Lorg/chromium/chrome/browser/database/SQLiteCursor', 190 'Lorg/chromium/chrome/browser/database/SQLiteCursor',
188 'Lorg/chromium/content/app/SandboxedProcessService', 191 'Lorg/chromium/content/app/SandboxedProcessService',
189 'Lorg/chromium/content/browser/ContentVideoView', 192 'Lorg/chromium/content/browser/ContentVideoView',
190 'Lorg/chromium/content/browser/ContentViewCore', 193 'Lorg/chromium/content/browser/ContentViewCore',
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 input_file = options.input_file 1039 input_file = options.input_file
1037 output_file = None 1040 output_file = None
1038 if options.output_dir: 1041 if options.output_dir:
1039 root_name = os.path.splitext(os.path.basename(input_file))[0] 1042 root_name = os.path.splitext(os.path.basename(input_file))[0]
1040 output_file = os.path.join(options.output_dir, root_name) + '_jni.h' 1043 output_file = os.path.join(options.output_dir, root_name) + '_jni.h'
1041 GenerateJNIHeader(input_file, output_file, options.namespace) 1044 GenerateJNIHeader(input_file, output_file, options.namespace)
1042 1045
1043 1046
1044 if __name__ == '__main__': 1047 if __name__ == '__main__':
1045 sys.exit(main(sys.argv)) 1048 sys.exit(main(sys.argv))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698