| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chrome.browser.util; | 5 package org.chromium.chrome.browser.util; |
| 6 | 6 |
| 7 import android.annotation.SuppressLint; | 7 import android.annotation.SuppressLint; |
| 8 import android.annotation.TargetApi; | 8 import android.annotation.TargetApi; |
| 9 import android.content.Context; | 9 import android.content.Context; |
| 10 import android.content.Intent; | 10 import android.content.Intent; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 import org.chromium.base.FieldTrialList; | 22 import org.chromium.base.FieldTrialList; |
| 23 import org.chromium.base.Log; | 23 import org.chromium.base.Log; |
| 24 import org.chromium.base.ThreadUtils; | 24 import org.chromium.base.ThreadUtils; |
| 25 import org.chromium.base.VisibleForTesting; | 25 import org.chromium.base.VisibleForTesting; |
| 26 import org.chromium.chrome.browser.ChromeApplication; | 26 import org.chromium.chrome.browser.ChromeApplication; |
| 27 import org.chromium.chrome.browser.ChromeSwitches; | 27 import org.chromium.chrome.browser.ChromeSwitches; |
| 28 import org.chromium.chrome.browser.ChromeVersionInfo; | 28 import org.chromium.chrome.browser.ChromeVersionInfo; |
| 29 import org.chromium.chrome.browser.InstantAppsHandler; | 29 import org.chromium.chrome.browser.InstantAppsHandler; |
| 30 import org.chromium.chrome.browser.preferences.ChromePreferenceManager; | 30 import org.chromium.chrome.browser.preferences.ChromePreferenceManager; |
| 31 import org.chromium.chrome.browser.tabmodel.DocumentModeAssassin; | 31 import org.chromium.chrome.browser.tabmodel.DocumentModeAssassin; |
| 32 import org.chromium.sync.signin.AccountManagerHelper; | 32 import org.chromium.components.sync.signin.AccountManagerHelper; |
| 33 import org.chromium.ui.base.DeviceFormFactor; | 33 import org.chromium.ui.base.DeviceFormFactor; |
| 34 | 34 |
| 35 import java.util.List; | 35 import java.util.List; |
| 36 | 36 |
| 37 /** | 37 /** |
| 38 * A utility {@code class} meant to help determine whether or not certain featur
es are supported by | 38 * A utility {@code class} meant to help determine whether or not certain featur
es are supported by |
| 39 * this device. | 39 * this device. |
| 40 */ | 40 */ |
| 41 public class FeatureUtilities { | 41 public class FeatureUtilities { |
| 42 private static final String TAG = "FeatureUtilities"; | 42 private static final String TAG = "FeatureUtilities"; |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 */ | 265 */ |
| 266 public static boolean isTabModelMergingEnabled() { | 266 public static boolean isTabModelMergingEnabled() { |
| 267 return Build.VERSION.SDK_INT > Build.VERSION_CODES.M | 267 return Build.VERSION.SDK_INT > Build.VERSION_CODES.M |
| 268 && CommandLine.getInstance().hasSwitch(MERGE_TABS_FLAG); | 268 && CommandLine.getInstance().hasSwitch(MERGE_TABS_FLAG); |
| 269 } | 269 } |
| 270 | 270 |
| 271 private static native void nativeSetDocumentModeEnabled(boolean enabled); | 271 private static native void nativeSetDocumentModeEnabled(boolean enabled); |
| 272 private static native void nativeSetCustomTabVisible(boolean visible); | 272 private static native void nativeSetCustomTabVisible(boolean visible); |
| 273 private static native void nativeSetIsInMultiWindowMode(boolean isInMultiWin
dowMode); | 273 private static native void nativeSetIsInMultiWindowMode(boolean isInMultiWin
dowMode); |
| 274 } | 274 } |
| OLD | NEW |