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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/UiConfig.java

Issue 2235463002: Change Snippet layout based on Category. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge in master. Created 4 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: chrome/android/java/src/org/chromium/chrome/browser/ntp/UiConfig.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/UiConfig.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/UiConfig.java
index 7b12a3b2baf8191b356c0961a4be1028efa42778..8d3aa5ad38536d36ca92326473cd9f03060ab376 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/UiConfig.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/UiConfig.java
@@ -84,6 +84,14 @@ public class UiConfig {
}
}
+ /**
+ * Returns the currently used display style.
+ */
+ @DisplayStyle
+ public int getCurrentDisplayStyle() {
+ return mCurrentDisplayStyle;
+ }
+
@DisplayStyle
private int computeDisplayStyleForCurrentConfig() {
int widthDp = mContext.getResources().getConfiguration().screenWidthDp;

Powered by Google App Engine
This is Rietveld 408576698