| Index: chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetHeaderListItem.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetHeaderListItem.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetHeaderListItem.java
|
| deleted file mode 100644
|
| index 84f0977de899ac65f5708438db3d64717671b0a4..0000000000000000000000000000000000000000
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetHeaderListItem.java
|
| +++ /dev/null
|
| @@ -1,55 +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.snippets;
|
| -
|
| -import android.view.LayoutInflater;
|
| -import android.view.View;
|
| -import android.view.ViewGroup;
|
| -
|
| -import org.chromium.chrome.R;
|
| -import org.chromium.chrome.browser.ntp.cards.NewTabPageListItem;
|
| -
|
| -/**
|
| - * Represents the data for a header of a group of snippets
|
| - */
|
| -public class SnippetHeaderListItem implements NewTabPageListItem {
|
| - /** Whether the header should be shown. */
|
| - private final boolean mVisible;
|
| -
|
| - /** The header text to be shown. */
|
| - private final String mHeaderText;
|
| -
|
| - public SnippetHeaderListItem(String headerText) {
|
| - // TODO(mvanouwerkerk): Configure mVisible in the constructor when we have a global status
|
| - // section without a visible header.
|
| - mVisible = true;
|
| -
|
| - this.mHeaderText = headerText;
|
| - }
|
| -
|
| - /**
|
| - * Creates the View object for displaying the header for a group of snippets
|
| - *
|
| - * @param parent The parent view for the header
|
| - * @return a View object for displaying a header for a group of snippets
|
| - */
|
| - public static View createView(ViewGroup parent) {
|
| - return LayoutInflater.from(parent.getContext())
|
| - .inflate(R.layout.new_tab_page_snippets_header, parent, false);
|
| - }
|
| -
|
| - @Override
|
| - public int getType() {
|
| - return NewTabPageListItem.VIEW_TYPE_HEADER;
|
| - }
|
| -
|
| - public boolean isVisible() {
|
| - return mVisible;
|
| - }
|
| -
|
| - public String getHeaderText() {
|
| - return mHeaderText;
|
| - }
|
| -}
|
|
|