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

Unified Diff: services/device/screen_orientation/screen_orientation_listener_android.cc

Issue 2890423003: [Media controls] Integrate rotate-to-fullscreen with orientation lock (Closed)
Patch Set: #undef atan2,fmod Created 3 years, 7 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: services/device/screen_orientation/screen_orientation_listener_android.cc
diff --git a/services/device/screen_orientation/screen_orientation_listener_android.cc b/services/device/screen_orientation/screen_orientation_listener_android.cc
index 0c863d8b699f0e0646ba57f02e85e916fc5774f3..776a0652f7dd11122bd9a15df42f162c1602009d 100644
--- a/services/device/screen_orientation/screen_orientation_listener_android.cc
+++ b/services/device/screen_orientation/screen_orientation_listener_android.cc
@@ -55,4 +55,11 @@ void ScreenOrientationListenerAndroid::Stop() {
}
}
+void ScreenOrientationListenerAndroid::IsAutoRotateEnabledByUser(
+ IsAutoRotateEnabledByUserCallback callback) {
+ std::move(callback).Run(
+ Java_ScreenOrientationListener_isAutoRotateEnabledByUser(
+ base::android::AttachCurrentThread()));
+}
+
} // namespace device

Powered by Google App Engine
This is Rietveld 408576698