chromium/chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/suggestions/DropdownItemViewInfo.java

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

package org.chromium.chrome.browser.omnibox.suggestions;

import androidx.annotation.VisibleForTesting;

import org.chromium.components.omnibox.GroupsProto.GroupConfig;
import org.chromium.ui.modelutil.MVCListAdapter;
import org.chromium.ui.modelutil.PropertyModel;

/** ListItem element used with OmniboxSuggestionList. */
@VisibleForTesting(otherwise = VisibleForTesting.PACKAGE_PRIVATE)
public class DropdownItemViewInfo extends MVCListAdapter.ListItem {
    /** Processor managing the item. */
    public final DropdownItemProcessor processor;

    /** Group ID this ViewInfo belongs to. */
    public final GroupConfig groupConfig;

    public DropdownItemViewInfo(
            DropdownItemProcessor processor, PropertyModel model, GroupConfig groupConfig) {
        super(processor.getViewTypeId(), model);
        this.processor = processor;
        this.groupConfig = groupConfig;
    }
}