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

Unified Diff: content/browser/screen_orientation/screen_orientation_provider_android.cc

Issue 398013002: Poll for Display rotation on Android 4.0 and 4.1 when needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
Index: content/browser/screen_orientation/screen_orientation_provider_android.cc
diff --git a/content/browser/screen_orientation/screen_orientation_provider_android.cc b/content/browser/screen_orientation/screen_orientation_provider_android.cc
index b8723fe4234b2faf3f6889f692eb7258f4c9f415..f61756cff65f3059833df1628b7cdfdecbd866e5 100644
--- a/content/browser/screen_orientation/screen_orientation_provider_android.cc
+++ b/content/browser/screen_orientation/screen_orientation_provider_android.cc
@@ -205,6 +205,12 @@ ScreenOrientationProviderAndroid::GetNaturalLockType() const {
}
// static
+void ScreenOrientationProviderAndroid::ToggleAccurateMode() {
+ Java_ScreenOrientationProvider_toggleAccurateMode(
+ base::android::AttachCurrentThread());
+}
+
+// static
ScreenOrientationProvider* ScreenOrientationProvider::Create(
ScreenOrientationDispatcherHost* dispatcher,
WebContents* web_contents) {

Powered by Google App Engine
This is Rietveld 408576698