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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/Leaf.java

Issue 2513453004: [Android NTP] Move suggestion sections into a separate node. (Closed)
Patch Set: sync Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.ntp.cards; 5 package org.chromium.chrome.browser.ntp.cards;
6 6
7 import org.chromium.chrome.browser.ntp.snippets.SnippetArticle; 7 import org.chromium.chrome.browser.ntp.snippets.SnippetArticle;
8 8
9 /** 9 /**
10 * A permanent leaf in the tree, i.e. a single item. 10 * A permanent leaf in the tree, i.e. a single item.
(...skipping 24 matching lines...) Expand all
35 if (position != 0) throw new IndexOutOfBoundsException(); 35 if (position != 0) throw new IndexOutOfBoundsException();
36 36
37 return null; 37 return null;
38 } 38 }
39 39
40 @Override 40 @Override
41 public int getDismissSiblingPosDelta(int position) { 41 public int getDismissSiblingPosDelta(int position) {
42 return 0; 42 return 0;
43 } 43 }
44 44
45 @Override
46 public void init() {}
47
45 /** 48 /**
46 * Display the data for this item. 49 * Display the data for this item.
47 * @param holder The view holder that should be updated. 50 * @param holder The view holder that should be updated.
48 * @see #onBindViewHolder(NewTabPageViewHolder, int) 51 * @see #onBindViewHolder(NewTabPageViewHolder, int)
49 * @see android.support.v7.widget.RecyclerView.Adapter#onBindViewHolder 52 * @see android.support.v7.widget.RecyclerView.Adapter#onBindViewHolder
50 */ 53 */
51 protected abstract void onBindViewHolder(NewTabPageViewHolder holder); 54 protected abstract void onBindViewHolder(NewTabPageViewHolder holder);
52 55
53 /** 56 /**
54 * @return The view type of this item. 57 * @return The view type of this item.
55 * @see android.support.v7.widget.RecyclerView.Adapter#getItemViewType 58 * @see android.support.v7.widget.RecyclerView.Adapter#getItemViewType
56 */ 59 */
57 @ItemViewType 60 @ItemViewType
58 protected abstract int getItemViewType(); 61 protected abstract int getItemViewType();
59 } 62 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698