OLD | NEW |
| (Empty) |
1 // Copyright 2016 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.ntp.cards; | |
6 | |
7 import java.util.Collections; | |
8 import java.util.List; | |
9 | |
10 /** | |
11 * A single item that represents itself as a group. | |
12 */ | |
13 public abstract class SingleItemGroup implements ItemGroup, NewTabPageItem { | |
14 private final List<NewTabPageItem> mItems = | |
15 Collections.<NewTabPageItem>singletonList(this); | |
16 | |
17 @Override | |
18 public List<NewTabPageItem> getItems() { | |
19 return mItems; | |
20 } | |
21 } | |
OLD | NEW |