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

Unified Diff: ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java

Issue 579883002: Use Manifest's orientation when creating a shortcut and as default orientation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use_display_in_shortcuthelper
Patch Set: review comments Created 6 years, 3 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 | « content/public/android/java/src/org/chromium/content_public/common/ScreenOrientationConstants.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java
diff --git a/ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java b/ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java
index 81c49935a572a0b1afadda5f7d51737fe5949587..38569513d08dce233844643a069be3e3919372e6 100644
--- a/ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java
+++ b/ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java
@@ -161,7 +161,7 @@ public class DeviceDisplayInfo {
* for more information about Display.getRotation() behavior.
*/
@CalledByNative
- private int getRotationDegrees() {
+ public int getRotationDegrees() {
switch (getDisplay().getRotation()) {
case Surface.ROTATION_0:
return 0;
« no previous file with comments | « content/public/android/java/src/org/chromium/content_public/common/ScreenOrientationConstants.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698