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 304774 8345f21f651819dddce7412e4f5a7046ed4f0d69
parent 304773 5b439b4654e00b882c8cfde06b41872b3515161b
child 304775 156585c07b3da57636bb01213ecfad506060553c
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersliuche
bugs1140210
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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>();