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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 * @return Whether or not chrome should attach the toolbar to the bottom of
the screen. | 258 * @return Whether or not chrome should attach the toolbar to the bottom of
the screen. |
259 */ | 259 */ |
260 public static boolean isChromeHomeEnabled() { | 260 public static boolean isChromeHomeEnabled() { |
261 if (sChromeHomeEnabled == null) { | 261 if (sChromeHomeEnabled == null) { |
262 sChromeHomeEnabled = ChromePreferenceManager.getInstance().isChromeH
omeEnabled(); | 262 sChromeHomeEnabled = ChromePreferenceManager.getInstance().isChromeH
omeEnabled(); |
263 } | 263 } |
264 | 264 |
265 return sChromeHomeEnabled; | 265 return sChromeHomeEnabled; |
266 } | 266 } |
267 | 267 |
| 268 /** |
| 269 * @return Whether or not the expand button for Chrome Home is enabled. |
| 270 */ |
| 271 public static boolean isChromeHomeExpandButtonEnabled() { |
| 272 return ChromeFeatureList.isEnabled(ChromeFeatureList.CHROME_HOME_EXPAND_
BUTTON); |
| 273 } |
| 274 |
268 private static native void nativeSetCustomTabVisible(boolean visible); | 275 private static native void nativeSetCustomTabVisible(boolean visible); |
269 private static native void nativeSetIsInMultiWindowMode(boolean isInMultiWin
dowMode); | 276 private static native void nativeSetIsInMultiWindowMode(boolean isInMultiWin
dowMode); |
270 } | 277 } |
OLD | NEW |