12345678910111213141516171819202122232425 |
- // Copyright 2020 The Chromium Authors. All rights reserved.
- // 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;
- }
- }
|