Bug 1140210 - Add class comment to MenuItemSwitcherLayout. r=liuche
authorMichael Comella <michael.l.comella@gmail.com>
Thu, 15 Oct 2015 14:48:37 -0700
changeset 269493 8345f21f651819dddce7412e4f5a7046ed4f0d69
parent 269492 5b439b4654e00b882c8cfde06b41872b3515161b
child 269494 156585c07b3da57636bb01213ecfad506060553c
push id15891
push usermichael.l.comella@gmail.com
push dateMon, 26 Oct 2015 21:14:56 +0000
treeherderfx-team@623b15184f2a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersliuche
bugs1140210
milestone44.0a1
Bug 1140210 - Add class comment to MenuItemSwitcherLayout. r=liuche
mobile/android/base/menu/MenuItemSwitcherLayout.java
--- a/mobile/android/base/menu/MenuItemSwitcherLayout.java
+++ b/mobile/android/base/menu/MenuItemSwitcherLayout.java
@@ -15,16 +15,23 @@ import android.annotation.TargetApi;
 import android.content.Context;
 import android.graphics.drawable.Drawable;
 import android.util.AttributeSet;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.widget.ImageButton;
 import android.widget.LinearLayout;
 
+/**
+ * This class is a container view for menu items that:
+ *   * Shows text if there is enough space and there are
+ *     no action buttons ({@link #mActionButtons}).
+ *   * Shows an icon if there is not enough space for text,
+ *     or there are action buttons.
+ */
 public class MenuItemSwitcherLayout extends LinearLayout
                                     implements GeckoMenuItem.Layout,
                                                View.OnClickListener {
     private final MenuItemDefault mMenuItem;
     private final MenuItemActionBar mMenuButton;
     private final List<ImageButton> mActionButtons;
     private final List<View.OnClickListener> mActionButtonListeners = new ArrayList<View.OnClickListener>();