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

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

Issue 16781002: Vibration API: plumbing from Blink to Java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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
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/child_process_launcher_android.h" 10 #include "content/browser/android/child_process_launcher_android.h"
11 #include "content/browser/android/content_settings.h" 11 #include "content/browser/android/content_settings.h"
12 #include "content/browser/android/content_video_view.h" 12 #include "content/browser/android/content_video_view.h"
13 #include "content/browser/android/content_view_core_impl.h" 13 #include "content/browser/android/content_view_core_impl.h"
14 #include "content/browser/android/content_view_render_view.h" 14 #include "content/browser/android/content_view_render_view.h"
15 #include "content/browser/android/content_view_statics.h" 15 #include "content/browser/android/content_view_statics.h"
16 #include "content/browser/android/date_time_chooser_android.h" 16 #include "content/browser/android/date_time_chooser_android.h"
17 #include "content/browser/android/download_controller_android_impl.h" 17 #include "content/browser/android/download_controller_android_impl.h"
18 #include "content/browser/android/interstitial_page_delegate_android.h" 18 #include "content/browser/android/interstitial_page_delegate_android.h"
19 #include "content/browser/android/load_url_params.h" 19 #include "content/browser/android/load_url_params.h"
20 #include "content/browser/android/media_resource_getter_impl.h" 20 #include "content/browser/android/media_resource_getter_impl.h"
21 #include "content/browser/android/surface_texture_peer_browser_impl.h" 21 #include "content/browser/android/surface_texture_peer_browser_impl.h"
22 #include "content/browser/android/touch_point.h" 22 #include "content/browser/android/touch_point.h"
23 #include "content/browser/android/tracing_intent_handler.h" 23 #include "content/browser/android/tracing_intent_handler.h"
24 #include "content/browser/android/web_contents_observer_android.h" 24 #include "content/browser/android/web_contents_observer_android.h"
25 #include "content/browser/geolocation/location_api_adapter_android.h" 25 #include "content/browser/geolocation/location_api_adapter_android.h"
26 #include "content/browser/renderer_host/ime_adapter_android.h" 26 #include "content/browser/renderer_host/ime_adapter_android.h"
27 #include "content/browser/renderer_host/java/java_bound_object.h" 27 #include "content/browser/renderer_host/java/java_bound_object.h"
28 #include "content/browser/vibration/vibration_service_impl_android.h"
28 29
29 using content::SurfaceTexturePeerBrowserImpl; 30 using content::SurfaceTexturePeerBrowserImpl;
30 31
31 namespace { 32 namespace {
32 base::android::RegistrationMethod kContentRegisteredMethods[] = { 33 base::android::RegistrationMethod kContentRegisteredMethods[] = {
33 { "AndroidLocationApiAdapter", 34 { "AndroidLocationApiAdapter",
34 content::AndroidLocationApiAdapter::RegisterGeolocationService }, 35 content::AndroidLocationApiAdapter::RegisterGeolocationService },
35 { "AndroidBrowserProcess", content::RegisterAndroidBrowserProcess }, 36 { "AndroidBrowserProcess", content::RegisterAndroidBrowserProcess },
36 { "ChildProcessLauncher", content::RegisterChildProcessLauncher }, 37 { "ChildProcessLauncher", content::RegisterChildProcessLauncher },
37 { "ContentSettings", content::ContentSettings::RegisterContentSettings }, 38 { "ContentSettings", content::ContentSettings::RegisterContentSettings },
38 { "ContentViewRenderView", 39 { "ContentViewRenderView",
39 content::ContentViewRenderView::RegisterContentViewRenderView }, 40 content::ContentViewRenderView::RegisterContentViewRenderView },
40 { "ContentVideoView", content::ContentVideoView::RegisterContentVideoView }, 41 { "ContentVideoView", content::ContentVideoView::RegisterContentVideoView },
41 { "ContentViewCore", content::RegisterContentViewCore }, 42 { "ContentViewCore", content::RegisterContentViewCore },
42 { "DateTimePickerAndroid", content::RegisterDateTimeChooserAndroid}, 43 { "DateTimePickerAndroid", content::RegisterDateTimeChooserAndroid},
43 { "DownloadControllerAndroidImpl", 44 { "DownloadControllerAndroidImpl",
44 content::DownloadControllerAndroidImpl::RegisterDownloadController }, 45 content::DownloadControllerAndroidImpl::RegisterDownloadController },
45 { "InterstitialPageDelegateAndroid", 46 { "InterstitialPageDelegateAndroid",
46 content::InterstitialPageDelegateAndroid 47 content::InterstitialPageDelegateAndroid
47 ::RegisterInterstitialPageDelegateAndroid }, 48 ::RegisterInterstitialPageDelegateAndroid },
48 { "MediaResourceGetterImpl", 49 { "MediaResourceGetterImpl",
49 content::MediaResourceGetterImpl::RegisterMediaResourceGetter }, 50 content::MediaResourceGetterImpl::RegisterMediaResourceGetter },
50 { "LoadUrlParams", content::RegisterLoadUrlParams }, 51 { "LoadUrlParams", content::RegisterLoadUrlParams },
51 { "RegisterImeAdapter", content::RegisterImeAdapter }, 52 { "RegisterImeAdapter", content::RegisterImeAdapter },
52 { "TouchPoint", content::RegisterTouchPoint }, 53 { "TouchPoint", content::RegisterTouchPoint },
53 { "TracingIntentHandler", content::RegisterTracingIntentHandler }, 54 { "TracingIntentHandler", content::RegisterTracingIntentHandler },
55 { "VibrationService", content::RegisterVibrationService },
54 { "WebContentsObserverAndroid", content::RegisterWebContentsObserverAndroid }, 56 { "WebContentsObserverAndroid", content::RegisterWebContentsObserverAndroid },
55 { "WebViewStatics", content::RegisterWebViewStatics }, 57 { "WebViewStatics", content::RegisterWebViewStatics },
56 }; 58 };
57 59
58 } // namespace 60 } // namespace
59 61
60 namespace content { 62 namespace content {
61 namespace android { 63 namespace android {
62 64
63 bool RegisterBrowserJni(JNIEnv* env) { 65 bool RegisterBrowserJni(JNIEnv* env) {
64 return RegisterNativeMethods(env, kContentRegisteredMethods, 66 return RegisterNativeMethods(env, kContentRegisteredMethods,
65 arraysize(kContentRegisteredMethods)); 67 arraysize(kContentRegisteredMethods));
66 } 68 }
67 69
68 } // namespace android 70 } // namespace android
69 } // namespace content 71 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698