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

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

Issue 185113002: Add UI hook for distilling web pages for test shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased after testshell->shell change Created 6 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 | Annotate | Revision Log
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/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "chrome/browser/android/banners/app_banner_manager.h" 10 #include "chrome/browser/android/banners/app_banner_manager.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 #include "chrome/browser/ui/android/infobars/infobar_android.h" 55 #include "chrome/browser/ui/android/infobars/infobar_android.h"
56 #include "chrome/browser/ui/android/infobars/infobar_container_android.h" 56 #include "chrome/browser/ui/android/infobars/infobar_container_android.h"
57 #include "chrome/browser/ui/android/infobars/save_password_infobar.h" 57 #include "chrome/browser/ui/android/infobars/save_password_infobar.h"
58 #include "chrome/browser/ui/android/infobars/translate_infobar.h" 58 #include "chrome/browser/ui/android/infobars/translate_infobar.h"
59 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h" 59 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h"
60 #include "chrome/browser/ui/android/navigation_popup.h" 60 #include "chrome/browser/ui/android/navigation_popup.h"
61 #include "chrome/browser/ui/android/ssl_client_certificate_request.h" 61 #include "chrome/browser/ui/android/ssl_client_certificate_request.h"
62 #include "chrome/browser/ui/android/toolbar/toolbar_model_android.h" 62 #include "chrome/browser/ui/android/toolbar/toolbar_model_android.h"
63 #include "chrome/browser/ui/android/website_settings_popup_android.h" 63 #include "chrome/browser/ui/android/website_settings_popup_android.h"
64 #include "components/autofill/core/browser/android/component_jni_registrar.h" 64 #include "components/autofill/core/browser/android/component_jni_registrar.h"
65 #include "components/dom_distiller/android/component_jni_registrar.h"
65 #include "components/navigation_interception/component_jni_registrar.h" 66 #include "components/navigation_interception/component_jni_registrar.h"
66 #include "components/web_contents_delegate_android/component_jni_registrar.h" 67 #include "components/web_contents_delegate_android/component_jni_registrar.h"
67 68
68 #if defined(ENABLE_PRINTING) && !defined(ENABLE_FULL_PRINTING) 69 #if defined(ENABLE_PRINTING) && !defined(ENABLE_FULL_PRINTING)
69 #include "printing/printing_context_android.h" 70 #include "printing/printing_context_android.h"
70 #endif 71 #endif
71 72
72 bool RegisterCertificateViewer(JNIEnv* env); 73 bool RegisterCertificateViewer(JNIEnv* env);
73 74
74 namespace chrome { 75 namespace chrome {
75 namespace android { 76 namespace android {
76 77
77 static base::android::RegistrationMethod kChromeRegisteredMethods[] = { 78 static base::android::RegistrationMethod kChromeRegisteredMethods[] = {
78 // Register JNI for components we depend on. 79 // Register JNI for components we depend on.
80 { "DomDistiller", dom_distiller::android::RegisterDomDistiller },
79 { "NavigationInterception", 81 { "NavigationInterception",
80 navigation_interception::RegisterNavigationInterceptionJni }, 82 navigation_interception::RegisterNavigationInterceptionJni },
81 { "WebContentsDelegateAndroid", 83 { "WebContentsDelegateAndroid",
82 web_contents_delegate_android::RegisterWebContentsDelegateAndroidJni }, 84 web_contents_delegate_android::RegisterWebContentsDelegateAndroidJni },
83 { "RegisterAuxiliaryProfileLoader", autofill::RegisterAutofillAndroidJni }, 85 { "RegisterAuxiliaryProfileLoader", autofill::RegisterAutofillAndroidJni },
84 // Register JNI for chrome classes. 86 // Register JNI for chrome classes.
85 { "AccountManagementScreenHelper", AccountManagementScreenHelper::Register }, 87 { "AccountManagementScreenHelper", AccountManagementScreenHelper::Register },
86 { "AndroidProfileOAuth2TokenService", 88 { "AndroidProfileOAuth2TokenService",
87 AndroidProfileOAuth2TokenService::Register }, 89 AndroidProfileOAuth2TokenService::Register },
88 { "AppBannerManager", RegisterAppBannerManager }, 90 { "AppBannerManager", RegisterAppBannerManager },
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 }; 165 };
164 166
165 bool RegisterJni(JNIEnv* env) { 167 bool RegisterJni(JNIEnv* env) {
166 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); 168 TRACE_EVENT0("startup", "chrome_android::RegisterJni");
167 return RegisterNativeMethods(env, kChromeRegisteredMethods, 169 return RegisterNativeMethods(env, kChromeRegisteredMethods,
168 arraysize(kChromeRegisteredMethods)); 170 arraysize(kChromeRegisteredMethods));
169 } 171 }
170 172
171 } // namespace android 173 } // namespace android
172 } // namespace chrome 174 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/android/testshell/java/src/org/chromium/chrome/shell/TestShellSwitches.java ('k') | chrome/chrome_android.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698