OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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.testshell; | 5 package org.chromium.chrome.testshell; |
6 | 6 |
7 import android.content.Context; | 7 import android.content.Context; |
8 import android.util.AttributeSet; | 8 import android.util.AttributeSet; |
9 import android.view.View; | 9 import android.view.View; |
10 import android.view.ViewGroup; | 10 import android.view.ViewGroup; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 mContentViewHolder.removeView(mCurrentTab.getContentView()); | 111 mContentViewHolder.removeView(mCurrentTab.getContentView()); |
112 mCurrentTab.destroy(); | 112 mCurrentTab.destroy(); |
113 } | 113 } |
114 | 114 |
115 mCurrentTab = tab; | 115 mCurrentTab = tab; |
116 | 116 |
117 mToolbar.showTab(mCurrentTab); | 117 mToolbar.showTab(mCurrentTab); |
118 mContentViewHolder.addView(mCurrentTab.getContentView()); | 118 mContentViewHolder.addView(mCurrentTab.getContentView()); |
119 mContentViewRenderView.setCurrentContentView(mCurrentTab.getContentView(
)); | 119 mContentViewRenderView.setCurrentContentView(mCurrentTab.getContentView(
)); |
120 mCurrentTab.getContentView().requestFocus(); | 120 mCurrentTab.getContentView().requestFocus(); |
| 121 mCurrentTab.getContentView().onShow(); |
121 } | 122 } |
122 } | 123 } |
OLD | NEW |