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

Side by Side Diff: chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellTabModelSelector.java

Issue 689583002: Tab manager view should hide on press of back key (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed null check as no crash is observed. Created 6 years, 1 month 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 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.shell; 5 package org.chromium.chrome.shell;
6 6
7 import android.view.LayoutInflater; 7 import android.view.LayoutInflater;
8 import android.view.ViewGroup; 8 import android.view.ViewGroup;
9 import android.view.ViewParent; 9 import android.view.ViewParent;
10 10
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 mParent.getContext()).inflate(R.layout.accessibility_tab_swi tcher, null); 130 mParent.getContext()).inflate(R.layout.accessibility_tab_swi tcher, null);
131 mTabModelWrapper.setup(null); 131 mTabModelWrapper.setup(null);
132 mTabModelWrapper.setTabModelSelector(this); 132 mTabModelWrapper.setTabModelSelector(this);
133 } 133 }
134 134
135 if (mTabModelWrapper.getParent() == null) { 135 if (mTabModelWrapper.getParent() == null) {
136 mParent.addView(mTabModelWrapper); 136 mParent.addView(mTabModelWrapper);
137 } 137 }
138 } 138 }
139 139
140 private boolean isTabSwitcherVisible() { 140 public boolean isTabSwitcherVisible() {
141 return mTabModelWrapper != null && mTabModelWrapper.getParent() == mPare nt; 141 return mTabModelWrapper != null && mTabModelWrapper.getParent() == mPare nt;
142 } 142 }
143 } 143 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698