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

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

Issue 2652883002: Omnibox results show correctly for Chrome Home (Closed)
Patch Set: address comments Created 3 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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.toolbar; 5 package org.chromium.chrome.browser.toolbar;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.util.AttributeSet; 8 import android.util.AttributeSet;
9 9
10 import org.chromium.chrome.R; 10 import org.chromium.chrome.R;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 if (mBottomSheet == null) return; 44 if (mBottomSheet == null) return;
45 45
46 if (hasFocus) mStateBeforeUrlFocus = mBottomSheet.getSheetState(); 46 if (hasFocus) mStateBeforeUrlFocus = mBottomSheet.getSheetState();
47 mBottomSheet.setSheetState( 47 mBottomSheet.setSheetState(
48 hasFocus ? BottomSheet.SHEET_STATE_FULL : mStateBeforeUrlFocus, true); 48 hasFocus ? BottomSheet.SHEET_STATE_FULL : mStateBeforeUrlFocus, true);
49 } 49 }
50 50
51 @Override 51 @Override
52 public void setBottomSheet(BottomSheet sheet) { 52 public void setBottomSheet(BottomSheet sheet) {
53 mBottomSheet = sheet; 53 mBottomSheet = sheet;
54 getLocationBar().setBottomSheet(mBottomSheet);
54 } 55 }
55 } 56 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698