|
|
[NTP Snippets] Show a status card when there are no available snippets
Introduce a new NTP item type type: Status cards! They show up when
there are no snippets to display and let the user know that the NTP
is not broken. The current one simply acknowledges that we ran out
of snippets and allows to manually fetch more.
This CL also refactors some basic card features out of Snippet specific
classes.
Known issues that will be addressed in future CLs:
- Show a different message if the service can't fetch snippets but the
user can fix it, for example by enabling sync.
- The card should be animated as coming from below
BUG= 612508
Committed: https://crrev.com/12fae2360889eba5e18e00ce641d95cb4a814159
Cr-Commit-Position: refs/heads/master@{#399202}
Total comments: 10
Total comments: 2
Total comments: 12
Total comments: 4
Total comments: 5
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+573 lines, -224 lines) |
Patch |
 |
A |
chrome/android/java/res/layout/new_tab_page_status_card.xml
|
View
|
1
2
3
|
1 chunk |
+50 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java
|
View
|
1
2
3
4
5
6
7
|
7 chunks |
+11 lines, -6 lines |
0 comments
|
Download
|
 |
A |
chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/CardItemDecoration.java
|
View
|
1
2
3
4
|
1 chunk |
+44 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/CardViewHolder.java
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+146 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/CardsLayoutOperations.java
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+19 lines, -99 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapter.java
|
View
|
1
2
3
4
5
6
7
8
9
|
11 chunks |
+47 lines, -20 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NewTabPageListItem.java
|
View
|
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NewTabPageRecyclerView.java
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+36 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NewTabPageViewHolder.java
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/StatusListItem.java
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetArticleViewHolder.java
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
5 chunks |
+19 lines, -30 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetHeaderListItem.java
|
View
|
1
2
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetHeaderViewHolder.java
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+109 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetItemDecoration.java
|
View
|
1
2
|
1 chunk |
+0 lines, -52 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/strings/android_chrome_strings.grd
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java_sources.gni
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java
|
View
|
1
2
3
4
5
6
|
3 chunks |
+12 lines, -8 lines |
0 comments
|
Download
|
Total messages: 26 (9 generated)
|