Commit 159fbcca authored by Wei-Yin Chen (陳威尹)'s avatar Wei-Yin Chen (陳威尹) Committed by Commit Bot

Update comments in tab_list_ui/

Bug: None
Change-Id: I37c84f9367743b3d2f758eaf9bf0d1094b65aad6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1507201Reviewed-by: default avatarYusuf Ozuysal <yusufo@chromium.org>
Commit-Queue: Wei-Yin Chen (陳威尹) <wychen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#638635}
parent c1d23210
......@@ -18,6 +18,9 @@ import org.chromium.chrome.browser.util.ColorUtils;
import org.chromium.ui.modelutil.PropertyKey;
import org.chromium.ui.modelutil.PropertyModel;
/**
* ViewBinder for TabGridContainer.
*/
class TabGridContainerViewBinder {
/**
* Bind the given model to the given view, updating the payload in propertyKey.
......
......@@ -16,7 +16,7 @@ import org.chromium.base.ApiCompatibilityUtils;
import org.chromium.chrome.R;
/**
* {@link android.support.v7.widget.RecyclerView.ViewHolder} for tab grid. Owns the tab info card
* {@link RecyclerView.ViewHolder} for tab grid. Owns the tab info card
* and the associated view hierarchy.
*/
class TabGridViewHolder extends RecyclerView.ViewHolder {
......@@ -24,9 +24,9 @@ class TabGridViewHolder extends RecyclerView.ViewHolder {
public final TextView title;
public final ImageView thumbnail;
public final ImageView closeButton;
public int mTabId;
private int mTabId;
public TabGridViewHolder(View itemView) {
private TabGridViewHolder(View itemView) {
super(itemView);
this.thumbnail = itemView.findViewById(R.id.tab_thumbnail);
this.title = itemView.findViewById(R.id.tab_title);
......
......@@ -16,9 +16,9 @@ import org.chromium.chrome.browser.widget.bottomsheet.BottomSheetController;
import org.chromium.ui.modelutil.PropertyModel;
/**
* A coordinator for BottomTabStrip component. Manages the communication with
* {@link TabListCoordinator} & @{link BottomTabGridCoordinator} as well as the
* life-cycle of shared component objects.
* A coordinator for TabStripBottomToolbar component. Manages the communication with
* {@link TabListCoordinator}, {@link BottomTabGridCoordinator}, and
* {@link TabStripToolbarCoordinator}, as well as the life-cycle of shared component objects.
*/
public class TabStripBottomToolbarCoordinator
implements Destroyable, TabStripBottomToolbarMediator.ResetHandler {
......@@ -59,7 +59,7 @@ public class TabStripBottomToolbarCoordinator
/**
* Handles a reset event originated from {@link TabStripBottomToolbarMediator}
* when the bottom sheet is collaped.
* when the bottom sheet is collapsed.
*
* @param tabModel current {@link TabModel} instance.
*/
......@@ -70,7 +70,7 @@ public class TabStripBottomToolbarCoordinator
/**
* Handles a reset event originated from {@link TabStripBottomToolbarMediator}
* when the bottom sheet is expanded and the component.
* when the bottom sheet is expanded.
*
* @param tabModel current {@link TabModel} instance.
*/
......
......@@ -29,7 +29,7 @@ public class TabStripBottomToolbarMediator implements Destroyable {
interface ResetHandler {
/**
* Handles a reset event originated from {@link TabStripBottomToolbarMediator}
* when the bottom sheet is collaped.
* when the bottom sheet is collapsed.
*
* @param tabModel current {@link TabModel} instance.
*/
......@@ -37,7 +37,7 @@ public class TabStripBottomToolbarMediator implements Destroyable {
/**
* Handles a reset event originated from {@link TabStripBottomToolbarMediator}
* when the bottom sheet is expanded and the component.
* when the bottom sheet is expanded.
*
* @param tabModel current {@link TabModel} instance.
*/
......
......@@ -17,7 +17,7 @@ import org.chromium.ui.modelutil.PropertyKey;
import org.chromium.ui.modelutil.PropertyModel;
/**
* {@link org.chromium.ui.modelutil.SimpleRecyclerViewMcp.ViewBinder} for tab grid.
* {@link org.chromium.ui.modelutil.SimpleRecyclerViewMcp.ViewBinder} for tab strip.
* This class supports both full and partial updates to the {@link TabStripViewHolder}.
*/
class TabStripViewBinder {
......
......@@ -13,13 +13,13 @@ import android.widget.ImageButton;
import org.chromium.chrome.R;
/**
* {@link RecyclerView.ViewHolder} for tabstrip.
* {@link RecyclerView.ViewHolder} for tab strip.
*/
class TabStripViewHolder extends RecyclerView.ViewHolder {
public int mTabId;
private int mTabId;
public final ImageButton button;
public TabStripViewHolder(View itemView) {
private TabStripViewHolder(View itemView) {
super(itemView);
this.button = itemView.findViewById(R.id.tab_strip_item_button);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment