| 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.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 Loading... |
| 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 } |
| OLD | NEW |