Chromium Code Reviews| Index: chrome/android/java/src/org/chromium/chrome/browser/ntp/v2/AboveTheFoldListItem.java |
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/v2/AboveTheFoldListItem.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/v2/AboveTheFoldListItem.java |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..72ee33d8225b27a7fc2f8aa66558bacf63d1fe7c |
| --- /dev/null |
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/v2/AboveTheFoldListItem.java |
| @@ -0,0 +1,29 @@ |
| +// 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.v2; |
| + |
| +import org.chromium.chrome.browser.ntp.NewTabPageLayout; |
| +import org.chromium.chrome.browser.ntp.NewTabPageViewHolder; |
| + |
| +/** Item in the RecyclerView that will hold the above the fold contents for the NTP */ |
|
newt (away)
2016/03/30 19:03:50
This would be a great place to explain what in the
dgn
2016/03/31 00:46:45
Done.
|
| +class AboveTheFoldListItem implements NewTabPageListItem { |
| + public static class ViewHolder extends NewTabPageViewHolder { |
| + public ViewHolder(NewTabPageLayout view) { |
| + super(view); |
| + } |
| + |
| + @Override |
| + public void onBindViewHolder(NewTabPageListItem snippetItem) { |
| + // nothing to do |
| + } |
| + } |
| + |
| + public AboveTheFoldListItem() {} |
|
newt (away)
2016/03/30 19:03:50
not needed
dgn
2016/03/31 00:46:45
Done.
|
| + |
| + @Override |
| + public int getType() { |
| + return NewTabPageListItem.VIEW_TYPE_ABOVE_THE_FOLD; |
| + } |
| +} |