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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java

Issue 2744763005: 🏠 Add pull-handle to bottom toolbar (Closed)
Patch Set: findbugs nit picking Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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; 5 package org.chromium.chrome.browser;
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.app.Activity; 9 import android.app.Activity;
10 import android.app.SearchManager; 10 import android.app.SearchManager;
(...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 TabOpenType tabOpenType, String externalAppId, int tabIdToBr ingToFront, 1334 TabOpenType tabOpenType, String externalAppId, int tabIdToBr ingToFront,
1335 boolean hasUserGesture, Intent intent) { 1335 boolean hasUserGesture, Intent intent) {
1336 } 1336 }
1337 }; 1337 };
1338 } 1338 }
1339 1339
1340 /** 1340 /**
1341 * @return The resource id that contains how large the browser controls are. 1341 * @return The resource id that contains how large the browser controls are.
1342 */ 1342 */
1343 public int getControlContainerHeightResource() { 1343 public int getControlContainerHeightResource() {
1344 if (mBottomSheet != null) return R.dimen.bottom_control_container_height ;
1344 return R.dimen.control_container_height; 1345 return R.dimen.control_container_height;
1345 } 1346 }
1346 1347
1347 @Override 1348 @Override
1348 public final void onAccessibilityStateChanged(boolean enabled) { 1349 public final void onAccessibilityStateChanged(boolean enabled) {
1349 checkAccessibility(); 1350 checkAccessibility();
1350 } 1351 }
1351 1352
1352 private void checkAccessibility() { 1353 private void checkAccessibility() {
1353 onAccessibilityModeChanged(DeviceClassManager.isAccessibilityModeEnabled (this)); 1354 onAccessibilityModeChanged(DeviceClassManager.isAccessibilityModeEnabled (this));
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
2105 * draw over VR contents should be hidden in this call. 2106 * draw over VR contents should be hidden in this call.
2106 */ 2107 */
2107 public void onEnterVR() {} 2108 public void onEnterVR() {}
2108 2109
2109 /** 2110 /**
2110 * Called when VR mode using this activity is exited. Any state set for VR s hould be restored 2111 * Called when VR mode using this activity is exited. Any state set for VR s hould be restored
2111 * in this call, including showing 2D UI that was hidden. 2112 * in this call, including showing 2D UI that was hidden.
2112 */ 2113 */
2113 public void onExitVR() {} 2114 public void onExitVR() {}
2114 } 2115 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698