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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/v2/AboveTheFoldListItem.java

Issue 1833763002: Add new NTP layout with snippet cards and hide it behind a flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix IntDefs, remove separate scrollview/recyclerview layout file Created 4 years, 9 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/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;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698