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

Unified Diff: chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java

Issue 189133005: Rename chromium_testshell target to chrome_shell_apk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java
diff --git a/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java b/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java
index 9f4adc3d02d188c9310c87385efb83aa650af676..3a2d2945b6ae8507f34b4bab003166be8e3fa64f 100644
--- a/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java
+++ b/chrome/android/shell/java/src/org/chromium/chrome/shell/TabManager.java
@@ -18,8 +18,8 @@ import org.chromium.ui.base.WindowAndroid;
/**
* The TabManager hooks together all of the related {@link View}s that are used to represent
- * a {@link TestShellTab}. It properly builds a {@link TestShellTab} and makes sure that the
- * {@link TestShellToolbar} and {@link ContentViewRenderView} show the proper content.
+ * a {@link ChromeShellTab}. It properly builds a {@link ChromeShellTab} and makes sure that the
+ * {@link ChromeShellToolbar} and {@link ContentViewRenderView} show the proper content.
*/
public class TabManager extends LinearLayout {
private static final String DEFAULT_URL = "http://www.google.com";
@@ -28,9 +28,9 @@ public class TabManager extends LinearLayout {
private ContentVideoViewClient mContentVideoViewClient;
private ViewGroup mContentViewHolder;
private ContentViewRenderView mContentViewRenderView;
- private TestShellToolbar mToolbar;
+ private ChromeShellToolbar mToolbar;
- private TestShellTab mCurrentTab;
+ private ChromeShellTab mCurrentTab;
private String mStartupUrl = DEFAULT_URL;
@@ -58,7 +58,7 @@ public class TabManager extends LinearLayout {
assert videoViewClient != null;
mContentVideoViewClient = videoViewClient;
mContentViewHolder = (ViewGroup) findViewById(R.id.content_container);
- mToolbar = (TestShellToolbar) findViewById(R.id.toolbar);
+ mToolbar = (ChromeShellToolbar) findViewById(R.id.toolbar);
mContentViewRenderView = new ContentViewRenderView(getContext(), mWindow) {
@Override
protected void onReadyToRender() {
@@ -79,15 +79,15 @@ public class TabManager extends LinearLayout {
}
/**
- * @return The currently visible {@link TestShellTab}.
+ * @return The currently visible {@link ChromeShellTab}.
*/
- public TestShellTab getCurrentTab() {
+ public ChromeShellTab getCurrentTab() {
return mCurrentTab;
}
/**
- * Creates a {@link TestShellTab} with a URL specified by {@code url}.
- * @param url The URL the new {@link TestShellTab} should start with.
+ * Creates a {@link ChromeShellTab} with a URL specified by {@code url}.
+ * @param url The URL the new {@link ChromeShellTab} should start with.
*/
public void createTab(String url) {
if (!isContentViewRenderViewInitialized()) return;
@@ -98,7 +98,7 @@ public class TabManager extends LinearLayout {
return mContentVideoViewClient;
}
};
- TestShellTab tab = new TestShellTab(getContext(), url, mWindow, client);
+ ChromeShellTab tab = new ChromeShellTab(getContext(), url, mWindow, client);
setCurrentTab(tab);
}
@@ -106,7 +106,7 @@ public class TabManager extends LinearLayout {
return mContentViewRenderView != null && mContentViewRenderView.isInitialized();
}
- private void setCurrentTab(TestShellTab tab) {
+ private void setCurrentTab(ChromeShellTab tab) {
if (mCurrentTab != null) {
mContentViewHolder.removeView(mCurrentTab.getContentView());
mCurrentTab.destroy();

Powered by Google App Engine
This is Rietveld 408576698