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

Unified 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: Updated by review comments. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/browser_jni_registrar.cc
diff --git a/content/browser/android/browser_jni_registrar.cc b/content/browser/android/browser_jni_registrar.cc
index d7bad39171204244cb9ea76ce2546b7e5f188eb8..f15442c6d89ee27e7ea0f65745d0db4caba827ab 100644
--- a/content/browser/android/browser_jni_registrar.cc
+++ b/content/browser/android/browser_jni_registrar.cc
@@ -32,6 +32,7 @@
#include "content/browser/renderer_host/input/motion_event_android.h"
#include "content/browser/renderer_host/input/synthetic_gesture_target_android.h"
#include "content/browser/renderer_host/java/java_bound_object.h"
+#include "content/browser/screen_orientation/screen_orientation_provider_android.h"
#include "content/browser/speech/speech_recognizer_impl_android.h"
#include "content/browser/vibration/vibration_provider_android.h"
#include "content/browser/web_contents/web_contents_android.h"
@@ -74,6 +75,8 @@ base::android::RegistrationMethod kContentRegisteredMethods[] = {
{"TouchEventSynthesizer",
content::SyntheticGestureTargetAndroid::RegisterTouchEventSynthesizer},
{"TracingControllerAndroid", content::RegisterTracingControllerAndroid},
+ {"ScreenOrientationProvider",
+ content::ScreenOrientationProviderAndroid::Register},
{"VibrationProvider", content::VibrationProviderAndroid::Register},
{"WebContentsAndroid", content::WebContentsAndroid::Register},
{"WebContentsObserverAndroid", content::RegisterWebContentsObserverAndroid},
« no previous file with comments | « no previous file | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698