| Index: chrome/android/java/src/org/chromium/chrome/browser/util/ChromeContextUtil.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/util/ChromeContextUtil.java b/chrome/android/java/src/org/chromium/chrome/browser/util/ChromeContextUtil.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..675e99511216d67c83d8a077728c7f914d38d0da
|
| --- /dev/null
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/util/ChromeContextUtil.java
|
| @@ -0,0 +1,20 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +package org.chromium.chrome.browser.util;
|
| +
|
| +import org.chromium.base.ContextUtils;
|
| +import org.chromium.base.annotations.CalledByNative;
|
| +
|
| +final class ChromeContextUtil {
|
| + private ChromeContextUtil() {}
|
| +
|
| + @CalledByNative
|
| + private static int getSmallestDIPWidth() {
|
| + return ContextUtils.getApplicationContext()
|
| + .getResources()
|
| + .getConfiguration()
|
| + .smallestScreenWidthDp;
|
| + }
|
| +}
|
|
|