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

Side by Side Diff: content/browser/android/browser_jni_registrar.cc

Issue 10952029: Remove native side of content_view_client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 "content/browser/android/browser_jni_registrar.h" 5 #include "content/browser/android/browser_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 "content/browser/android/android_browser_process.h" 9 #include "content/browser/android/android_browser_process.h"
10 #include "content/browser/android/content_settings.h" 10 #include "content/browser/android/content_settings.h"
11 #include "content/browser/android/content_video_view.h" 11 #include "content/browser/android/content_video_view.h"
12 #include "content/browser/android/content_view_client.h"
13 #include "content/browser/android/content_view_core_impl.h" 12 #include "content/browser/android/content_view_core_impl.h"
14 #include "content/browser/android/content_view_statics.h" 13 #include "content/browser/android/content_view_statics.h"
15 #include "content/browser/android/download_controller.h" 14 #include "content/browser/android/download_controller.h"
16 #include "content/browser/android/load_url_params.h" 15 #include "content/browser/android/load_url_params.h"
17 #include "content/browser/android/sandboxed_process_launcher.h" 16 #include "content/browser/android/sandboxed_process_launcher.h"
18 #include "content/browser/android/touch_point.h" 17 #include "content/browser/android/touch_point.h"
19 #include "content/browser/android/web_contents_observer_android.h" 18 #include "content/browser/android/web_contents_observer_android.h"
20 #include "content/browser/geolocation/location_api_adapter_android.h" 19 #include "content/browser/geolocation/location_api_adapter_android.h"
21 #include "content/browser/renderer_host/ime_adapter_android.h" 20 #include "content/browser/renderer_host/ime_adapter_android.h"
22 #include "content/browser/renderer_host/java/java_bound_object.h" 21 #include "content/browser/renderer_host/java/java_bound_object.h"
23 22
24 namespace { 23 namespace {
25 base::android::RegistrationMethod kContentRegisteredMethods[] = { 24 base::android::RegistrationMethod kContentRegisteredMethods[] = {
26 { "AndroidLocationApiAdapter", 25 { "AndroidLocationApiAdapter",
27 AndroidLocationApiAdapter::RegisterGeolocationService }, 26 AndroidLocationApiAdapter::RegisterGeolocationService },
28 { "AndroidBrowserProcess", content::RegisterAndroidBrowserProcess }, 27 { "AndroidBrowserProcess", content::RegisterAndroidBrowserProcess },
29 { "ContentSettings", content::ContentSettings::RegisterContentSettings }, 28 { "ContentSettings", content::ContentSettings::RegisterContentSettings },
30 { "ContentVideoView", content::ContentVideoView::RegisterContentVideoView }, 29 { "ContentVideoView", content::ContentVideoView::RegisterContentVideoView },
31 { "ContentViewClient", content::RegisterContentViewClient },
32 { "ContentViewCore", content::RegisterContentViewCore }, 30 { "ContentViewCore", content::RegisterContentViewCore },
33 { "DownloadController", 31 { "DownloadController",
34 content::DownloadController::RegisterDownloadController }, 32 content::DownloadController::RegisterDownloadController },
35 { "RegisterImeAdapter", content::RegisterImeAdapter }, 33 { "RegisterImeAdapter", content::RegisterImeAdapter },
36 { "JavaBoundObject", JavaBoundObject::RegisterJavaBoundObject }, 34 { "JavaBoundObject", JavaBoundObject::RegisterJavaBoundObject },
37 { "LoadUrlParams", content::RegisterLoadUrlParams }, 35 { "LoadUrlParams", content::RegisterLoadUrlParams },
38 { "SandboxedProcessLauncher", content::RegisterSandboxedProcessLauncher }, 36 { "SandboxedProcessLauncher", content::RegisterSandboxedProcessLauncher },
39 { "TouchPoint", content::RegisterTouchPoint }, 37 { "TouchPoint", content::RegisterTouchPoint },
40 { "WebContentsObserverAndroid", content::RegisterWebContentsObserverAndroid }, 38 { "WebContentsObserverAndroid", content::RegisterWebContentsObserverAndroid },
41 { "WebViewStatics", content::RegisterWebViewStatics }, 39 { "WebViewStatics", content::RegisterWebViewStatics },
42 }; 40 };
43 41
44 } // namespace 42 } // namespace
45 43
46 namespace content { 44 namespace content {
47 namespace android { 45 namespace android {
48 46
49 bool RegisterBrowserJni(JNIEnv* env) { 47 bool RegisterBrowserJni(JNIEnv* env) {
50 return RegisterNativeMethods(env, kContentRegisteredMethods, 48 return RegisterNativeMethods(env, kContentRegisteredMethods,
51 arraysize(kContentRegisteredMethods)); 49 arraysize(kContentRegisteredMethods));
52 } 50 }
53 51
54 } // namespace android 52 } // namespace android
55 } // namespace content 53 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698