// 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.components.browser_ui.widget.image_tiles;
import org.chromium.ui.modelutil.ListModel;
import org.chromium.ui.modelutil.PropertyModel;
/**
* This model represents the data required to build a list UI around a set of {@link ImageTile}s.
* This includes (1) a {@link ListModel} implementation and (2) exposing a
* {@link PropertyModel} for shared item properties and general list information.
*/
class TileListModel extends ListModel<ImageTile> {
private final PropertyModel mListProperties = new PropertyModel(TileListProperties.ALL_KEYS);
/**
* @return A {@link PropertyModel} instance, which is a set of shared properties for the
* list.
*/
public PropertyModel getProperties() {
return mListProperties;
}
}