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

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: call ScreenOrientationListener on UI thread Created 6 years, 4 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 36064a69371e5744fbff6f10f50392d20ba6686d..72940624841a48efb35075f7fe3d8031be3478cb 100644
--- a/content/browser/screen_orientation/screen_orientation_provider_android.cc
+++ b/content/browser/screen_orientation/screen_orientation_provider_android.cc
@@ -203,6 +203,18 @@ ScreenOrientationProviderAndroid::GetNaturalLockType() const {
}
// static
+void ScreenOrientationProviderAndroid::StartAccurateListening() {
+ Java_ScreenOrientationProvider_startAccurateListening(
+ base::android::AttachCurrentThread());
+}
+
+// static
+void ScreenOrientationProviderAndroid::StopAccurateListening() {
+ Java_ScreenOrientationProvider_stopAccurateListening(
+ base::android::AttachCurrentThread());
+}
+
+// static
ScreenOrientationProvider* ScreenOrientationProvider::Create(
ScreenOrientationDispatcherHost* dispatcher,
WebContents* web_contents) {
« no previous file with comments | « content/browser/screen_orientation/screen_orientation_provider_android.h ('k') | content/common/screen_orientation_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698