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

Side by Side Diff: chrome/browser/android/chrome_jni_registrar.cc

Issue 970243003: Refactoring chrome JNI registration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « chrome/browser/android/chrome_jni_registrar.h ('k') | chrome/chrome_android.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/android/chrome_jni_registrar.h" 5 #include "chrome/browser/android/chrome_jni_registrar.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_registrar.h" 8 #include "base/android/jni_registrar.h"
9 #include "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 #include "chrome/browser/android/accessibility/font_size_prefs_android.h" 10 #include "chrome/browser/android/accessibility/font_size_prefs_android.h"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 {"VoiceSearchTabHelper", RegisterVoiceSearchTabHelper}, 234 {"VoiceSearchTabHelper", RegisterVoiceSearchTabHelper},
235 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge}, 235 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge},
236 {"WebsiteSettingsPopupAndroid", 236 {"WebsiteSettingsPopupAndroid",
237 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid}, 237 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid},
238 #if defined(ENABLE_PRINTING) && !defined(ENABLE_PRINT_PREVIEW) 238 #if defined(ENABLE_PRINTING) && !defined(ENABLE_PRINT_PREVIEW)
239 {"PrintingContext", 239 {"PrintingContext",
240 printing::PrintingContextAndroid::RegisterPrintingContext}, 240 printing::PrintingContextAndroid::RegisterPrintingContext},
241 #endif 241 #endif
242 }; 242 };
243 243
244 bool RegisterJni(JNIEnv* env) { 244 bool RegisterBrowserJNI(JNIEnv* env) {
245 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); 245 TRACE_EVENT0("startup", "chrome_android::RegisterJni");
246 return RegisterNativeMethods(env, kChromeRegisteredMethods, 246 return RegisterNativeMethods(env, kChromeRegisteredMethods,
247 arraysize(kChromeRegisteredMethods)); 247 arraysize(kChromeRegisteredMethods));
248 } 248 }
249 249
250 } // namespace android 250 } // namespace android
251 } // namespace chrome 251 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/android/chrome_jni_registrar.h ('k') | chrome/chrome_android.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698