OLD | NEW |
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.tab; | 5 package org.chromium.chrome.browser.tab; |
6 | 6 |
7 import android.support.test.filters.SmallTest; | 7 import android.support.test.filters.SmallTest; |
8 import android.widget.Button; | 8 import android.widget.Button; |
9 | 9 |
10 import org.chromium.base.ThreadUtils; | 10 import org.chromium.base.ThreadUtils; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 }); | 115 }); |
116 } | 116 } |
117 | 117 |
118 /** | 118 /** |
119 * If there is a SadTabView, this method will get the button for the sad tab
. | 119 * If there is a SadTabView, this method will get the button for the sad tab
. |
120 * @param tab The tab that needs to contain a SadTabView. | 120 * @param tab The tab that needs to contain a SadTabView. |
121 * @return Returns the button that is on the SadTabView, null if SadTabView. | 121 * @return Returns the button that is on the SadTabView, null if SadTabView. |
122 * doesn't exist. | 122 * doesn't exist. |
123 */ | 123 */ |
124 private Button getSadTabButton(Tab tab) { | 124 private Button getSadTabButton(Tab tab) { |
125 return (Button) tab.getContentViewCore().getContainerView() | 125 return (Button) tab.getContentViewCore().getContainerView().findViewById
( |
126 .findViewById(R.id.sad_tab_reload_button); | 126 R.id.sad_tab_button); |
127 } | 127 } |
128 | 128 |
129 } | 129 } |
OLD | NEW |