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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java

Issue 219963002: Update SharedDeviveDisplay from ScreenOrientationListener. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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 | ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java b/content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java
index a14d76bef1644f316f55bb5aa8ff081f349a4dc9..7e809c0e27578f5fdbf9ebe9cdd67fe464869d66 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java
@@ -19,6 +19,7 @@ import com.google.common.annotations.VisibleForTesting;
import org.chromium.base.ObserverList;
import org.chromium.base.ThreadUtils;
+import org.chromium.ui.gfx.DeviceDisplayInfo;
/**
* ScreenOrientationListener is a class that informs its observers when the
@@ -251,6 +252,8 @@ public class ScreenOrientationListener {
int previousOrientation = mOrientation;
updateOrientation();
+ DeviceDisplayInfo.create(mAppContext).updateNativeSharedDisplayInfo();
+
if (mOrientation == previousOrientation) {
return;
}
« no previous file with comments | « no previous file | ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698