[Suggestions] Add Section support to TileGroup
Related to https://chromium-review.googlesource.com/c/568492/,
stores tile data into sections. The tiles are still transmitted
from the native side as a flat array, but when we load them we
arrange them in a map of tiles.
It should keep the current UI functioning just like before.
Some of the current assumptions are affected:
- We can have more than one tile per URL, but only one per section
- We should not wait for all the tiles before we consider the tile
load to be complete (some of the tiles will not be displayed at all)
Bug: 740905
Change-Id: Ia91c3c7abb5d05a946d0b9baff95b5a05c9e3581
Reviewed-on: https://chromium-review.googlesource.com/571753
Commit-Queue: Nicolas Dossou-Gbété <[email protected]>
Reviewed-by: Michael van Ouwerkerk <[email protected]>
Reviewed-by: Bernhard Bauer <[email protected]>
Cr-Commit-Position: refs/heads/master@{#491340}
diff --git a/chrome/android/java_sources.gni b/chrome/android/java_sources.gni
index 21914378..7636bc4 100644
--- a/chrome/android/java_sources.gni
+++ b/chrome/android/java_sources.gni
@@ -1046,6 +1046,7 @@
"java/src/org/chromium/chrome/browser/suggestions/SuggestionsOfflineModelObserver.java",
"java/src/org/chromium/chrome/browser/suggestions/TileGroup.java",
"java/src/org/chromium/chrome/browser/suggestions/TileGroupDelegateImpl.java",
+ "java/src/org/chromium/chrome/browser/suggestions/TileRenderer.java",
"java/src/org/chromium/chrome/browser/suggestions/TileView.java",
"java/src/org/chromium/chrome/browser/suggestions/NavigationRecorder.java",
"java/src/org/chromium/chrome/browser/suggestions/SuggestionsDependencyFactory.java",