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

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

Issue 150153004: [WIP] Add Chromium-side support for the Screen Orientation API (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 10 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/accessibility/browser_accessibility_android.h" 9 #include "content/browser/accessibility/browser_accessibility_android.h"
10 #include "content/browser/accessibility/browser_accessibility_manager_android.h" 10 #include "content/browser/accessibility/browser_accessibility_manager_android.h"
(...skipping 14 matching lines...) Expand all
25 #include "content/browser/device_orientation/data_fetcher_impl_android.h" 25 #include "content/browser/device_orientation/data_fetcher_impl_android.h"
26 #include "content/browser/frame_host/navigation_controller_android.h" 26 #include "content/browser/frame_host/navigation_controller_android.h"
27 #include "content/browser/geolocation/location_api_adapter_android.h" 27 #include "content/browser/geolocation/location_api_adapter_android.h"
28 #include "content/browser/media/android/media_drm_credential_manager.h" 28 #include "content/browser/media/android/media_drm_credential_manager.h"
29 #include "content/browser/media/android/media_resource_getter_impl.h" 29 #include "content/browser/media/android/media_resource_getter_impl.h"
30 #include "content/browser/power_save_blocker_android.h" 30 #include "content/browser/power_save_blocker_android.h"
31 #include "content/browser/renderer_host/ime_adapter_android.h" 31 #include "content/browser/renderer_host/ime_adapter_android.h"
32 #include "content/browser/renderer_host/input/motion_event_android.h" 32 #include "content/browser/renderer_host/input/motion_event_android.h"
33 #include "content/browser/renderer_host/input/synthetic_gesture_target_android.h " 33 #include "content/browser/renderer_host/input/synthetic_gesture_target_android.h "
34 #include "content/browser/renderer_host/java/java_bound_object.h" 34 #include "content/browser/renderer_host/java/java_bound_object.h"
35 #include "content/browser/screen_orientation/screen_orientation_provider_android .h"
35 #include "content/browser/speech/speech_recognizer_impl_android.h" 36 #include "content/browser/speech/speech_recognizer_impl_android.h"
36 #include "content/browser/vibration/vibration_provider_android.h" 37 #include "content/browser/vibration/vibration_provider_android.h"
37 #include "content/browser/web_contents/web_contents_android.h" 38 #include "content/browser/web_contents/web_contents_android.h"
38 39
39 using content::SurfaceTexturePeerBrowserImpl; 40 using content::SurfaceTexturePeerBrowserImpl;
40 41
41 namespace { 42 namespace {
42 base::android::RegistrationMethod kContentRegisteredMethods[] = { 43 base::android::RegistrationMethod kContentRegisteredMethods[] = {
43 {"AndroidLocationApiAdapter", 44 {"AndroidLocationApiAdapter",
44 content::AndroidLocationApiAdapter::RegisterGeolocationService}, 45 content::AndroidLocationApiAdapter::RegisterGeolocationService},
(...skipping 22 matching lines...) Expand all
67 content::MotionEventAndroid::RegisterMotionEventAndroid}, 68 content::MotionEventAndroid::RegisterMotionEventAndroid},
68 {"NavigationControllerAndroid", 69 {"NavigationControllerAndroid",
69 content::NavigationControllerAndroid::Register}, 70 content::NavigationControllerAndroid::Register},
70 {"PowerSaveBlock", content::RegisterPowerSaveBlocker}, 71 {"PowerSaveBlock", content::RegisterPowerSaveBlocker},
71 {"RegisterImeAdapter", content::RegisterImeAdapter}, 72 {"RegisterImeAdapter", content::RegisterImeAdapter},
72 {"SpeechRecognizerImplAndroid", 73 {"SpeechRecognizerImplAndroid",
73 content::SpeechRecognizerImplAndroid::RegisterSpeechRecognizer}, 74 content::SpeechRecognizerImplAndroid::RegisterSpeechRecognizer},
74 {"TouchEventSynthesizer", 75 {"TouchEventSynthesizer",
75 content::SyntheticGestureTargetAndroid::RegisterTouchEventSynthesizer}, 76 content::SyntheticGestureTargetAndroid::RegisterTouchEventSynthesizer},
76 {"TracingControllerAndroid", content::RegisterTracingControllerAndroid}, 77 {"TracingControllerAndroid", content::RegisterTracingControllerAndroid},
78 {"ScreenOrientaionProvider",
kenneth.r.christiansen 2014/02/06 15:03:12 Spelling error
ostap 2014/02/06 21:23:28 Done.
79 content::ScreenOrientationProviderAndroid::Register},
77 {"VibrationProvider", content::VibrationProviderAndroid::Register}, 80 {"VibrationProvider", content::VibrationProviderAndroid::Register},
78 {"WebContentsAndroid", content::WebContentsAndroid::Register}, 81 {"WebContentsAndroid", content::WebContentsAndroid::Register},
79 {"WebContentsObserverAndroid", content::RegisterWebContentsObserverAndroid}, 82 {"WebContentsObserverAndroid", content::RegisterWebContentsObserverAndroid},
80 {"WebViewStatics", content::RegisterWebViewStatics}, }; 83 {"WebViewStatics", content::RegisterWebViewStatics}, };
81 84
82 } // namespace 85 } // namespace
83 86
84 namespace content { 87 namespace content {
85 namespace android { 88 namespace android {
86 89
87 bool RegisterBrowserJni(JNIEnv* env) { 90 bool RegisterBrowserJni(JNIEnv* env) {
88 return RegisterNativeMethods(env, kContentRegisteredMethods, 91 return RegisterNativeMethods(env, kContentRegisteredMethods,
89 arraysize(kContentRegisteredMethods)); 92 arraysize(kContentRegisteredMethods));
90 } 93 }
91 94
92 } // namespace android 95 } // namespace android
93 } // namespace content 96 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698