Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2963)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/ItemGroup.java

Issue 2396523002: Unify NewTabPageItem and ItemGroup into a single tree-structured interface. (Closed)
Patch Set: review Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/ItemGroup.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/ItemGroup.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/ItemGroup.java
deleted file mode 100644
index b2698908e218ccc2605ea663b9f0d9b6e0926fa5..0000000000000000000000000000000000000000
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/ItemGroup.java
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2016 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.chrome.browser.ntp.cards;
-
-import java.util.List;
-
-/**
- * A group of items.
- */
-public interface ItemGroup {
- /**
- * @return A list of items contained in this group. The list should not be modified.
- */
- List<NewTabPageItem> getItems();
-
- /**
- * Defines the actions an object can be notified about when there are changes inside of
- * an {@link ItemGroup}.
- */
- interface Observer {
- /** Notification about items having been changed in the group. */
- void onItemRangeChanged(ItemGroup group, int itemPosition, int itemCount);
-
- /** Notification about items having been added to the group. */
- void onItemRangeInserted(ItemGroup group, int itemPosition, int itemCount);
-
- /** Notification about items having been removed from the group. */
- void onItemRangeRemoved(ItemGroup group, int itemPosition, int itemCount);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698