AutofillSuggestion.java revision eb525c5499e34cc9c4b825d6d9e75bb07cc06ace
1// Copyright 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
5package org.chromium.ui.autofill;
6
7/**
8 * Autofill suggestion container used to store information needed for each Autofill popup entry.
9 */
10public class AutofillSuggestion {
11    final String mLabel;
12    final String mSublabel;
13    final int mUniqueId;
14
15    /**
16     * Constructs a Autofill suggestion container.
17     * @param name The name of the Autofill suggestion.
18     * @param label The describing label of the Autofill suggestion.
19     * @param uniqueId The unique id used to identify the Autofill suggestion.
20     */
21    public AutofillSuggestion(String name, String label, int uniqueId) {
22        mLabel = name;
23        mSublabel = label;
24        mUniqueId = uniqueId;
25    }
26}