OLD | NEW |
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 android.content.Context; | 7 import android.content.Context; |
8 import android.support.annotation.StringRes; | 8 import android.support.annotation.StringRes; |
9 | 9 |
10 import org.chromium.chrome.R; | 10 import org.chromium.chrome.R; |
(...skipping 27 matching lines...) Expand all Loading... |
38 @Override | 38 @Override |
39 @StringRes | 39 @StringRes |
40 public int getActionLabel() { | 40 public int getActionLabel() { |
41 return 0; | 41 return 0; |
42 } | 42 } |
43 | 43 |
44 @Override | 44 @Override |
45 public void performAction(Context context) { | 45 public void performAction(Context context) { |
46 assert false; | 46 assert false; |
47 } | 47 } |
| 48 |
| 49 @Override |
| 50 protected void visitOptionalItem(NodeVisitor visitor) { |
| 51 visitor.visitNoSuggestionsItem(); |
| 52 } |
48 } | 53 } |
49 | 54 |
50 @Override | 55 @Override |
51 @ItemViewType | 56 @ItemViewType |
52 protected int getItemViewType() { | 57 protected int getItemViewType() { |
53 return ItemViewType.STATUS; | 58 return ItemViewType.STATUS; |
54 } | 59 } |
55 | 60 |
56 @Override | 61 @Override |
57 protected void onBindViewHolder(NewTabPageViewHolder holder) { | 62 protected void onBindViewHolder(NewTabPageViewHolder holder) { |
58 assert holder instanceof StatusCardViewHolder; | 63 assert holder instanceof StatusCardViewHolder; |
59 ((StatusCardViewHolder) holder).onBindViewHolder(this); | 64 ((StatusCardViewHolder) holder).onBindViewHolder(this); |
60 } | 65 } |
61 } | 66 } |
OLD | NEW |