OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package org.chromium.chrome.browser.util; |
| 6 |
| 7 import org.chromium.base.ContextUtils; |
| 8 import org.chromium.base.annotations.CalledByNative; |
| 9 |
| 10 final class ChromeContextUtil { |
| 11 private ChromeContextUtil() {} |
| 12 |
| 13 @CalledByNative |
| 14 private static int getSmallestDIPWidth() { |
| 15 return ContextUtils.getApplicationContext() |
| 16 .getResources() |
| 17 .getConfiguration() |
| 18 .smallestScreenWidthDp; |
| 19 } |
| 20 } |
OLD | NEW |