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; ...@@ -18,6 +18,9 @@ import org.chromium.chrome.browser.util.ColorUtils;
import org.chromium.ui.modelutil.PropertyKey; import org.chromium.ui.modelutil.PropertyKey;
import org.chromium.ui.modelutil.PropertyModel; import org.chromium.ui.modelutil.PropertyModel;
/**
* ViewBinder for TabGridContainer.
*/
class TabGridContainerViewBinder { class TabGridContainerViewBinder {
/** /**
* Bind the given model to the given view, updating the payload in propertyKey. * Bind the given model to the given view, updating the payload in propertyKey.
......
...@@ -16,7 +16,7 @@ import org.chromium.base.ApiCompatibilityUtils; ...@@ -16,7 +16,7 @@ import org.chromium.base.ApiCompatibilityUtils;
import org.chromium.chrome.R; 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. * and the associated view hierarchy.
*/ */
class TabGridViewHolder extends RecyclerView.ViewHolder { class TabGridViewHolder extends RecyclerView.ViewHolder {
...@@ -24,9 +24,9 @@ class TabGridViewHolder extends RecyclerView.ViewHolder { ...@@ -24,9 +24,9 @@ class TabGridViewHolder extends RecyclerView.ViewHolder {
public final TextView title; public final TextView title;
public final ImageView thumbnail; public final ImageView thumbnail;
public final ImageView closeButton; public final ImageView closeButton;
public int mTabId; private int mTabId;
public TabGridViewHolder(View itemView) { private TabGridViewHolder(View itemView) {
super(itemView); super(itemView);
this.thumbnail = itemView.findViewById(R.id.tab_thumbnail); this.thumbnail = itemView.findViewById(R.id.tab_thumbnail);
this.title = itemView.findViewById(R.id.tab_title); this.title = itemView.findViewById(R.id.tab_title);
......
...@@ -16,9 +16,9 @@ import org.chromium.chrome.browser.widget.bottomsheet.BottomSheetController; ...@@ -16,9 +16,9 @@ import org.chromium.chrome.browser.widget.bottomsheet.BottomSheetController;
import org.chromium.ui.modelutil.PropertyModel; import org.chromium.ui.modelutil.PropertyModel;
/** /**
* A coordinator for BottomTabStrip component. Manages the communication with * A coordinator for TabStripBottomToolbar component. Manages the communication with
* {@link TabListCoordinator} & @{link BottomTabGridCoordinator} as well as the * {@link TabListCoordinator}, {@link BottomTabGridCoordinator}, and
* life-cycle of shared component objects. * {@link TabStripToolbarCoordinator}, as well as the life-cycle of shared component objects.
*/ */
public class TabStripBottomToolbarCoordinator public class TabStripBottomToolbarCoordinator
implements Destroyable, TabStripBottomToolbarMediator.ResetHandler { implements Destroyable, TabStripBottomToolbarMediator.ResetHandler {
...@@ -59,7 +59,7 @@ public class TabStripBottomToolbarCoordinator ...@@ -59,7 +59,7 @@ public class TabStripBottomToolbarCoordinator
/** /**
* Handles a reset event originated from {@link TabStripBottomToolbarMediator} * 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. * @param tabModel current {@link TabModel} instance.
*/ */
...@@ -70,7 +70,7 @@ public class TabStripBottomToolbarCoordinator ...@@ -70,7 +70,7 @@ public class TabStripBottomToolbarCoordinator
/** /**
* Handles a reset event originated from {@link TabStripBottomToolbarMediator} * 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. * @param tabModel current {@link TabModel} instance.
*/ */
......
...@@ -29,7 +29,7 @@ public class TabStripBottomToolbarMediator implements Destroyable { ...@@ -29,7 +29,7 @@ public class TabStripBottomToolbarMediator implements Destroyable {
interface ResetHandler { interface ResetHandler {
/** /**
* Handles a reset event originated from {@link TabStripBottomToolbarMediator} * 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. * @param tabModel current {@link TabModel} instance.
*/ */
...@@ -37,7 +37,7 @@ public class TabStripBottomToolbarMediator implements Destroyable { ...@@ -37,7 +37,7 @@ public class TabStripBottomToolbarMediator implements Destroyable {
/** /**
* Handles a reset event originated from {@link TabStripBottomToolbarMediator} * 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. * @param tabModel current {@link TabModel} instance.
*/ */
......
...@@ -17,7 +17,7 @@ import org.chromium.ui.modelutil.PropertyKey; ...@@ -17,7 +17,7 @@ import org.chromium.ui.modelutil.PropertyKey;
import org.chromium.ui.modelutil.PropertyModel; 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}. * This class supports both full and partial updates to the {@link TabStripViewHolder}.
*/ */
class TabStripViewBinder { class TabStripViewBinder {
......
...@@ -13,13 +13,13 @@ import android.widget.ImageButton; ...@@ -13,13 +13,13 @@ import android.widget.ImageButton;
import org.chromium.chrome.R; import org.chromium.chrome.R;
/** /**
* {@link RecyclerView.ViewHolder} for tabstrip. * {@link RecyclerView.ViewHolder} for tab strip.
*/ */
class TabStripViewHolder extends RecyclerView.ViewHolder { class TabStripViewHolder extends RecyclerView.ViewHolder {
public int mTabId; private int mTabId;
public final ImageButton button; public final ImageButton button;
public TabStripViewHolder(View itemView) { private TabStripViewHolder(View itemView) {
super(itemView); super(itemView);
this.button = itemView.findViewById(R.id.tab_strip_item_button); 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