| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 package org.chromium.chrome.browser.autofill; | |
| 6 | |
| 7 import android.graphics.Bitmap; | |
| 8 | |
| 9 /** | |
| 10 * A container to store the information for each Autofill Dialog menu item. | |
| 11 */ | |
| 12 public class AutofillDialogMenuItem { | |
| 13 public final int mIndex; | |
| 14 public final String mLine1; | |
| 15 public final String mLine2; | |
| 16 public final Bitmap mIcon; | |
| 17 public final boolean mShowButton; | |
| 18 public final int mButtonLabelResourceId; | |
| 19 public final Bitmap mButtonIcon; | |
| 20 | |
| 21 /** | |
| 22 * @param index Index of the menu item. | |
| 23 * @param line1 First line of the menu item. | |
| 24 * @param line2 Second line of the menu item. | |
| 25 * @param icon An icon for the menu item (might be null). | |
| 26 * @param showButton Whether the menu item has a button. | |
| 27 * @param buttonLabelResourceId The button label string id. | |
| 28 * @param buttonIcon The button icon. | |
| 29 */ | |
| 30 public AutofillDialogMenuItem(int index, | |
| 31 String line1, String line2, Bitmap icon, | |
| 32 boolean showButton, | |
| 33 int buttonLabelResourceId, Bitmap buttonIcon) { | |
| 34 mIndex = index; | |
| 35 mLine1 = line1; | |
| 36 mLine2 = line2; | |
| 37 mIcon = icon; | |
| 38 mShowButton = showButton; | |
| 39 mButtonLabelResourceId = buttonLabelResourceId; | |
| 40 mButtonIcon = buttonIcon; | |
| 41 } | |
| 42 | |
| 43 /** | |
| 44 * @param index Index of the menu item. | |
| 45 * @param label Label of the menu item. | |
| 46 */ | |
| 47 public AutofillDialogMenuItem(int index, String label) { | |
| 48 this(index, label, "", null, false, -1, null); | |
| 49 } | |
| 50 } | |
| OLD | NEW |